![]() Choose the “android” folder in your project folder.Here’s how to open your project in Android Studio: The `local.properties` file was automatically created when Android Studio opened the folder, and my project worked perfectly after that. I was ultimately able to solve the problem by simply opening my project’s Android folder in Android Studio. This didn’t feel right to me since I never had to do that for my other apps. Solutions on the Internet involved different convoluted steps for different operating systems and modifying the computer’s environment variables. I was confused because I didn’t mess with the Android project at all and I followed all of React Native’s instructions for my new app. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. Note: You may need to open a new command prompt if you are getting command not found after setting environment variables.I recently created a new React Native app, SkinSafe, for a hackathon (we won)! While trying to run the app on an Android emulator, following the React Native docs, I came across the following error: Error: SDK location not found. Step 8: Go to command prompt and type adb. If everything successful you will see below output. Step 7: From Edit environment variable dialogue box, Click on New and enter path for platform-tools and tools. Step 6: Select on Path variable in User or System Variable section and click on Edit or you can double click on Path variable as well. Step 5: In New User Variable dialogue, Enter Variable name as ANDROID_HOME and Variable value as C:\Users\goswa\AppData\Local\Android\Sdk and Click on OK button Step 4: In User variables or System Variable section, click on New button. Step 3: Click Environment Variables on System Properties Dialogue ![]() Steps to set Android_Home Environment Variable path ![]() If you are not able to find AppData folder you can follow this article. To set up the Android Environment variable on Windows, you first required to have Android installation path with you.īy default it should be similar to this C:\Users\UserName\AppData\Local\Android\Sdk. After you are done with installation of Android SDK on Windows 10, you must set the ANDROID_HOME environment variable to point to the Android SDK installation directory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |