5

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

gbaccetta
  • 4,449
  • 2
  • 20
  • 30

1 Answers1

9

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.

gbaccetta
  • 4,449
  • 2
  • 20
  • 30
  • 1
    This resolved "attribute 'split' in tag is not a valid split name" error – Karthi R Jun 14 '17 at 14:14
  • I removed the dashes from the module name but I get this error when running the app as an instant app. https://pastebin.com/LnaHDijC – Karan Bhargava Jun 15 '17 at 23:14
  • You should post another question for that with more context to try to uderstand what's happening. Also it would be nice if you can accept my answer since it solved your problem. – gbaccetta Jun 28 '17 at 10:28