Android - Inner element must either be a resource reference or empty

前端 未结 8 1390
天涯浪人
天涯浪人 2020-11-29 04:00

Error Details

AGPBI: {\"kind\":\"error\",\"text\":\"error: \\u003citem\\u003e inner element must either be a resource reference or empty         


        
8条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 04:30

    For me this was actually failing because the new gradle versions. I am pretty sure that some plugins I'm using have incompatibilities with newest gradle. I ended up with success build having the following versions:

    gradle-wrapper.properties file:

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
    

    build.gradle file

     dependencies {
       classpath 'com.android.tools.build:gradle:3.0.1'
     }
    

    EDIT:

    As we want to use 3.2.+ versions now, that isn't a reliable solution.

    What I ended up doing is creating a new ids.xml file, and overriding all the values that have been conflicting.

    ids.xml file example:

    
        
            
            
            
            
            
            
            
            
            
        
    

提交回复
热议问题