admin管理员组文章数量:1431927
Everytime I run pnpm start:android:dev
it returns me the following error `
What went wrong:
Could not determine the dependencies of task
>':react-native:packages:react-native:ReactAndroid:hermes-engine:configureBuildForHermes'.
>Could not create task ':react-native:packages:react-native:ReactAndroid:hermes-engine:installCMake'.
> Could not find sdkmanager executable.
the detailed version of the error is here ;page=1
Assuming the problem is happening because of the sdkmanager wasn't installed properly so I tried to use the SDK from both command line tools only and android studio, I set the environment variables like this
ANDROID_HOME=C:\Users\hmeli\Downloads\android_sdk
, then Path=%ANDROID_HOME%\platform-tools and %ANDROID_HOME%\cmdline-tools\tools\bin
still not working, I also tried writing the full path for platform-tools
and sdkmanager
instead of using %ANDROID_HOME%
but it didn't help. In both case running the sdkmanager --version
command works in command prompts and powershell but not in git bash.
How do I solve this problem?
Everytime I run pnpm start:android:dev
it returns me the following error `
What went wrong:
Could not determine the dependencies of task
>':react-native:packages:react-native:ReactAndroid:hermes-engine:configureBuildForHermes'.
>Could not create task ':react-native:packages:react-native:ReactAndroid:hermes-engine:installCMake'.
> Could not find sdkmanager executable.
the detailed version of the error is here https://scans.gradle/s/bvstpyuewxyve/console-log?anchor=99&page=1
Assuming the problem is happening because of the sdkmanager wasn't installed properly so I tried to use the SDK from both command line tools only and android studio, I set the environment variables like this
ANDROID_HOME=C:\Users\hmeli\Downloads\android_sdk
, then Path=%ANDROID_HOME%\platform-tools and %ANDROID_HOME%\cmdline-tools\tools\bin
still not working, I also tried writing the full path for platform-tools
and sdkmanager
instead of using %ANDROID_HOME%
but it didn't help. In both case running the sdkmanager --version
command works in command prompts and powershell but not in git bash.
How do I solve this problem?
Share Improve this question asked Nov 18, 2024 at 20:59 Hm Elius Hossain HimelHm Elius Hossain Himel 8813 bronze badges1 Answer
Reset to default 0- I need to either update it or install a previous version. Going from there it worked.
- Click Tools > Android > SDK Manager or select SDK Manager from the toolbar to launch the SDK Manager from Android Studio. You can use the sdkmanager command-line tool to get tools if you're not using Android Studio. The following URL should be checked: https://developer.android/studio/intro/update.html#sdk-manager
本文标签:
版权声明:本文标题:android - Could not determine the dependencies of task ':react-native:packages:react-native:ReactAndroid:hermes-engine:c 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745594470a2665391.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论