eclipse Phonegap Android 应用程序“未安装应用程序”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17461711/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:50:35  来源:igfitidea点击:

Phonegap Android App "App not installed"

androideclipsecordova

提问by wing suet cheung

I just try to create a Android project from the existing code in Eclipse. Everything seems fine without error prompt. Also I can test it in virtual device. So I tried to create a apk by exported unsigned application package. Finally the app cannot be installed to my android and it just prompt the "App not installed" message! How can I fix it? Thanks.

我只是尝试从 Eclipse 中的现有代码创建一个 Android 项目。一切似乎都很好,没有错误提示。我也可以在虚拟设备中测试它。所以我试图通过导出未签名的应用程序包来创建一个 apk。最后该应用程序无法安装到我的 android 上,它只是提示“未安装应用程序”消息!我该如何解决?谢谢。

采纳答案by ashu

take apk from bin folder and try to install it on device...not from create apk by exported unsigned package.make sure you have sufficient internal memory (that should be more than just the app size, because app needs to store data too).

从 bin 文件夹中获取 apk 并尝试将其安装在设备上...而不是通过导出的未签名包创建 apk。确保您有足够的内存(应该不仅仅是应用程序大小,因为应用程序也需要存储数据) .

回答by Kamran

I was facing the same error using cordova build --release androidfrom CLI to create apk but later on found that cordova build androidshould be used to create debug apk file.Hope it will help someone.

我在使用cordova build --release androidCLIcordova build android创建 apk 时遇到了同样的错误,但后来发现它应该用于创建调试 apk 文件。希望它会对某人有所帮助。

回答by khankhan

I was also getting this issue, despite using cordova build android. Turns out my problem was the following:

我也遇到了这个问题,尽管使用cordova build android. 原来我的问题如下:

I previously installed another phonegap app, which I built, without changing its widget id in config.xml. So the widget id remained "com.phonegap.helloworld".

我之前安装了另一个我构建的 phonegap 应用程序,但没有更改 config.xml 中的小部件 ID。所以小部件 ID 仍然是“com.phonegap.helloworld”。

Now, when building my new app, I also did not change the widget id. So both apps have the same widget id. This, it appears, is not allowed. So one potential solution is changing the widget id, so it does not interfere with anything else currently installed on your phone. Or, uninstall whatever your new app may be interfering with (perhaps some phonegap app you made earlier, as in my case).

现在,在构建我的新应用程序时,我也没有更改小部件 ID。所以这两个应用程序具有相同的小部件 ID。这似乎是不允许的。因此,一种潜在的解决方案是更改小部件 ID,这样它就不会干扰您手机上当前安装的任何其他内容。或者,卸载您的新应用程序可能会干扰的任何内容(也许是您之前制作的一些 phonegap 应用程序,就像我的情况一样)。

Here's what led me to this solution: https://github.com/phonegap/phonegap-plugin-push/issues/922

这就是让我找到这个解决方案的原因:https: //github.com/phonegap/phonegap-plugin-push/issues/922

回答by Gerfried

If you update/overwrite an existing app, first remove it with the application manager of your phone.

如果您更新/覆盖现有应用程序,请先使用手机的应用程序管理器将其删除。

回答by Arun Bertil

First, make sure you have sufficient internal memory (that should be more than just the app size, because app needs to store data too). The storage for apps is different from internal mass storage. You can find it under Settings > Storage, look for the Applications label.

首先,确保你有足够的内存(这应该不仅仅是应用程序的大小,因为应用程序也需要存储数据)。应用程序的存储不同于内部大容量存储。您可以在“设置”>“存储”下找到它,查找“应用程序”标签。

Also, if the app is, say 20 MB, keep at least 50 MB free, because apart from the app storage, Android also tends to slow down when short on internal memory.

此外,如果应用程序是 20 MB,则至少保留 50 MB 可用空间,因为除了应用程序存储空间外,Android 在内部内存不足时也会变慢。

If you're trying to update/overwrite an installed app, try removing it first.

如果您尝试更新/覆盖已安装的应用程序,请先尝试将其删除。

Thanks AB

谢谢AB

回答by Marc

For what it's worth... I started getting "app not installed" after I had created a guest account, for whatever reason. Deleting the guest account seems to have solved it!

对于它的价值......无论出于何种原因,我在创建访客帐户后开始“未安装应用程序”。删除guest账号好像解决了!