Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Android Studio build fails (Android 15, SDK 35) #224

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

Open
saeid-elio opened this issue Oct 8, 2024 · 0 comments
Open

Android Studio build fails (Android 15, SDK 35) #224

saeid-elio opened this issue Oct 8, 2024 · 0 comments

Comments

@saeid-elio
Copy link

saeid-elio commented Oct 8, 2024

I can run my react native project in terminal via npm run android, but if I try to build it in Android Studio (Ladybug, Android 15, SDK 35) I get this error:

2: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-community_checkbox:compileDebugJavaWithJavac'.

Could not resolve all files for configuration ':react-native-community_checkbox: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/sm/Library/Android/sdk/platforms/android-34/core-for-system-modules.jar.
> Error while executing process /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/jlink with arguments {--module-path /Users/sm/.gradle/caches/transforms-3/d83a989e8404276f65be3e4101087425/transformed/output/temp/jmod --add-modules java.base --output /Users/sm/.gradle/caches/transforms-3/d83a989e8404276f65be3e4101087425/transformed/output/jdkImage --disable-plugin system-modules}

My package.json dependencies:

  "dependencies": {
    "@react-native-async-storage/async-storage": "^2.0.0",
    "@react-native-community/checkbox": "^0.5.17",
    "@react-navigation/native": "^6.1.18",
    "@react-navigation/native-stack": "^6.4.1",
    "@reduxjs/toolkit": "^2.2.2",
    "fs-extra": "^11.2.0",
    "react": "18.2.0",
    "react-devtools": "^4.27.2",
    "react-native": "0.73.6",
    "react-native-input-select": "^1.3.6",
    "react-native-safe-area-context": "^4.11.0",
    "react-native-screens": "^3.34.0",
    "react-native-uuid": "^2.0.2",
    "react-native-webview": "^13.12.2",
    "react-redux": "^9.1.0"
  },
@saeid-elio saeid-elio changed the title Android Studio build fails Android Studio build fails (Android 15, SDK 35) Oct 9, 2024
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