【问题标题】:Application failed to install Android 9 (Pie)应用程序无法安装 Android 9 (Pie)
【发布时间】:2019-02-09 15:42:02
【问题描述】:

当我尝试运行我的项目时,任何 Android 版本为 9.0 的设备都会出现以下错误。我尝试了 3 种不同的设备。

[ERROR] : Application failed to install
The current timeout is set to 240000 ms
You can increase this timeout by running: titanium.js config android.appInstallTimeout <timeout ms>
[ERROR] Application Installer abnormal process termination. Process exit value was 1

但是当我将项目运行到操作系统为 Android 7.1 的设备上时,我没有收到任何错误。

我的环境规格如下

android.buildTools.selectVersion 9.0.0
Appcelerator Command-Line Interface, version 7.0.9
Titanium SDK 7.5.0.GA

【问题讨论】:

  • 您好,您的手机可能没有足够的空间来安装该应用程序吗?
  • 谢谢,安装apk的地方太多了。

标签: android appcelerator-titanium appcelerator-mobile appcelerator-studio


【解决方案1】:

请尝试执行以下操作:

appc ti config android.dx.maxMemory 2048m

【讨论】:

    【解决方案2】:

    这似乎是一个已知的 Android 问题。我通过将以下内容添加到您的 ~/.profile 或 ~/.bash_profile 来解决它:

    export _JAVA_OPTIONS="-Djava.net.preferIPv6Addresses=true"

    添加后,我可以在 Android 9 中使用 MacOS 安装我的应用程序,这也适用于 Linux。对于 Windows,请查看 this info 以获取“Gradle Sync Failed: Broken Pipe”的解决方案

    还要仔细检查手机的设置/连接的设备/USB 中是否启用了“传输文件”。 Android 9 将默认选项设置为“只为手机充电”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-05
      • 1970-01-01
      • 2022-01-06
      • 1970-01-01
      • 1970-01-01
      • 2016-04-07
      • 2017-12-05
      相关资源
      最近更新 更多