How to Fix "Task :*:extractReleaseAnnotations FAILED"? - javascript

I created an application using React Native framework.
debug version runs great but extractReleaseAnnotations error occurs when i try to build release version.
Error log for react-native-connectivity-status :
> Task :react-native-connectivity-status:extractReleaseAnnotations FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-connectivity-status:extractReleaseAnnotations'.
> Could not resolve all files for configuration ':react-native-connectivity-status:lintClassPath'.
> Could not find kotlin-compiler-27.2.2.jar (com.android.tools.external.com-intellij:kotlin-compiler:27.2.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/27.2.2/kotlin-compiler-27.2.2.jar
VSCode : v1.65.0
React Native : 0.67.2
React JS : 17.0.2
OS : Windows 11.0.22557.1
Any solutions?

Related

React Native IOS framework not found RNCMaskedView

if I try to start an application from iOS, I encounter this error.
ld: framework not found RNCMaskedView
clang: error: linker command failed with exit code 1 (use -v to see invocation)

React Native, why react-native run-android not working?

I'm trying to run react native run-android after I update my project file, but whenever I run react-native it throws an error. When I created that project and that command it worked fine but when I edit and add some files like apps/redux, apps/components, screens etc it stopped working. Can anyone tell me why it's not working?
error Failed to launch emulator. Reason: Could not start emulator within 30 seconds..
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
> Task :app:compileDebugJavaWithJavac
> Task :app:stripDebugDebugSymbols UP-TO-DATE
Compatible side by side NDK version was not found.
> Task :app:installDebug FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
27 actionable tasks: 6 executed, 21 up-to-date
Note: C:\Users\Danger World\ReactProject\android\app\src\debug\java\com\reactproject\ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: No connected devices!
* 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 1m 11s
error Failed to install the app. Make sure you have an Android emulator running or a device connected. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Note: C:\Users\Danger World\ReactProject\android\app\src\debug\java\com\reactproject\ReactNativeFlipper.java uses or overrides a deprecated API.
you either need to create a virtual device or connect a physical device with USB debuging enabled (https://developer.android.com/studio/debug/dev-options).
To create a virtual device, open android studio and select AVD manager from Configure menu and create a new virtual device downloading required packages.
In case you are using a virtual device with Android studio then try to manually run the emulator BEFORE react-native run-android.
(open android studio > Tools > AVD Manager > Create Virtual Device)
https://developer.android.com/studio/run/managing-avds#createavd
Or repeat the official installation guide:
https://reactnative.dev/docs/environment-setup

Task :app:transformClassesAndResourcesWithR8ForRelease FAILED React Native

R8 is the new Android code shrinker. If you experience any issues, please file a bug at
https://issuetracker.google.com, using 'Shrinker (R8)' as component name. You can
disable R8 by updating gradle.properties with 'android.enableR8=false'.
Current version is: 1.4.94 (build 390954928f0db9c3b888a367f7f128ce3bbfb160 from go/r8bot (luci-r8-ci-archive-0-5g74)).
D8: Program type already present: com.oney.WebRTCModule.BuildConfig
What went wrong:
Execution failed for task :app:transformClassesAndResourcesWithR8ForRelease.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete
The android.enableR8=false is as it is but still after running ./gradlew bundleRelease it is showing me this error.

React native maps Execution failed for task ':react-native-maps:checkDebugManifest'

The maps library works fine in a old project with react native where react-native version is 0.55.3 and react native maps is 0.23.0
In a new project after setting up, Android that is, while building the app I keep getting the following error:
info JS server already running.
info Building and installing the app on the device (cd android && ./gradlew app:installAgroShopDebug)...
> Configure project :app
WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
> Task :react-native-maps:checkDebugManifest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-maps:checkDebugManifest'.
> Failed to create parent directory '/home/shockwav3/Downloads/mFarming/newRN/mFarming/node_modules/react-native-maps/lib/android/build/intermediates/check_manifest_result' when creating directory '/home/shockwav3/Downloads/mFarming/newRN/mFarming/node_modules/react-native-maps/lib/android/build/intermediates/check_manifest_result/debug/checkDebugManifest/out'
Help would be very much appreciated.
I faced a similar issue when I upgraded react-native. Strangely I fixed it by running metro with sudo

When this error occur in react native : transformClassesWithDexBuilderForDebug?

When i try to install my react native app on device it shows following error :-
Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /home/user28/.gradle/caches/transforms-1/files-1.1/exoplayer-core-2.9.1.aar/227c237efe9029fa4a76003d6795431d/jars/classes.jar
And i could not understand how to solve it. My app runs correctly but after installing react-native-video dependency it shows following error.Help me to get out from this.
Add the following to your app/build.gradle file:
android {
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
}
}

Categories