[TIMOB-26898] Android: Build error "Failed to run dexer" can occur when including several libraries
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-07-16T22:48:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.5.2 |
Components | Android |
Labels | android, build, cli, dexer, java |
Reporter | Arbind |
Assignee | Gary Mathews |
Created | 2019-03-06T04:06:05.000+0000 |
Updated | 2019-07-16T22:48:16.000+0000 |
Description
With the recent update, android compilation gets stuck at the "Running dexer" step. This happens when I add the cloudpush module to the project.
To reproduce the error, you can simply create a blank project (alloy), add the cloudpush module for android, and try to compile the app for Android.
Attachments
Hello, Thanks for reporting this. Which SDK are you using? It would be great if you can share complete console logs or screenshot which displays the issue.
It happens with both, 7.5.1GA as well as 7.5.2 RC. Here are the logs.
Hello [~mr.arbindbhagat], There seems to be an issue with cloudpush module with SDK 7.5.1.GA and onward. I tried to test a sample app (classic) with the module enabled with SDK 7.5.1.GA. The first issue I encounter was
So, I changed the module version to 5.2.0 and this time the console hangs on running dexer. The process never finishes and my processor seems to work a lot in the back. [~rmitro], Can you try to reproduce the behavior? After that, we can move it to engineering. Thanks.
Yes, you are right. That was the main/initial issue. And Appcelerator released 7.5.2 RC ( https://www.appcelerator.com/blog/2019/03/rc-release-titanium-sdk-7-5-2/ ) saying that it would fix the cloudpush issue. But it has not fixed it. And yes, I can reproduce the issue that you mentioned above.
[~rmitro] Please use
7.5.2
which containsti.cloudpush-6.0.1
[~mr.arbindbhagat] Make sure your application is using
ti.cloudpush-6.0.1
. Could you also provide a build log?Hi Gary, Yes, I did try with 7.5.2 using ti.cloudpush-6.0.1 , but that didn't help. It gets stuck for more than 30 minutes at the step of "Running Dexer" . Attached is the logs. [^appc-logs-dexer.txt]
Hello [~gmathews], I tried with the SDK 7.5.2.v20190306131103 with ti.cloudpush-6.0.1 selected in tiapp.xml. The app stuck before running dexer. I have the same log as [~mr.arbindbhagat]. This seems to be a valid issue with ti.cloudpush module. Thanks.
[~mr.arbindbhagat] [~sdarda] What version of Java are you using?
Hello, It's 1.8.0, I am on Mac OS
Hi, I am on Mac OS and my java is 1.8.0.
[~shossain][~mr.arbindbhagat] We're having a hard time reproducing this issue on our machines, could you try a couple of things? 1. Try using an older version of
ti.playservices
in yourtiapp.xml
2. Remove the
ti.playservices
module entry from yourtiapp.xml
and use a lower version ofti.cloudpush
Could you note the outcome of those two changes?
Gary, I tried to compile without including ti.playservices module, and it failed. I tried to compile by including the ti.playservices latest version module, and it failed. I tried to compile with ti.playservices 11.0.40 version module, and it worked. (1) So, does it mean that, there is an issue with the latest version of ti.playservices module? (2) Why am I required to include the ti.playservices module even if I don't use it?
Hello [~gmathews], [~mr.arbindbhagat], Here is my observation. 1. I tried with
set in the tiapp.xml and I run with trace log. The project builds and run fine in 2min 10s in the emulator. 2. Then, I run the project with only
set in the tiapp.xml and I see the ti.playservices module version=16.1.2 is used by default. Now, the project did finish building and run after 3min 15s. 3. Then, I clean the project "appc ti clean" and try to run again. Now I see the log stuck after running dexer for over 30 minutes. So, ti.playservices=11.0.40 module version works fine with the latest ti.cloudpush version=6.0.1(latest). Also, ti.playservices module version=16.1.2 works fine with ti.cloudpush version=5.2.0. The issue seems to be with ti.playservices module version=16.1.2 with ti.cloudpush version=6.0.1(latest). Thanks.
master: https://github.com/appcelerator/titanium_mobile/pull/10774 8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10775 7_5_X: https://github.com/appcelerator/titanium_mobile/pull/10776
Verified the fix in SDK 8.0.0.v20190313105932. Closing.
Can you please build it for 7.5.x as well so that I could install through the appc install command? I don't see it here http://builds.appcelerator.com/#7_5_X , and hence I am not able to install this fix.
[~mr.arbindbhagat], If you have
appc CLI
installed you can get the latest from CI by runningappc ti sdk install -b 7_5_X
.