[AC-6559] Android app does not start (Appcelerator Studio or Terminal) with SDK 9.0.3.GA
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2020-06-18T17:36:29.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Appcelerator CLI, Studio |
| Labels | android, appcelerator, run, sdk-9.0.3, studio |
| Reporter | Antje Schattat |
| Assignee | Abir Mukherjee |
| Created | 2020-06-12T08:08:44.000+0000 |
| Updated | 2020-06-18T17:36:35.000+0000 |
Description
I want to create my Classic app with the Titanium SDK 9.0.3.GA. I get the following information in the console:
[GRADLE] BUILD SUCCESSFUL in 12s
App successfully installed
Starting app: _ch.test.app_
However, the app does not start, even after a long wait. There is no mistake, no clues.
[ERROR] Application Installer abnormal process termination. Process exit value was 1
[ERROR] : Application failed to launch
The current timeout is set to 300000 ms
You can increase this timeout by running: titanium.js config android.appStartTimeout <timeout ms>
It doesn't work in the studio and in the terminal.
What else can I do to get the app to start again? It works perfectly under SDK 8.3.1.GA. As of SDK 9.0.0.GA, it no longer works.
Thanks
Note: same situation on emulator and on device And: some Alloy Apps do not start under SDK 9.0.3.GA either
I found the mistake. There was a conflict between the
in the tiapp.xml and AndroidManifest.xml. There was anin both files and Gradle expects only one.[~aschattat], you can definitely have an
<application/>block in both the "tiapp.xml" and "./platform/android/AndroidManifest.xml" file. I've tested it and it works. I'm not sure what you're doing. It would help if you showed us what your "AndroidManifest.xml" looked like. I suspect it was replacing something that the install process depended on. FYI: Titanium 9.x.x uses gradle to merge "AndroidManifest.xml" files. So, I suspect what you had might have confused the Android Studio IDE as well. But we can double check to be sure.