Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24439] Hyperloop-android Fails at running dexer with a file not found exception. complains about a classes.jar

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, engSchedule, hyperloop
ReporterBrian García
AssigneeJan Vennemann
Created2016-12-19T14:17:57.000+0000
Updated2019-08-27T15:38:34.000+0000

Description

With the libjingle library attached trying to run the project results in a build crash with the following error:
[ERROR] :  Failed to run dexer:
[ERROR] :  
[ERROR] :  UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] :  java.io.FileNotFoundException: /Users/Brian/Documents/workspace/RestComm/build/hyperloop/android/libjingle-11139/classes.jar,/Users/Brian/Documents/workspace/RestComm/build/hyperloop/android/libjingle-11139/libs/libjingle_peerconnection.jar (No such file or directory)
[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 com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
[ERROR] :  	at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
[ERROR] :  	at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
[ERROR] :  	at com.android.dx.command.dexer.Main.processOne(Main.java:672)
[ERROR] :  	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
[ERROR] :  	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
[ERROR] :  	at com.android.dx.command.dexer.Main.run(Main.java:277)
[ERROR] :  	at com.android.dx.command.dexer.Main.main(Main.java:245)
[ERROR] :  	at com.android.dx.command.Main.main(Main.java:106)
[ERROR] :  1 error; aborting
libjingle_peerconnection.jar exists in directory but classes.jar doesn't.

Attachments

FileDateSize
libjingle_peerconnection-7113.jar2016-12-19T14:14:19.000+000072137

Comments

  1. Sharif AbuDarda 2017-01-31

    Hello, We could not reproduce. Can you reconfirm the jar was added to "app/platform/android" directory? Thanks.
  2. Brian García 2017-01-31

    Sorry! missed one .aar you can download from here (https://mvnrepository.com/artifact/io.pristine/libjingle/11139). With these two packages placed correctly and the following code :
        var EnumSet = require("java.util.EnumSet");
           var ArrayList = require("java.util.ArrayList");
           var TextureView = require("android.view.TextureView");
           var Surface = require("android.view.Surface");
           var Activity = require('android.app.Activity');
           var JSONObject = require('org.json.JSONObject');
           var JSONObject = require('org.json.JSONException');
           var JSONObject = require('org.json.JSONArray');
           var MediaConstraints = require("org.webrtc.MediaConstraints");
           var MediaConstraints = require("org.webrtc.PeerConnection");
       
           var activity = new Activity(Ti.Android.currentActivity);
       
       
    causes the above error

JSON Source