Android Studio 解决 Error: Failed to crunch file
程序员文章站
2022-05-31 17:33:03
...
异常日志:
Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file C:\Users\Administrator\Desktop\MegviiFaceppv2_Android_0.5.2\MegviiFacepp-Android-SDK-0.5.2-CN\Android-Demo\faceppdemo\build\intermediates\exploded-aar\com.android.support\appcompat-v7\26.0.0-alpha1\res\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha.png into C:\Users\Administrator\Desktop\MegviiFaceppv2_Android_0.5.2\MegviiFacepp-Android-SDK-0.5.2-CN\Android-Demo\faceppdemo\build\intermediates\res\merged\debug\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha.png
问题原因:
工程存在的路径太长
解决办法:
更换工程路径
上一篇: Java 复制内容到剪切板
推荐阅读
-
Android添加glide库报错Error: Failed to resolve: com.android.support:support-annotations:26.0.2的解决
-
WAC启动Android模拟器 transfer error: Read-only file system错误解决方法
-
Android解决app:compileDebugJavaWithJavac>Compilation failed; see the compiler error output for details问题的方法
-
Android添加glide库报错Error: Failed to resolve: com.android.support:support-annotations:26.0.2的解决
-
解决Android Studio编译后安装apk报错:Error while Installing APK
-
Android Studio遇到Failed to sync Gradle project错误时的解决办法
-
android studio Error:Unable to start the daemon process 报错问题的解决办法
-
关于android studio打开后自动弹出:Error:Execution failed for task ':app:preDebugAndroidTestBuild'
-
Android studio 3.4 新建项目报错Error:unable to resolve dependency for app@。。。解决办法
-
WAC启动Android模拟器 transfer error: Read-only file system错误解决方法