React-native-keychain: compileDebugJavaWithJavac FAILED while building project

Created on 11 Jun 2020  路  5Comments  路  Source: oblador/react-native-keychain

Task :react-native-keychain:compileDebugJavaWithJavac FAILED

I am using the below version:

"react": "16.9.0",
"react-native": "0.61.4",
"react-native-keychain": "^6.0.0",

Most helpful comment

29:

solution:

...
buildscript {
    ext {
        ...
        buildToolsVersion = "29.0.3"
        compileSdkVersion = 29
        ...
    }
...

All 5 comments

resolved issue by changing the "react-native-keychain": "^6.0.0" to "react-native-keychain": "6.0.0"

I was able to fix it by upgrading the SDK version.

I was able to fix it by upgrading the SDK version.

which sdk version did u switch to?

29:

solution:

...
buildscript {
    ext {
        ...
        buildToolsVersion = "29.0.3"
        compileSdkVersion = 29
        ...
    }
...

Nice @codetheweb, that was it

Specifically, it looks like the latest and greatest version (6.1.1) requires PackageManager.FEATURE_IRIS, which is has only been added in the 29 SDK: https://developer.android.com/reference/android/content/pm/PackageManager?authuser=1

Was this page helpful?
0 / 5 - 0 ratings