应用程序无法安装Android 9(Pie)

问题描述 投票:2回答:2

当我尝试运行我的项目时,任何具有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
android appcelerator-titanium appcelerator-mobile appcelerator-studio
2个回答
0
投票

请尝试执行以下操作:

appc ti config android.dx.maxMemory 2048m

0
投票

这似乎是一个已知的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将默认选项设置为“仅对手机充电”。

© www.soinside.com 2019 - 2024. All rights reserved.