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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With