Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task :react-native-reanimated:compileReleaseJavaWithJavac FAILED #569

Open
Garrysahota opened this issue Mar 1, 2024 · 2 comments
Open

Comments

@Garrysahota
Copy link

Do you understand that any discussions or questions opened as issues in the core Expo Snack repository will be closed?

Yes

@Garrysahota
Copy link
Author

android sudo ./gradlew assembleRelease

Configure project :expo

Using expo modules

  • expo-constants (15.4.5)
  • expo-contacts (12.8.2)
  • expo-file-system (16.0.7)
  • expo-font (11.10.3)
  • expo-keep-awake (12.8.2)
  • expo-linear-gradient (12.7.2)
  • expo-location (16.5.5)
  • expo-modules-core (1.11.9)
  • expo-modules-core$android-annotation (1.11.9)
  • expo-modules-core$android-annotation-processor (1.11.9)
  • expo-secure-store (12.8.1)
  • expo-splash-screen (0.26.4)

Configure project :react-native-reanimated
Android gradle plugin: 8.1.1
Gradle: 8.3

Task :expo-modules-core:processReleaseManifest
/Users/garrysahota/Documents/APP/Evira/node_modules/expo-modules-core/android/src/main/AndroidManifest.xml:8:9-11:45 Warning:
meta-data#com.facebook.soloader.enabled@android:value was tagged at AndroidManifest.xml:8 to replace other declarations but no other declaration present

Task :expo-file-system:processReleaseManifest
/Users/garrysahota/Documents/APP/Evira/node_modules/expo-file-system/android/src/main/AndroidManifest.xml:6:9-8:20 Warning:
provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present

Task :react-native-gesture-handler:processReleaseManifest
package="com.swmansion.gesturehandler" found in source AndroidManifest.xml: /Users/garrysahota/Documents/APP/Evira/node_modules/react-native-gesture-handler/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.swmansion.gesturehandler" from the source AndroidManifest.xml: /Users/garrysahota/Documents/APP/Evira/node_modules/react-native-gesture-handler/android/src/main/AndroidManifest.xml.

Task :react-native-reanimated:processReleaseManifest
package="com.swmansion.reanimated" found in source AndroidManifest.xml: /Users/garrysahota/Documents/APP/Evira/node_modules/react-native-reanimated/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.swmansion.reanimated" from the source AndroidManifest.xml: /Users/garrysahota/Documents/APP/Evira/node_modules/react-native-reanimated/android/src/main/AndroidManifest.xml.

Task :react-native-reanimated:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-reanimated:compileReleaseJavaWithJavac'.

Could not resolve all files for configuration ':react-native-reanimated:androidJdkImage'.
Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JdkImageTransform: /Users/garrysahota/Library/Android/sdk/platforms/android-34/core-for-system-modules.jar.
> Error while executing process /opt/homebrew/Cellar/openjdk/21.0.2/libexec/openjdk.jdk/Contents/Home/bin/jlink with arguments {--module-path /private/var/root/.gradle/caches/transforms-3/59caaf87868ff504c634bde2653036cc/transformed/output/temp/jmod --add-modules java.base --output /private/var/root/.gradle/caches/transforms-3/59caaf87868ff504c634bde2653036cc/transformed/output/jdkImage --disable-plugin system-modules}

  • 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.

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.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 14s
115 actionable tasks: 106 executed, 9 up-to-date
➜ android

@Garrysahota
Copy link
Author

package.json

"dependencies": {
"@gorhom/bottom-sheet": "^4.6.1",
"@react-navigation/bottom-tabs": "^6.5.16",
"@react-navigation/native": "^6.1.14",
"@react-navigation/native-stack": "^6.9.22",
"@reduxjs/toolkit": "^2.2.1",
"expo": "^50.0.8",
"expo-contacts": "~12.8.2",
"expo-font": "~11.10.3",
"expo-linear-gradient": "~12.7.2",
"expo-location": "~16.5.4",
"expo-secure-store": "~12.8.1",
"expo-splash-screen": "~0.26.4",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.73.4",
"react-native-app-intro-slider": "^4.0.4",
"react-native-element-dropdown": "^2.10.1",
"react-native-flash-message": "^0.4.2",
"react-native-gesture-handler": "^2.15.0",
"react-native-image-slider-box": "^2.0.7",
"react-native-phone-number-input": "^2.1.0",
"react-native-range-slider-expo": "^1.4.3",
"react-native-reanimated": "~3.6.2",
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "~3.29.0",
"react-native-size-matters": "^0.4.2",
"react-native-switch-toggle": "^2.2.1",
"react-redux": "^9.1.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"react-native-dotenv": "^3.4.11"
},

if anyone know how to fix this #issue please help
thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant