Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio XML Error

Currently testing out Android Instant Apps using Android Studio 3.0 Canary 3 and I'm getting this error when I try to build the app and emulate it. Any ways to fix it? (I'm making a multi-feature Instant App).

Error:

~/Documents/GitHub/AndroidInstantApp/android-topeka/topeka-ui/build/intermediates/manifests/full/feature/debug/AndroidManifest.xml:2 attribute 'split' in tag is not a valid split name Error:com.android.builder.internal.aapt.AaptException: AAPT2 link failed: Error:java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: AAPT2 link failed: Error:Execution failed for task ':topeka-ui:processDebugFeatureResources'.

Failed to execute aapt

like image 840
Karan Bhargava Avatar asked Jun 13 '17 21:06

Karan Bhargava


1 Answers

I think we may have found a bug of this alpha release. I solved the problem by removing the dash ("-") from the module name:

Apparently it is not well supported for split names.

The strange part is, both the codelabs and my project were initially working correctly with the dash.

like image 96
gbaccetta Avatar answered Sep 27 '22 18:09

gbaccetta