![]() ![]() So, you also (for each project) need to go to File -> Project Structure -> Project Settings -> Project, and select the Project SDK, which is set to by default. This it seems is not enough! It appears that Android Studio (at least the new version 4) does not give projects a default SDK, despite the above setting. I know we have the setting for the SDK in File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK. I cloned my repo in another folder, do another "npm install", "react-native link", and it was working.Ī couple of days after posting the above solution, the problem returned on my Windows system.įinally after several hours of investigation I think I have another solution for everyone having issues with AVD Manager "Unable to locate adb". There was probably some parameter of android-studio 3.6 still in the /android/ So, now I can work with my new user, but I did not fix the problem.ĮDIT2: fixed the android-studio part (see his answer). ![]() I still get the error message, still the AVD launches, but now React-native can install the app on it. Yesterday, out of the blue, when I launched my android-studio, it "restarted" (showing me the install wizard, etc), and it seems it messed up its configuration.ĮDIT: I created a new ubuntu user, re-install android studio + react-native. ![]() ![]() I'm pretty sure the react-native part is fine, but that route to the emulator is not the same as before. gradlew app:installDebug -PreactNativeDevServerPort=8081 Run CLI with -verbose flag for more details.Įrror: Command failed. Make sure you have the Android development environment set up. But, when I try to run my react native app on it, I get the errorĮrror Failed to install the app. I did look in the Android/Sdk/platform-tools, I have an "adb" executable.Īfter the "unable to locate adb" error message, the AVD still launches. When I click on "launch this AVD in the emulator", I get an error message "Unable to locate adb". I use the 4.0 android-studio and Ubuntu 18.04 I read the answers "unable to locate adb" using Android Studio and Error:Unable to locate adb within SDK in Android Studio and it didn't solve my problem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |