离子 4 内置 apk 未安装
ionic 4 built apk not installing
我在签署 Apk 之前使用 --prod 和 --release 标志成功地将我的离子应用程序构建到 apk 中。一切都没有错误地发生。但是如果我尝试在我的 phone 上安装该应用程序,我会收到错误消息:
" App not installed."
我真的不知道该怎么办了。
我的 phone 是 运行 Android 8.1.0,我的离子信息显示如下:
Ionic:
ionic (Ionic CLI) : 4.7.1 (C:\Users\Joxeff.DESKTOP-NMC7DC1\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.11.10
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.1.2
Cordova:
cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 6 other plugins)
System:
Android SDK Tools : 26.1.1 (C:\Users\Joxeff.DESKTOP-NMC7DC1\AppData\Local\Android\Sdk)
NodeJS : v12.13.0 (C:\Program Files (x86)\nodejs\node.exe)
npm : 6.12.0
OS : Windows 10
检查您的 config.xml 并更改应用 ID。
或卸载相同app id的app。
<widget id="com.domain.app" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
如果您已有具有相同 ID 的应用程序,则无法在 android 上安装它。
有同样的问题,删除旧版本的应用程序后我可以安装新的应用程序。
我在签署 Apk 之前使用 --prod 和 --release 标志成功地将我的离子应用程序构建到 apk 中。一切都没有错误地发生。但是如果我尝试在我的 phone 上安装该应用程序,我会收到错误消息:
" App not installed."
我真的不知道该怎么办了。 我的 phone 是 运行 Android 8.1.0,我的离子信息显示如下:
Ionic:
ionic (Ionic CLI) : 4.7.1 (C:\Users\Joxeff.DESKTOP-NMC7DC1\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.11.10
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.1.2
Cordova:
cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 6 other plugins)
System:
Android SDK Tools : 26.1.1 (C:\Users\Joxeff.DESKTOP-NMC7DC1\AppData\Local\Android\Sdk)
NodeJS : v12.13.0 (C:\Program Files (x86)\nodejs\node.exe)
npm : 6.12.0
OS : Windows 10
检查您的 config.xml 并更改应用 ID。
或卸载相同app id的app。
<widget id="com.domain.app" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
如果您已有具有相同 ID 的应用程序,则无法在 android 上安装它。
有同样的问题,删除旧版本的应用程序后我可以安装新的应用程序。