红联Linux门户
Linux帮助

64位Linux上运行React Native遇到的问题

发布时间:2017-02-18 09:33:57来源:linux网站作者:MrByte
系统环境:Debian 8 64位
IDE:Android Studio 2.2.3
 
问题1:
用Android Studio新版的AVD Manager无法创建模拟器,只能用旧的AVD Manager创建(原因不明)
解决方法:SDK Manager -> Launch Standalone SDK Manager -> Tools -> Manage AVDs
 
问题2:
Execution failed for task ':app:mergeDebugResources'.
> Crunching Cruncher abc_ic_ab_back_mtrl_am_alpha.png failed, see logs
往上查找发现sdk/build-tools/23.0.1目录下的aapt不能正常执行
解决方法:
64位Linux上运行React Native遇到的问题
 
问题3:
Java.lang.RuntimeException: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
解决方法:
64位Linux上运行React Native遇到的问题
 
问题4:
真机调试出现的问题
Error while uploading app-debug.apk : Unknown failure
Unable to install /home/jack/Desktop/code/rn/HelloWorld/android/app/build/outputs/apk/app-debug.apk
com.android.ddmlib.InstallException: Unable to upload some APKs
解决方法:(在步骤3)
64位Linux上运行React Native遇到的问题
 
本文永久更新地址:http://www.linuxdiyf.com/linux/28501.html