You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have followed the doc to extract device imei. Tried every approach I found on stack overflow but it is still giving me this when i uninstall this library my project builds succesfully. Below is the full log.
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':react-native-imei:bundleLibCompileToJarDebug'.
Could not create task ':react-native-imei:compileDebugJavaWithJavac'.
In order to compile Java 9+ source, please set compileSdkVersion to 30 or above
Try:
Run with --stacktrace option to get the stack trace.
Run with --debug option to get more log output.
Run with --scan to get full insights.
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
}
}
Let me know if anything else is needed.
The text was updated successfully, but these errors were encountered:
You will have to patch the library if you want to use it with newer React Native versions. The reason is that RN now requires Java 11, which this plugin's compileSdkVersion (28) does not support.
To fix this, you can add a simple patch and get your root project's version instead
What compileSdkVersion did you set in your app's build gradle (not the patch but your actual app)? It needs to be > 30 or this will fail because it simply applies the version of your project
I have followed the doc to extract device imei. Tried every approach I found on stack overflow but it is still giving me this when i uninstall this library my project builds succesfully. Below is the full log.
FAILURE: Build failed with an exception.
Could not determine the dependencies of task ':react-native-imei:bundleLibCompileToJarDebug'.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1m 51s
Here is my build.gradle:
buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
}
Let me know if anything else is needed.
The text was updated successfully, but these errors were encountered: