3

when instant run apply i am getting following in 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
Ishvar Kikani
  • 1,394
  • 2
  • 8
  • 13

2 Answers2

5

Disable Instant Run. Inside File -> Settings -> Build, Execution, Deployment. This will allow you to run your app in the Canary version.

ザヘド
  • 614
  • 1
  • 6
  • 17
  • This works, but there's a better solution offered [in this thread](https://stackoverflow.com/questions/44105127/android-studio-3-0-flavor-dimension-issue/44105240#44105240). – GertG Jun 09 '17 at 10:41
1

Run Gradle->Clean and try again

Pavel
  • 2,557
  • 1
  • 23
  • 19