更新 Android Studio 1.3 后出现 Android 错误

标签 android android-studio gradle

Android Studio 1.3 版有更新。更新后,我打开了我的项目,当我尝试在模拟器中运行它时,出现错误。

Information:Gradle tasks [clean, :app:compileDebugSources, :app:compileDebugAndroidTestSources]
:app:clean
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72221Library
:app:prepareComAndroidSupportRecyclerviewV72221Library
:app:prepareComAndroidSupportSupportV42221Library
:app:prepareComGithubSatyanSugar131Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources
:app:mergeDebugResources
AAPT err(1035023611): C:\Users\Jeems\Documents\JoelMobile2\app\src\main\res\drawable-hdpi\ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(906211783): C:\Users\Jeems\Documents\JoelMobile2\app\src\main\res\drawable-xxhdpi\ic_launcher.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(672280396): C:\Users\Jeems\Documents\JoelMobile2\app\src\main\res\drawable-xhdpi\ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(604063224): C:\Users\Jeems\Documents\JoelMobile2\app\src\main\res\drawable-mdpi\ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:app:processDebugManifest
:app:processDebugResources
C:\Users\Jeems\Documents\JoelMobile2\app\build\intermediates\res\debug\drawable-xxhdpi-v4\ic_launcher.png: error: Duplicate file.
C:\Users\Jeems\Documents\JoelMobile2\app\build\intermediates\res\debug\drawable-xxhdpi\ic_launcher.png: Original is here. The version qualifier may be implied.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Jeems\AppData\Local\Android\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1
Information:BUILD FAILED

有没有办法解决这个问题?

最佳答案

构建 > 清理项目,然后 Gradle &重新启动 项目。

关于更新 Android Studio 1.3 后出现 Android 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31744045/

相关文章:

Gradle doLast,复制任务中的 doFirst 行为

Android::视频内容的 DRM

android - searchManager.getSearchableInfo(getComponentName()) 返回 null

android - 使用 Android volley 进行单元测试

java - 无法解析方法 'displayMessage(java.lang.String)'

java - 我无法在Android Studio上运行该应用程序

android - 使用 Espresso 测试 Android NavigationView 菜单项

安卓工作室 : How to avoid auto-creation of ActionBar/Toolbar in the app

cordova - 从 Cordova 将自定义 maven 存储库添加到 build.gradle

groovy - Gradle无法运行,java.lang.NoClassDefFoundError:groovy/lang/GroovyObject