Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6559] Android app does not start (Appcelerator Studio or Terminal) with SDK 9.0.3.GA

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2020-06-18T17:36:29.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI, Studio
Labelsandroid, appcelerator, run, sdk-9.0.3, studio
ReporterAntje Schattat
AssigneeAbir Mukherjee
Created2020-06-12T08:08:44.000+0000
Updated2020-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

Comments

  1. Antje Schattat 2020-06-12

    Note: same situation on emulator and on device And: some Alloy Apps do not start under SDK 9.0.3.GA either
  2. Antje Schattat 2020-06-12

    I found the mistake. There was a conflict between the
       <android>
       
    in the tiapp.xml and AndroidManifest.xml. There was an
       <application>
       
    in both files and Gradle expects only one.
  3. Joshua Quick 2020-06-18

    [~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.

JSON Source