Unable to build project with gradle 4.1: “unknown element * found”

前端 未结 4 1120
夕颜
夕颜 2021-01-18 00:58

After updating to Gradle 4.1 I\'m unable to build my project (all works fine with previous releases).

Basically it doesn\'t recognize AndroidManifest tags anymore an

相关标签:
4条回答
  • 2021-01-18 01:30

    You should check your AndroidManifest.xml,make sure every element like 'action' or 'category' is in right position.

    0 讨论(0)
  • 2021-01-18 01:34

    I have got the similar issue recently, The way I solved is by invalidating the cache. You can do that in android studio-> File-> Invalidate cache/ Restart.

    After that it stop showing me those ActivityFeed error.

    0 讨论(0)
  • 2021-01-18 01:42

    For now using gradle 4.1, or even 4.2 on your gradle wrapper will break builds that have dependencies

    I solved this issue by taking back my gradle classpath depency back to gradle 2.3.3

    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
    
    0 讨论(0)
  • 2021-01-18 01:48

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

    To solve add in your gradle-wrapper.properties:

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-rc-2-all.zip
    
    0 讨论(0)
提交回复
热议问题