为了账号安全,请及时绑定邮箱和手机立即绑定

电脑插上手机,运行 cordova run android 结果打包成功,但手机的页面却无法显示页面,为什么?

电脑插上手机,运行 cordova run android 结果打包成功,但手机的页面却无法显示页面,为什么?

喵喔喔 2019-01-17 23:50:46
手机连着电脑,并且打开的调试工具,运行 cordova run android 结果打包成功,但手机的页面却无法显示页面,为什么? BUILD SUCCESSFUL in 2s 47 actionable tasks: 1 executed, 46 up-to-dateBuilt the following apk(s): E:\qns-mobile\platforms\android\app\build\outputs\apk\debug\app-debug.apk ANDROID_HOME=C:Program FilesAndroidandroid-sdkJAVA_HOME=C:Program FilesjavaJDKjdkNo target specified, deploying to device 'KVPBB18209202450'.noneSkipping build...Built the following apk(s): E:\qns-mobile\platforms\android\app\build\outputs\apk\debug\app-debug.apk Using apk: E:qns-mobileplatformsandroidappbuildoutputsapkdebugapp-debug.apkPackage name: cn.evun.qns(node:25828) UnhandledPromiseRejectionWarning: Error: C:Program FilesAndroidandroid-sdkplatform-toolsadb.exe: Command failed with exit code 1 Error output:adb: failed to install E:qns-mobileplatformsandroidappbuildoutputsapkdebugapp-debug.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package cn.evun.qns signatures do not match the previously installed version; ignoring!] at ChildProcess.whenDone (E:\qns-mobile\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) (node:25828) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)(node:25828) [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.PS E:qns-mobile> 是我哪里出错了? 困扰了一天求大神指教...
查看完整描述

1 回答

?
慕码人8056858

TA贡献1803条经验 获得超6个赞

输出当中有明确的错误提示:

INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package cn.evun.qns signatures do not match the previously installed version; ignoring!

意思是你手机上有个包名相同但签名不同的app阻止了这个app的安装,你需要在手机上找到那个app,卸载掉重新来过,如果实在找不到,也可以把包名改下,重来过。

查看完整回答
反对 回复 2019-02-12
  • 1 回答
  • 0 关注
  • 2093 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号