Execution failed for task ':expo-modules-core:compileDebugKotlin'.
See original GitHub issueSummary
When trying to run expo run:android
, I am getting the following error:
Execution failed for task ':expo-modules-core:compileDebugKotlin'.
> Kotlin could not find the required JDK tools in the Java installation '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home' used by Gradle. Make sure Gradle is running on a JDK, not JRE.
* 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 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 15s
280 actionable tasks: 279 executed, 1 up-to-date
/Users/douglas/Projects/app-mobile/android/gradlew exited with non-zero code: 1
I am trying to run my application on my physical device to debug (specifically react-native-image-picker
, since it allows multiple images selection, that’s why I’m not using Expo Go). My mobile device is connected via USB cable and when I run adb devices I get the following:
List of devices attached
0060032002 device
So my device seems fine, so it might be a bug with Expo.
Managed or bare workflow? If you have ios/
or android/
directories in your project, the answer is bare!
bare
What platform(s) does this occur on?
Android
SDK Version (managed workflow only)
No response
Environment
Expo CLI 4.13.0 environment info: System: OS: macOS 12.0.1 Shell: 5.8 - /bin/zsh Binaries: Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.0/bin/yarn npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm Watchman: 2021.11.15.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 30, 31 Build Tools: 29.0.2, 31.0.0 IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.1/13A1030d - /usr/bin/xcodebuild npmPackages: expo: ^43.0.0 => 43.0.3 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 npmGlobalPackages: expo-cli: 4.13.0 Expo Workflow: bare
Reproducible demo
- Run
expo init
as bare workflow - Allow USB Debugging on your Android device
- Connect USB cable to MacOS
- Enture
adb
is installed. If not, install in your machine - Run
adb devices
and see if your device is listed correctly - cd into your project and run
expo run:android
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:11 (2 by maintainers)
Could you please elaborate how you did it?
I’m having the same issue after update to Ventura 13 on my Mac Book 😦