android studio使用华为真机调试各种报错

android studio使用华为真机调试各种报错,第1张

概述1、提示unabletoloadscript.makesureyou'reeitherrunningametroserver(run'react-nativestart')orthatyourbundle'index.android.boundle'ispackagedcorrectlyforrelease.解决方案:进入项目的android>build.gradle文件,修改project.ext.

1、提示unable to load script.make sure you're either running a metro server (run 'react-native start') or that your bundle 'index.androID.boundle' is packaged correctly for release.


解决方案:
进入项目的androID>build.gradle文件,修改project.ext.react为如下,重点是bundleInDeBUG: true,

project.ext.react = [//    enableHermes: false,  // clean and rebuild if changing      entryfile:"index.Js",      bundleAssetname:"index.androID.bundle",      bundleInDeBUG: true,// 关键步骤      bundleInAlpha:true,      bundleInBeta:true,]

2、报错如下

FAILURE: Build Failed with an exception.* What went wrong:Execution Failed for task ':app:installDeBUG'.> java.util.concurrent.ExecutionException: com.androID.builder.testing.API.DeviceException: com.androID.ddmlib.InstallException: INSTALL_Failed_ABORTED: User rejected permissions* Try:Run with --stacktrace option to get the stack trace. Run with --info or --deBUG option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD Failed in 1m 7s    at makeError (E:\androidspace\reactTest\node_modules\execa\index.Js:174:9)    at E:\androidspace\reactTest\node_modules\execa\index.Js:278:16    at processticksAndRejections (internal/process/task_queues.Js:93:5)    at async runOnAllDevices (E:\androidspace\reactTest\node_modules\@react-native-community\cli-platform-androID\build\commands\runAndroID\runOnAllDevices.Js:94:5)    at async Command.handleAction (E:\androidspace\reactTest\node_modules\react-native\node_modules\@react-native-community\cli\build\index.Js:186:9)info Run Cli with --verbose flag for more details.

重点错误:INSTALL_Failed_ABORTED: User rejected permissions

解决如下:关闭监控ADB安装应用

总结

以上是内存溢出为你收集整理的android studio使用华为真机调试各种报错全部内容,希望文章能够帮你解决android studio使用华为真机调试各种报错所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1025593.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-23
下一篇2022-05-23

发表评论

登录后才能评论

评论列表(0条)

    保存