0. SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Go to the android/ directory of your react-native project
Create a file called local.properties with this line:
sdk.dir = /Users/USERNAME/Library/Android/sdk
Where USERNAME is your OSX username
1. failed to find target with hash string 'android-23'
Open Android SDK Manager
and install the specify sdk
2. A problem occurred configuring project ':app'.
> failed to find Build Tools revision 23.0.1
It was solved by looking at the available versions from the terminal with:
android list sdk -a
[...]
Packages available for installation or update: 156
1- Android SDK Tools, revision 24.4
2- Android SDK Platform-tools, revision 23.0.1
3- Android SDK Platform-tools, revision 23.1 rc1
4- Android SDK Build-tools, revision 23.0.1
[...]
And installing the right version with:
android update sdk -a -u -t 4
2016年9月26日 星期一
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言