任务':react-native-geocoder:verifyReleaseResources'的执行失败

时间:2018-11-15 06:08:29

标签: react-native

enter image description here嗨,我正在尝试创建发布apk,这里我使用了react-native-geocode,但是在创建构建时出现波纹错误

Execution failed for task ':react-native-geocoder:verifyReleaseResources'.
  

com.android.ide.common.process.ProcessException:无法执行aapt

有人遇到这样的问题吗?

1 个答案:

答案 0 :(得分:0)

嗨,尝试一下android / build.gradle最后添加:

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion rootProject.ext.compileSdkVersion
                buildToolsVersion rootProject.ext.buildToolsVersion
            }
        }
    }
}