Sample error:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | D:\VueNative\demo>react-native run-android (node:1644) Warning: Accessing non-existent property 'padLevels' of module expor ts inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) info JS server already running. info Building and installing the app on the device (cd android && gradlew.bat ap p:installDebug)... FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > SDK location not found. Define location with an ANDROID_SDK_ROOT environment v ariable or by setting the sdk.dir path in your project's local properties file a t 'D:\VueNative\demo\android\local.properties'. * 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. d_line_warnings BUILD FAILED in 1s error Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details. |
Solution: Create file local.properties
1 | sdk.dir=C:/Users/Administrator/AppData/Local/Android/Sdk |
Done!
0 Comentarios
Dejanos tu comentario para seguir mejorando!