React Native 报错如下
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。

解决:

1、环境变量PATH

create (or edit) ~/.bashrc
添加 android sdk  path 环境如下命令

export ANDROID_HOME=/Users/ouhimehime/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools

2、配置权限

如果配置环境后不可以运行 可能是无权限运行

在项目下运行 就是为android文件夹下的gradlew命令 添加权限

chmod 755 android/gradlew

3、如果是从github 上clone下来的项目 看看是否有如下文件,把里面路径改为自己的


Could not install the app on the device, read the error above for details. Make sure you have an And相关推荐

  1. 在react-nactive项目中运行时,报错error Failed to install the app

    在react-nactive项目中运行时,报错 error Failed to install the app. Make sure you have the Android development ...

  2. App 打包提交APP Store途中遇到蛋疼的ERROR ITMS-90035

    背景说明 自己制作了一个类库Framework,其中使用了第三方的库和资源(xxx.bundle),导出Framework时,这些资源也被打包到Framework中,我把这个库引入到项目中进行开发. ...

  3. Failed to launch emulator 和 Failed to install the app解决方法

    1.按照react-native官网配置好android开发环境,创建一个新项目,然后在vscode使用npm start和npm run android 运行打包的时候,报了上面两个错误.(这是在创 ...

  4. Failed to install the app. Please accept all necessary SDK licenses using SDK Manager: $ANDROID_HO

    是否有这种错误,这时候你需要安装android-28 QQ群634196762

  5. 解决在iTunes Connect 创建App时出现There was an error creating your Bundle ID.

    昨天在iTunes Connect上创建App,填写完所有信息点击创建后既然报" There was an error creating your Bundle ID.",问度娘. ...

  6. 关于pip3 install tesserocr pillow安装失败,报错error: subprocess-exited-with-error的解决办法

    猜测失败原因: tesserocr和pillow不能同时安装,而应该先安装tesserocr,然后再安装pillow 1.首先我下载并安装了tesseract-ocr-w64-setup-v5.3.0 ...

  7. npm install报错:gyp verb `which` failed Error: not found: python2

    npm install后控制台报异常: npm WARN old lockfile npm WARN old lockfile The package-lock.json file was creat ...

  8. linux yum install * Loaded plugins: * mirror speeds from cached hostfile Error:Nothing to do

    linux yum install screen Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Er ...

  9. native 真机测试react_react-native真机调试出现Failed to install all

    使用的魅蓝note手机进行调试,没有想到就出现这个问题了. 错误信息: Installing APK 'app-debug.apk' on 'm1 note - 5.1' for app:debug ...

最新文章

  1. 广东时代互联---网络管理面试
  2. 伸展树算法c语言,数据结构伸展树介绍及C语言的实现方法
  3. DeepMind提出新型神经网络架构,用无监督方法从视频中提取关键点 | 论文
  4. PHP mysql 事务处理实例
  5. spring boot 在eclipse里启动正常,但打包后启动不起来
  6. sort函数——利用函数实现快速排序c++
  7. 20145227《信息安全系统设计基础》第一周学习总结
  8. search has not been saved
  9. miniuidatagrid只允许修改某一列_State Processor API:如何读取,写入和修改 Flink 应用程序的状态...
  10. Android AnimatedVectorDrawable
  11. 解决servlet中get方式中中文乱码问题前驱(一):装饰者模式再理解
  12. MySQL数据以全量和增量方式,同步到ES搜索引擎
  13. MyBatis笔记(一) 最简单的select
  14. 内置函数的数据聚合NumpyPandas
  15. 计算机考试关于计算量,2020年税务师考试计算器要求、考试教材变化及题型题量...
  16. (附源码)ssm牙科诊所预约网站 毕业设计 260952
  17. 100%快速解决谷歌翻译无法使用的问题,附修复工具
  18. 通过for循环生成简单的座位表
  19. 二分+秦九韶算法 求凸点
  20. Attention!当推荐系统遇见注意力机制

热门文章

  1. 【MOOC】华中科技大学计算机组成原理慕课答案-第六章-中央处理器(一)
  2. c#五子棋实验报告_基于c#的五子棋游戏的设计与实现毕业论文.doc
  3. WebUI——领导驾驶舱
  4. 传奇外网架设全套图文教程-Hero引擎
  5. C#利用Picturebox控件显示图片
  6. U盘打不开提示格式化,数据如何恢复?
  7. 百度搜索简单使用 以及 搜书网址
  8. BUUCTF[GYCTF2020]Blacklist
  9. 沪深交易所level2行情
  10. 计算机维修志愿活动策划书,家电义务维修志愿者活动项目策划书.docx