当即时运行申请我在android studio 3.0 canary-2
中得到关注
Error:E:\PublicServer_Share\Extra\app\build\intermediates\instant-run
support\debug\slice_2\AndroidManifest.xml:2 attribute 'android:versionCode'
not found
Error:failed processing manifest
Error:E:\PublicServer_Share\Extra\app\build\intermediates\instant-run-
support\debug\slice_9\AndroidManifest.xml:2 attribute 'android:versionCode'
not found
Error:failed processing manifest
Error:Execution failed for task
':app:transformDexWithInstantRunSlicesApkForDebug'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
答案 0 :(得分:4)
禁用即时运行。在File -> Settings -> Build, Execution, Deployment
内。这将允许您以Canary版本运行您的应用程序。
答案 1 :(得分:1)
运行 Gradle->清洁,然后重试