最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

android - Could not determine the dependencies of task ':react-native:packages:react-native:ReactAndroid:hermes-engine:c

matteradmin8PV0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0
  1. I need to either update it or install a previous version. Going from there it worked.
  2. 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

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far