Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26008] The new update 7.1.1 does not work on Android (Gradle bug)

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDone
Resolution Date2018-05-07T08:08:44.000+0000
Affected Version/sRelease 7.1.1
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, build-error
ReporterAndreas Pingas
AssigneeEwan Harris
Created2018-05-03T08:16:00.000+0000
Updated2018-08-06T17:34:49.000+0000

Description

The new update 7.1.1 does not work on Android. At the creation of the SDK, stops and i get the following message:
[ERROR] Application Installer abnormal process termination. Process exit value was 1

[ERROR] :  Failed to run dexer:

[ERROR] :  

[ERROR] :  Exception in thread "main" java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

[ERROR] :  	at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)

[ERROR] :  	at org.gradle.wrapper.Install.createDist(Install.java:47)

[ERROR] :  	at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)

[ERROR] :  	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)

[ERROR] :  Caused by: java.util.zip.ZipException: error in opening zip file

[ERROR] :  	at java.util.zip.ZipFile.open(Native Method)

[ERROR] :  	at java.util.zip.ZipFile.<init>(ZipFile.java:219)

[ERROR] :  	at java.util.zip.ZipFile.<init>(ZipFile.java:149)

[ERROR] :  	at java.util.zip.ZipFile.<init>(ZipFile.java:163)

[ERROR] :  	at org.gradle.wrapper.Install.unzip(Install.java:160)

[ERROR] :  	at org.gradle.wrapper.Install.access$400(Install.java:29)

[ERROR] :  	at org.gradle.wrapper.Install$1.call(Install.java:70)

[ERROR] :  	at org.gradle.wrapper.Install$1.call(Install.java:47)

[ERROR] :  	at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)

[ERROR] :  	... 3 more
public String getFoo()
{
    return foo;
}

Comments

  1. Hans Knöchel 2018-05-03

    Hey there! Is the error happening when *building the SDK* or when *using the SDK*? E.g. when compiling the SDK or compiling the app? Thank you!
  2. Andreas Pingas 2018-05-03

    When building the SDK
  3. Yordan Banev 2018-05-03

    [~andreas.pingas] I was able to run a classic project and an Alloy one with 7.1.1.GA and SDK built from the sources from the latest 7_1_X commit without encountering that. Judging from the log you provided it may be due to a malformed archive while downloading. Would you be able to try if cleanly pulling the sources/downloading again the GA version will solve this. If that has no result any information you can share about your environment will be helpful in tracking the problem. You can share the result from appc info for instance.
  4. Andreas Pingas 2018-05-04

    I have delete and re-installed the whole 'Titanium' (folder) The bug persist as it has been deacribed before. I run in classic project the example that is created automatically when you create a new project. Environment: Appcelerator CLI 7.0.3, Titanium SDK 7.1.1, Appcelerator Studio 5.0.0 Im using macOS.
  5. Hans Knöchel 2018-05-04

    Which Java version do you use (e.g. 1.8.0, check with java -version)? I feel this is a Studio issue. Can you run your project with appc run -p android from the Terminal to see if there is a difference? Also the full log would help.
  6. Ewan Harris 2018-05-04

    Looking at the stack looks to be a gradle issue, and is usually fixed by nuking the gradle downloads [1](https://stackoverflow.com/questions/41893328/error-running-cordova-android-platform) [2](https://stackoverflow.com/questions/32535930/cordova-build-gradle-error-while-opening-extracting-zip-file). Find the .gradle folder in your home dir, and then remove the wrappers folder and try rebuilding
  7. Andreas Pingas 2018-05-07

    It seems that is now working properly. I have ad well deleted and re-installed Java Development Kit, Node.js , as well as the others tou state above.
  8. Eric Merriman 2018-08-06

    Closed as completed. If this is in error, please reopen.

JSON Source