react-native android编译报错
2017-08-30 09:26
369 查看
报错信息
FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. * 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: 10.485 secs 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: https://facebook.github.io/react-native/docs/android-setup.html[/code]
里面有这一句,是SDK的原因> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
所以在android 文件目录新建 local.properties 文件,加入自己的SDK文件目录sdk.dir =C:\\Users\\Ledev2\\AppData\\Local\\Android\\Sdk
相关文章推荐
- React Native编译错误:ReactAndroid:buildReactNdkLib FAILED
- React Native Android Gradle 编译流程浅析(二)
- ReactNative学习问题笔记1:android工程中需要引用jar包中的aidl类时不能编译的问题
- React Native Android Gradle 编译流程浅析(二)
- React Native Android Gradle 编译流程浅析
- React Native Android Gradle 编译流程浅析(一)
- <React Native> 学习日记(1) 成功运行、编译RN-android的爬坑记录
- React Native Android入门实战及深入源码分析系列(2)——React Native源码编译
- React Native编译错误:ReactAndroid:buildReactNdkLib FAILED
- react native项目编译出错:解决之道
- 【React Native开发】React Native控件之ViewPagerAndroid讲解以及美团首页顶部效果实例(17)
- React Native android could not connect to development server
- 【React Native开发】React Native For Android环境配置以及第一个实例(1)
- 现有Android项目引入ReactNative
- React Native实战(二):Android的打包
- react native android 真机调试
- React Native控件学习之ProgressBarAndroid讲解
- 在Windows上将ReactNative集成到现有的Android项目
- React Native之ViewPagerAndroid仿淘宝首页顶部分类布局效果实现
- android版react-native-wechat使用方法