简体   繁体   中英

Can't install unsigned Cordova apk

I just built a basic Cordova image, but I can't install it on my Android phone.

It says the package is corrupted.

I have enabled "Trust unknown sources" and copied the file onto my Nexus 6P.

The build process doesn't throw any errors, it creates a android-release-unsigned.apk file as expected.

Had the same problem as you because I followed the guide I linked in the comments above; that guide is for building a release build, not a test build.

In order to build a test build, do:

cordova build android

Which should create a file called debug-build.apk

In addition, if you have an android device set up for development , you can run:

cordova run android --device

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM