android - Unable to build project with gradle 4.1: "unknown element * found" -


after updating gradle 4.1 i'm unable build project (all works fine previous releases).

basically doesn't recognize androidmanifest tags anymore , gives me errors in generated manifest in /build/intermediates/manifests/full/debug.

here's build log:

/home/paolorotolo/dev/exp/***/build/intermediates/manifests/full/debug/androidmanifest.xml     error:(30) unknown element <action> found     error:(32) unknown element <category> found     error:(33) unknown element <category> found     error:/home/paolorotolo/dev/exp/core/***/build/intermediates/manifests/full/debug/androidmanifest.xml:30 unknown element <action> found     error:/home/paolorotolo/dev/exp/core/***/build/intermediates/manifests/full/debug/androidmanifest.xml:33 unknown element <category> found     error:java.util.concurrent.executionexception: com.android.builder.internal.aapt.aaptexception: aapt2 link failed:     error:com.android.builder.internal.aapt.aaptexception: aapt2 link failed:     error:execution failed task ':***:processdebugresources'.     > failed execute aapt     information:build failed in 6s 

the issue has been fixed in new gradle release (gradle-4.1-rc-2).

to solve add in gradle-wrapper.properties:

distributionurl=https\://services.gradle.org/distributions/gradle-4.1-rc-2-all.zip 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -