相关疑难解决方法(0)

在Mac OS X上设置ANDROID_HOME环境变量

有人可以ANDROID_HOME通过终端发布有效的设置解决方案吗?

我的Android-SDK之路是/Applications/ADT/sdk.

macos android-studio

286
推荐指数
9
解决办法
40万
查看次数

React Native:找不到散列字符串'android-X'的目标

我正在尝试开发我的第一个react-native Android应用程序.我跑的时候

sudo react-native run-android
Run Code Online (Sandbox Code Playgroud)

我收到以下错误

JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> failed to find target with hash string 'android-23' in: /usr/local/Cellar/android-sdk

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 4.981 secs …
Run Code Online (Sandbox Code Playgroud)

android android-sdk-tools react-native

34
推荐指数
2
解决办法
2万
查看次数