datso / react-native-pjsip

A PJSIP module for React Native.
http://datso.github.io/react-native-pjsip
GNU General Public License v3.0
273 stars 229 forks source link

Error: gradlew assembleRelease #178

Closed yunhanxia closed 5 years ago

yunhanxia commented 5 years ago

Task :react-native-pjsip:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 1s 113 actionable tasks: 2 executed, 111 up-to-date

Hi I'm getting this error when I try to assemble in release mode, all works fine in debug mode, is there anyone encountering the same problem?

yunhanxia commented 5 years ago

Solved by putting this in allprojects {} in build.gradle :

allprojects {
    subprojects {
        afterEvaluate {
            project ->
                if (project.hasProperty("android")) {
                    android {
                        compileSdkVersion = 28
                        buildToolsVersion = "28.0.3"
                    }
                }
        }
    }
    [...]
}