
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真机调试。求解答。
展开
1个回答
展开全部
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.跨域(...
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询