Android compileSdkVersion is 27 and My React Native Android compileSdkVersion is 30,
makes i cannot build my app.
All Error Log With --warning-mode all
..\App\android>gradlew assembleRelease --warning-mode all
Configure project :app
WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
Configure project :react-native-scan-barcode
WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
Configure project :react-native-webview
Adding a Configuration as a dependency is a confusing behavior which isn't recommended. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. If you're interested in inheriting the dependencies from the Configuration you are adding, you should use Configuration#extendsFrom instead. See https://docs.gradle.org/6.9/dsl/org.gradle.api.artifacts.Configuration.html#org.gradle.api.artifacts.Configuration:extendsFrom(org.gradle.api.artifacts.Configuration[]) for more details.
WARNING:: The specified Android SDK Build Tools version (27.0.3) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2.
Android SDK Build Tools 30.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '27.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING:: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2.
Android SDK Build Tools 30.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Welcome to Metro!
Fast - Scalable - Integrated
info Writing bundle output to:, ..\App\android\app\build\generated\assets\react\release\index.android.bundle
info Writing sourcemap output to:, ..\App\android\app\build\generated\sourcemaps\react\release\index.android.bundle.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 6 asset files
info Done copying assets
<
Task :app:lintVitalRelease
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.10/6229be3465805c99db1142ad75e6c6ddeac0b04c/kotlin-stdlib-common-1.4.10.jar (version 1.4)
C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.4.10/30e46450b0bb3dbf43898d2f461be4a942784780/kotlin-stdlib-jdk7-1.4.10.jar (version 1.4)
C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.4.10/998caa30623f73223194a8b657abd2baec4880ea/kotlin-stdlib-jdk8-1.4.10.jar (version 1.4)
C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.10/ea29e063d2bbe695be13e9d044dcfb0c7add398e/kotlin-stdlib-1.4.10.jar (version 1.4)
C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.20/9de35cc611bcecec8edce1d56d8e659953806751/kotlin-stdlib-1.5.20.jar (version 1.5)
C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.5.20/3d79dbd48bf605f4aac1e7028981a1953e245cbb/kotlin-stdlib-common-1.5.20.jar (version 1.5)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
What went wrong:
Execution failed for task ':react-native-scan-barcode:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
There were multiple failures while executing work items
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
Could not generate a decorated class for type Aapt2CompileRunnable.Params.
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
Could not generate a decorated class for type Aapt2CompileRunnable.Params.
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
Could not generate a decorated class for type Aapt2CompileRunnable.Params.
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
Could not generate a decorated class for type Aapt2CompileRunnable.Params.
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
Could not generate a decorated class for type Aapt2CompileRunnable.Params.
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
Could not generate a decorated class for type Aapt2CompileRunnable.Params.
Metaspace
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
Could not generate a decorated class for type Aapt2CompileRunnable.Params.
Metaspace
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
2: Task failed with an exception.
What went wrong:
Execution failed for task ':react-native-webview:syncReleaseLibJars'.
Metaspace
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
3: Task failed with an exception.
What went wrong:
Failed to notify build listener.
Metaspace
Metaspace
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Android compileSdkVersion is 27 and My React Native Android compileSdkVersion is 30, makes i cannot build my app.
All Error Log With --warning-mode all
..\App\android>gradlew assembleRelease --warning-mode all
info Writing bundle output to:, ..\App\android\app\build\generated\assets\react\release\index.android.bundle info Writing sourcemap output to:, ..\App\android\app\build\generated\sourcemaps\react\release\index.android.bundle.map info Done writing bundle output info Done writing sourcemap output info Copying 6 asset files info Done copying assets <
FAILURE: Build completed with 3 failures.
1: Task failed with an exception.
What went wrong: Execution failed for task ':react-native-scan-barcode:verifyReleaseResources'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
2: Task failed with an exception.
What went wrong: Execution failed for task ':react-native-webview:syncReleaseLibJars'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
3: Task failed with an exception.
What went wrong: Failed to notify build listener.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 8m 48s 255 actionable tasks: 6 executed, 249 up-to-date <-------------> 0% WAITING
..\App\android>