ionic cordova run android时,报错: Error: Could not find apk architecture: arm build-type: debug

如题,在尝试ionic真机调试的时候,真机已连接,已安装gradle、platformandroid等必要的东西,甚至已经BUILDSUCCESSFUL。但是在连接真机时... 如题,在尝试ionic真机调试的时候,真机已连接,已安装gradle、platform android等必要的东西,甚至已经BUILD SUCCESSFUL。但是在连接真机时出现错误:ANDROID_HOME=D:\*******\AndroidSDKJAVA_HOME=D:\********\JavaDevelopmentKitNo target specified, deploying to device 'e587bce3'.Skipping build...(node:812) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Could not find apk architecture: arm build-type: debug(node:812) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.完整的build日志如下:D:\****\_>ionic cordova run androidRunning app-scripts build: --platform android --target cordova....(由于字数限制 ionic编译过程略过)> cordova run androidANDROID_HOME=D:\****\AndroidSDKJAVA_HOME=D:\****\JavaDevelopmentKitSubproject Path: CordovaLib[10:11:15] lint finished in 5.56 snullThe Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead. at build_5pmtyq293wcbazhp55sxpbrfb.run(D:\*****\_\platforms\android\build.gradle:144)Configuration 'compile' in project ':' is deprecated. Use 'implementation' instead.org.xwalk:xwalk_core_library:23+publishNonDefault is deprecated and has no effect anymore. All variants are now published.:preBuild UP-TO-DATE.......(由于字数限制,中间一大堆 UP-TO-DATE 略过)BUILD SUCCESSFUL in 23s73 actionable tasks: 12 executed, 61 up-to-dateBuilt the following apk(s):ANDROID_HOME=D:\****\AndroidSDKJAVA_HOME=D:\*****\JavaDevelopmentKitNo target specified, deploying to device 'e587bce3'.Skipping build...Built the following apk(s):(node:8408) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Could not find apk architecture: arm build-type: debug(node:8408) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.[OK] Your app has been deployed. Did you know you can live-reload changes from your app with --livereload?然后命令终止退出,真机毫无反应。我所连接的真机设备为:D:\****\_>adb devicesList of devices attachede587bce3 device该真机在同事mac电脑上可以连接并启动ionic真机调试。求解答。 展开
 我来答
动动火k
2018-03-16 · TA获得超过733个赞
知道小有建树答主
回答量:610
采纳率:82%
帮助的人:142万
展开全部
1npm按装包失败 更换源:npm config set registry 或者使用cnpm sudo npm install -g cnpm --registry 2.ionic真机调试 ionic run android --livereload -c -s 3.ionic run ios 报错 sudo npm install -g ios-deploy --unsafe-perm=true 4.跨域(...
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式