Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'.
See original GitHub issueDescription
> Task :react-native-reanimated:compileDebugJavaWithJavac FAILED
aapt2 W 11-04 14:19:29 66234 2702028 LoadedArsc.cpp:682] Unknown chunk type '200'.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.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/7.2/userguide/command_line_interface.html#sec:command_line_warnings
203 actionable tasks: 203 executed
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Note: **********/node_modules/@bugsnag/react-native/android/src/main/java/com/bugsnag/android/ReactNativeCompat.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: *********/node_modules/@react-native-community/slider/android/src/oldarch/java/com/reactnativecommunity/slider/ReactSliderManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIManager.java:15: error: cannot find symbol
class ReaUiImplementationProvider extends UIImplementationProvider {
^
symbol: class UIImplementationProvider
********/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIManager.java:17: error: method does not override or implement a method from a supertype
@Override
^
********/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIManager.java:38: error: no suitable constructor found for UIManagerModule(ReactApplicationContext,List<ViewManager>,ReaUiImplementationProvider,int)
super(
^
constructor UIManagerModule.UIManagerModule(ReactApplicationContext,ViewManagerResolver,int) is not applicable
(actual and formal argument lists differ in length)
constructor UIManagerModule.UIManagerModule(ReactApplicationContext,List<ViewManager>,int) is not applicable
(actual and formal argument lists differ in length)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Steps to reproduce
I’ve been uninstalling, re-installing, clearing caches and resetting everything I can at every stage. Can’t seem to resolve this issue
Mac M1, Android Studio
Snack or a link to a repository
Reanimated version
2.12.0 (but also occurred in ^2.11.0)
React Native version
0.65.0
Platforms
Android
JavaScript runtime
No response
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Android emulator
Device model
No response
Acknowledgements
Yes
Issue Analytics
- State:
- Created a year ago
- Reactions:26
- Comments:65 (1 by maintainers)
Top Results From Across the Web
Execution Failed for task :app:compileDebugJavaWithJavac in ...
In Android Studio 3.1, you can see the errors details in the Build window. Open up Build tab. They are somewhat hidden, you...
Read more >Execution failed for task ':app:compileDebugJavaWithJavac ...
When i try to run "react-native run-android" command i get build failed with error Execution failed for task ':app:compileDebugJavaWithJavac'.
Read more >Fix "Execution Failed for task :app ... - GeeksforGeeks
Fix “Execution Failed for task :app:compileDebugJavaWithJavac” in Android Studio · Method: #1 Try updating your buildToolsVersion to “23.0.
Read more >Android studio | Execution failed for task - YouTube
Here, given trick to solve this type of error. Execution failed for task ':app:checkDebugAarMetadata'. Could not resolve all files for ...
Read more >Fix - Execution failed for task ':app:compileDebugAidl': aidl is ...
This video shows a Fix to a common error in Android development studio and the fix is simple... Execution failed for task ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here is the way how i fixed this issue :-
1st go to android/build.gradle
Can confirm that this works: https://github.com/facebook/react-native/issues/35204#issuecomment-1304099109
android/build.gradle