Closed macasfaj closed 7 years ago
We use latest 8.4.0 google play services released in Dec 2015. The fact is google play services in Ti.map module is outdated. It was last updated on on Aug 5, 2015. What is the exact error?
I found a workaround. I delete google-play-services.jar from Pushwoosh module and it works!!!
Ti.map has two libraries: google-play-services-base.jar and google-play-services-map.jar
Those files crash with google-play-services.jar from PushWoosh module. When I compile from Android and dexer is running, I get this:
`[INFO] : Running dexer: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Applications/Android_SDK/platform-tools" "-jar" "/Applications/Android_SDK/build-tools/23.0.1/lib/dx.jar" "--dex" "--output=/Users/Miguel/Documents/CruzdeGuiaApp/build/android/bin/classes.dex" "/Users/Miguel/Documents/CruzdeGuiaApp/build/android/bin/classes" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/lib/titanium-verify.jar" "/Users/Miguel/Documents/CruzdeGuiaApp/modules/android/bencoding.android.tools/0.34/androidtools.jar" "/Users/Miguel/Library/Application Support/Titanium/modules/android/ti.map/2.3.7/map.jar" "/Users/Miguel/Library/Application Support/Titanium/modules/android/ti.map/2.3.7/lib/google-play-services-base.jar" "/Users/Miguel/Library/Application Support/Titanium/modules/android/ti.map/2.3.7/lib/google-play-services-map.jar" "/Users/Miguel/Documents/CruzdeGuiaApp/modules/android/ti.ga/2.0.0/tiga.jar" "/Users/Miguel/Documents/CruzdeGuiaApp/modules/android/ti.ga/2.0.0/lib/google-play-services-analytics.jar" "/Users/Miguel/Documents/CruzdeGuiaApp/modules/android/com.pushwoosh.module/1.2.0/pushnotifications.jar" "/Users/Miguel/Documents/CruzdeGuiaApp/modules/android/com.pushwoosh.module/1.2.0/lib/Pushwoosh.jar" "/Users/Miguel/Documents/CruzdeGuiaApp/modules/android/com.pushwoosh.module/1.2.0/lib/google-play-services.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/kroll-v8.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-analytics.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/aps-analytics.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-android.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/jaxen-1.1.1.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/ti-commons-codec-1.3.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/kroll-common.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/titanium.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-filesystem.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-app.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-ui.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/nineoldandroids-appc-2.4.0.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-media.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-appcompat.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/android-support-v4.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/android-support-v7-appcompat.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-cardview.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/cardview-v7-23.0.1.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-locale.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-network.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-xml.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-utils.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-geolocation.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-accelerometer.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-contacts.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-map.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-gesture.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-calendar.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-platform.jar" "/Users/Miguel/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.v20160301015541/android/modules/titanium-database.jar"
[ERROR] : Failed to run dexer:
[ERROR] :
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzrn;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzrp;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzro;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzrl;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzrm;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/zzc;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/ConnectionResult;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/zza;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/Scopes;
[ERROR] :
[ERROR] : UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] : java.lang.RuntimeException: Translation has been interrupted
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:608)
[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] : Caused by: java.lang.InterruptedException: Too many errors
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:600)
[ERROR] : ... 4 more
`
I recommend deleting google-play-services-base.jar and google-play-services-map.jar instead since they are already included in google-play-services.jar. Moreover these two libraries are not enough. Pushwoosh module also requires google-play-services-gcm, google-play-services-basement and google-play-services-location. They are all part of google-play-services.jar.
It doesn't work :( If I delete those files from ti.map, the map module fails when the map is opened.
I get:
[ERROR] : TiApplication: (main) [20,143140] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.prisaradio.Cruzdeguia/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 8487000 but found 7571000. You must have the following declaration within the
Any idea?
With module ti.ga (Google Analytics) Pushwoosh fails too.
Google play services lib checks you have valid com.google.android.gms.version defined in AndroidManifest.xml. Both modules define it automatically but they set different version numbers. Try replacing google_play_services_version value with 8487000.
Thanks. It works. :)
Hello, Reading this thread we partially solved our issue. The problem is that Facebook Appcelerator Module is also causing problems that don't allow us to compile the project. It fails when running dexer. I need to solve this ASAP, so any help or tip is welcome :D
If you have dexer problems it means you referencing the same library twice from different modules. You might need to remove other copies of the library.
Yes, I suppose that, but if I check the Official Facebook Module from Appcelerator, I cannot find which library its repeated and how can I solve this. As it is an offical module, could you help me to solve this? I told my client to buy this product but if it's not possible to use it with Facebook module, It won't be useful at all :S Thanks!
Maybe it's in some other module? It's hard to see what is happening without error log.
There's no other module at my project. Neither plugin. Here I attach the error log. [INFO] : Running dexer: C:\Progra~2\Java\jdk1.8.0_45\bin\java.exe "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=C:\Program Files (x86)\Android\android-sdk\platform-tools" "-jar" "C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\lib\dx.jar" "--dex" "--output=C:\Users\Maxi\Documents\Titanium Projects\Rapitiendas_usuario\build\android\bin\classes.dex" "C:\Users\Maxi\Documents\Titanium Projects\Rapitiendas_usuario\build\android\bin\classes" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\lib\titanium-verify.jar" "C:\Users\Maxi\Documents\Titanium Projects\Rapitiendas_usuario\modules\android\com.pushwoosh.module\1.2.0\pushnotifications.jar" "C:\Users\Maxi\Documents\Titanium Projects\Rapitiendas_usuario\modules\android\com.pushwoosh.module\1.2.0\lib\google-play-services.jar" "C:\Users\Maxi\Documents\Titanium Projects\Rapitiendas_usuario\modules\android\com.pushwoosh.module\1.2.0\lib\Pushwoosh.jar" "C:\ProgramData\Application Data\Titanium\modules\android\ti.map\2.3.6\map.jar" "C:\ProgramData\Application Data\Titanium\modules\android\facebook\5.0.0\facebook.jar" "C:\ProgramData\Application Data\Titanium\modules\android\facebook\5.0.0\lib\AudienceNetwork-fb-4.7.0.jar" "C:\ProgramData\Application Data\Titanium\modules\android\facebook\5.0.0\lib\bolts-android-1.2.1.jar" "C:\ProgramData\Application Data\Titanium\modules\android\facebook\5.0.0\lib\facebook_sdk_470.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\kroll-v8.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-analytics.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\aps-analytics.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-android.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\jaxen-1.1.1.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\ti-commons-codec-1.3.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\kroll-common.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\titanium.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-app.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-ui.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\nineoldandroids-appc-2.4.0.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-filesystem.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-media.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-appcompat.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\android-support-v4.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\android-support-v7-appcompat.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-cardview.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\cardview-v7-23.0.1.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-locale.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-network.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-xml.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-geolocation.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-platform.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-map.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-database.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-gesture.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-utils.jar" [ERROR] : Failed to run dexer:
[ERROR] : Failed to run dexer:
You skipped the most interesting part of the log:
[ERROR] : trouble writing output: Too many method references: 67445; max is 65536.
As a workaround you can replace google-play-services.jar with play-services-base-8.4.0.jar, play-services-basement-8.4.0.jar, play-services-gcm-8.4.0.jar and play-services-location-8.4.0.jar. These libraries are available as .aar in Android/sdk/extras/google/m2repository/..
. You should also update Android SDK before doing this.
How to convert aar to jar
Thanks, It partially worked. I did what you mentioned but it wasn't enough. Summing up, we did the following:
After doing this, finally works :P
Thanks!
Thanks to @macasfaj, if you have a conflict with PushWoosh module and Ti.Map, the tempory solution is :
google_play_service_version
with 8487000 in the file ti.map/[version]/platform/android/res/values/version.xml
The Pushwoosh team need to replace google-play-services.jar
lib, it's 5.8 mo !
@buje :+1: Thanks!
Hi, guys. Did all of the above, but still no success. When I manage to pass the build, I get the following:
[ERROR] TiExceptionHandler: (main) [0,748] - Message: Uncaught Error: Attempt to invoke virtual method 'void com.pushwoosh.PushManager.unregisterForPushNotifications()' on a null object reference [ERROR] TiExceptionHandler: (main) [0,748] - Source: uire("push")(t);e.open()},1e3)}})},exports.stopPush=function(){push.unregister [ERROR] V8Exception: Exception occurred at services.js:1: Uncaught Error: Attempt to invoke virtual method 'void com.pushwoosh.PushManager.unregisterForPushNotifications()' on a null object reference
Can anyone help me with this?
@perdona can you simplify your project so I could take a look on it? Is it on github or this is private repo?
@shaders This is a private repo. Any ideas of what this might be?
This works for me
I'm using 5.2.2.GA version of the Titanium SDK
Essentially you cannot reference different java classes in non-equal jars. So if you have a.class it needs to be in a jar called a.jar, then all jars which use a.class need to be called a.jar. Then you put a.jar in every custom module where you want to call a.class. You cannot put a.class in b.jar and reference it in a module if you are using a.class in a.jar for example. This gets messy though if you split up jars as you need to keep track of which classes you use. I suggest using proguard as described in the following link: https://medium.com/all-titanium/deal-with-titanium-modules-and-its-missing-support-for-android-multidex-546de5486d13#.mpoytsnmp A jar is just a zip file essentially though so if you do not want to use dexer then do what I did: (1) Rename the jar file to a zip file. (2) Take out the classes/split up the classes into separate folders as desired (3) Zip the desired class folders. (4) Remove some undesirables and rename zip folder if you did not already, eg. zip -d com.zip __MACOSX/;mv com.zip google-play-services.zip;zip -d google-play-services.zip /.DS_Store (5) Rename to .jar
Good luck
Guys, I stripped the jars so there are no repeated classes. I managed to build the app, but when I send a push, I get this error:
[ERROR] TiApplication: (main) [32393,38267] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to instantiate receiver com.google.android.gcm.GCMBroadcastReceiver: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gcm.GCMBroadcastReceiver" on path: DexPathList[[zip file "/data/app/br.com.pinion-2/base.apk"],nativeLibraryDirectories=[/data/app/br.com.pinion-2/lib/arm, /data/app/br.com.pinion-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]; Titanium 5.3.0,2016/06/01 10:18,94fa8af [ERROR] TiApplication: java.lang.RuntimeException: Unable to instantiate receiver com.google.android.gcm.GCMBroadcastReceiver: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gcm.GCMBroadcastReceiver" on path: DexPathList[[zip file "/data/app/br.com.pinion-2/base.apk"],nativeLibraryDirectories=[/data/app/br.com.pinion-2/lib/arm, /data/app/br.com.pinion-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]] [ERROR] TiApplication: at android.app.ActivityThread.handleReceiver(ActivityThread.java:2724) [ERROR] TiApplication: at android.app.ActivityThread.-wrap14(ActivityThread.java) [ERROR] TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1431) [ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] TiApplication: at android.os.Looper.loop(Looper.java:148) [ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5443) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) [ERROR] TiApplication: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gcm.GCMBroadcastReceiver" on path: DexPathList[[zip file "/data/app/br.com.pinion-2/base.apk"],nativeLibraryDirectories=[/data/app/br.com.pinion-2/lib/arm, /data/app/br.com.pinion-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]] [ERROR] TiApplication: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) [ERROR] TiApplication: at java.lang.ClassLoader.loadClass(ClassLoader.java:511) [ERROR] TiApplication: at java.lang.ClassLoader.loadClass(ClassLoader.java:469) [ERROR] TiApplication: at android.app.ActivityThread.handleReceiver(ActivityThread.java:2719) [ERROR] TiApplication: ... 8 more [ERROR] TiApplication: Suppressed: java.lang.ClassNotFoundException: com.google.android.gcm.GCMBroadcastReceiver [ERROR] TiApplication: at java.lang.Class.classForName(Native Method) [ERROR] TiApplication: at java.lang.BootClassLoader.findClass(ClassLoader.java:781) [ERROR] TiApplication: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) [ERROR] TiApplication: at java.lang.ClassLoader.loadClass(ClassLoader.java:504) [ERROR] TiApplication: ... 10 more [ERROR] TiApplication: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
Can anyone help?
@perdona You are using some module that references an old version of google-play-services library. GCMBroadcastReceiver does not exist in latest versions.
@DimanAM But I think pushwoosh is the one referencing GCMBroadcastReceiver, because app runs fine without the module. The error only occurs when I send a push to the device.
@perdona
Pushwoosh does not reference GCMBroadcastReceiver. And if you do not include Pushwoosh module you are not able to receive push hence reproduce the problem. Try searching your project for GCMBroadcastReceiver
occurrences.
Looks like the 1.0.0 PushWoosh version that I was using references GCMBroadcastReceiver. Thanks @DimanAM, will try to work this around.
I have ti.map 2.3.9 and Pushwoosh 2.0.0 used in Android app. My app using Map. I added Pushwoosh module and this error start appearing
[INFO] : Running dexer: C:\Program Files (x86)\Java\jdk1.7.0_80\bin\java.exe "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=C:\android-sdk\platform-tools" "-jar" "C:\android-sdk\build-tools\23.0.1\lib\dx.jar" "--dex" "--output=C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\build\android\bin\classes.dex" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\build\android\bin\classes" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\lib\titanium-verify.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\com.pushwoosh.module\2.0.0\pushnotifications.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\com.pushwoosh.module\2.0.0\lib\play-services-base-8.4.0.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\com.pushwoosh.module\2.0.0\lib\play-services-basement-8.4.0.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\com.pushwoosh.module\2.0.0\lib\play-services-gcm-8.4.0.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\com.pushwoosh.module\2.0.0\lib\play-services-location-8.4.0.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\com.pushwoosh.module\2.0.0\lib\Pushwoosh.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\de.marcelpociot.autofocus\1.0\autofocus.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\ti.paypal\2.2.3\paypal.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\ti.paypal\2.2.3\lib\PayPal_MPL.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\ti.mely\0.1\timely.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\com.rkam.swiperefreshlayout\0.7\swiperefreshlayout.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\com.gbaldera.tipaypal\1.0\tipaypal.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\com.gbaldera.tipaypal\1.0\lib\PayPalAndroidSDK.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\bencoding.android.tools\0.40\androidtools.jar" "C:\Users\dell\Documents\Appcelerator_Studio_Workspace\AllHands\modules\android\net.iamyellow.tiws\1.0.0\tiws.jar" "C:\ProgramData\Application Data\Titanium\modules\android\ti.map\2.3.9\map.jar" "C:\ProgramData\Application Data\Titanium\modules\android\ti.map\2.3.9\lib\google-play-services-base.jar" "C:\ProgramData\Application Data\Titanium\modules\android\ti.map\2.3.9\lib\google-play-services-map.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\kroll-v8.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-analytics.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\aps-analytics.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-android.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\jaxen-1.1.1.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\ti-commons-codec-1.3.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\kroll-common.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\titanium.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-app.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-ui.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\nineoldandroids-appc-2.4.0.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-filesystem.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-media.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-appcompat.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\android-support-v4.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\android-support-v7-appcompat.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-cardview.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\cardview-v7-23.0.1.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-locale.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-network.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-xml.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-platform.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-database.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-geolocation.jar" "C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.GA\android\modules\titanium-map.jar"
[ERROR] : Failed to run dexer:
[ERROR] :
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/zza;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/zzb;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/zza$7;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/zza$5;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/zzd$zza$zza;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/zzg$zza;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/zza$2;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/zzd;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/zzd$zza;
[ERROR] :
[ERROR] : UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] : java.lang.RuntimeException: Translation has been interrupted
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:608)
[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] : Caused by: java.lang.InterruptedException: Too many errors
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:600)
[ERROR] : ... 4 more
[ERROR] : Picked up _JAVA_OPTIONS: -Xmx512M
Please refer to my comments above and read the link. Essentially dexing will fail if you have identical classes in jars with different names. If you read through the output you posted above you will surely notice duplicate classes. Dexing combines all jars so if you have same class twice---bang, crash....Honestly, Java Android developers all use gradle, proguard and Android studio because this was solved years ago in that camp. For now I really reiterate, use the method I posted above. Sean.
Sean.
Thanks for comment.. well that i tried and upon every next dexer run the new classes error showing.
I simply removed the duplicate class file from .zip but it continue to throw error of new classes and this went on more then 4-5 times. Is there a simplified way to un-jar the files and then do it once and rename to jar and have successful build done...??
Please share insight
wk
Wherever the classes in question, google play ones I assume. Are being used you must use the same names jar with identical content. Also, you need to physically delete the module contents from the app modules folder as republishing a module does not delete old content I noticed. To be safe also delete app and module build folders. Furthermore, I have found issues with building modules with the newest Appcelerator Studio and am using ANT. There is a bug that creates a duplicate JSON file in the jars that causes a dex crash. Please read https://jira.appcelerator.org/browse/TIMOB-23502 and look for my comments. Here is a way to edit jars without any fancy software using a linux or mac, but am sure you can do almost identical on windows with cygwin or swapping a few unix commands for win ones:
(1) Rename the jar file to a zip file. (2) Take out the classes/split up the classes into separate folders as desired (3) Zip the desired class folders. (4) Remove some undesirables and rename zip folder if you did not already, eg. zip -d com.zip __MACOSX/;mv com.zip google-play-services.zip;zip -d google-play-services.zip /.DS_Store (5) Rename to .jar
My problem is: I couldn´t install my app on android device or emulator, heving the following error
On Device:
Appcelerator Command-Line Interface, version 5.5.1
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
2016-10-22T13:29:10.322Z | TRACE | set environment to {"registry":"https://software.appcelerator.com","security":"https://security.appcelerator.com","baseurl":"https://platform.appcelerator.com"}
2016-10-22T13:29:10.326Z | TRACE | checking credentials for existing session
2016-10-22T13:29:11.233Z | TRACE | Attempting to load session info from config file
2016-10-22T13:29:11.241Z | TRACE | check if session is invalidated
2016-10-22T13:29:12.353Z | TRACE | registry result 200 application/json undefined undefined false undefined
2016-10-22T13:29:12.373Z | TRACE | registry returned { expiry: 1477747752210 }
2016-10-22T13:29:12.373Z | TRACE | refresh session expiry to: 1477747752210
2016-10-22T13:29:12.376Z | TRACE | session expiry 1477747752210 false
2016-10-22T13:29:12.378Z | TRACE | Arrow Cloud config file: /Users/nilmarpublio/.acs
2016-10-22T13:29:12.388Z | TRACE | found Arrow Cloud login { mid: 'fdefb89dfc069c4430771b3c9f1027fea1b70c0e',
publishPort: 443,
publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
username: 'nilmarpublio@gmail.com',
cookie: [ 'connect.sid=s%3AFoMGiGxjaVrRbgOSpzoggLDR.RDNHn4dv%2BFzas1TOXxZjscKC96nRjZLLmAlNzsXc964; Path=/; Expires=Tue, 01 Nov 2016 18:48:04 GMT; HttpOnly' ],
defaultEP:
{ publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com
2016-10-22T13:29:12.390Z | TRACE | Arrow Cloud cookie expiry [ 1478026084000 ]
2016-10-22T13:29:12.391Z | TRACE | session already loaded in opts.session
2016-10-22T13:29:12.393Z | TRACE | getCredentials() session:
{
"ipaddress": "192.168.0.101",
"username": "nilmarpublio@gmail.com",
"password": "
Memory = 4294967296 Node.js Node.js Version = 4.6.0 npm Version = 2.15.9 Titanium CLI CLI Version = 5.0.9 Titanium SDK SDK Version = 5.5.1.GA SDK Path = /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA Target Platform = android Command /usr/local/bin/node /Users/nilmarpublio/.appcelerator/install/5.5.1/package/node_modules/titanium/lib/titanium.js build run --platform android --log-level trace --sdk 5.5.1.GA --project-dir /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode --target device --android-sdk /Users/nilmarpublio/Library/android-sdk-macosx --device-id 323007ce34d9109d --debug-host adb:63181 --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 49176 --config-file /var/folders/d3/8fb3lbxj5b15swv4v9nqpfqc0000gn/T/build-1477142954446.json --no-banner --project-dir /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode [INFO] : Found Titanium module id=ti.cloud version=3.2.9 platform=commonjs deploy-type=test path=/Users/nilmarpublio/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.9 [INFO] : Found better matching module id=ti.cloud version=latest platform=commonjs deploy-type=test path=/Users/nilmarpublio/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.11 [INFO] : Deploy type: test [INFO] : Building for target: device [INFO] : Building for device: 323007ce34d9109d [INFO] : Targeting Android SDK API: 23 [INFO] : Building for the following architectures: armeabi, armeabi-v7a, x86 [INFO] : Signing with keystore: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/dev_keystore (tidev) [INFO] : Debugging enabled via debug port: 63181 [INFO] : Profiler disabled [INFO] : Forcing rebuild: target changed since last build [INFO] : Was: emulator [INFO] : Now: device [INFO] : JavaScript files need to be encrypted [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/KS_nav_ui.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/KS_nav_views.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/i18n/en.xml [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/i18n/pt.xml [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/images/arrowDn.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/images/arrowUp.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/images/btnMinus.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/images/btnPlus.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/appicon.png [INFO] : Processing JavaScript files [INFO] : Encrypting JavaScript files: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/titanium_prep.macos "com.npctech.npcpcode" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/assets" "app.js" "commonjs/Lfunction.js" "commonjs/globals.js" "commonjs/validaDb.js" "ti.cloud.js" "_appprops.json" [INFO] : Writing /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/app.json [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-analytics.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-android.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-filesystem.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-app.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-media.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-locale.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-network.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-xml.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-database.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-platform.res.zip [INFO] : No aidl files to compile, continuing [INFO] : Generating i18n files [INFO] : Generating /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/res/values/theme.xml [INFO] : Packaging application: /Users/nilmarpublio/Library/android-sdk-macosx/build-tools/23.0.1/aapt "package" "-f" "-m" "-J" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/gen" "-M" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/AndroidManifest.xml" "-A" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets" "-S" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/res" "-I" "/Users/nilmarpublio/Library/android-sdk-macosx/platforms/android-23/android.jar" "-F" "/Volumes/MeusDocumentos/Appcelerator/DMyWorkspace/NPC-Pcode/build/android/bin/app.ap" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview" "-S" "/var/folders/d3/8fb3lbxj5b15swv4v9nqpfqc0000gn/T/116922-8873-9de6tl/res" "-S" "/var/folders/d3/8fb3lbxj5b15swv4v9nqpfqc0000gn/T/116922-8873-1ygh5nz/res" "-S" "/var/folders/d3/8fb3lbxj5b15swv4v9nqpfqc0000gn/T/116922-8873-zif8bc/res" [INFO] : Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/javac "-J-Xmx1024M" "-encoding" "utf8" "-bootclasspath" "/Users/nilmarpublio/Library/android-sdk-macosx/platforms/android-23/android.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-v8.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-analytics.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/aps-analytics.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-android.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/jaxen-1.1.1.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/ti-commons-codec-1.3.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-common.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/titanium.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-filesystem.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-app.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-ui.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-media.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-appcompat.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v4.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v7-appcompat.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-cardview.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cardview-v7-23.0.1.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-locale.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-network.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-xml.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-database.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-platform.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-verify.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-debug.jar:R.class:AssetCryptImpl.class:NpcPcodeActivity.class:NpcPcodeAppInfo.class:NpcPcodeApplication.class" "-d" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/java-sources.txt" [INFO] : Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Users/nilmarpublio/Library/android-sdk-macosx/platform-tools" "-jar" "/Users/nilmarpublio/Library/android-sdk-macosx/build-tools/23.0.1/lib/dx.jar" "--dex" "--output=/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/classes.dex" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/classes" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-verify.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-v8.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-analytics.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/aps-analytics.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-android.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/jaxen-1.1.1.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/ti-commons-codec-1.3.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-common.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/titanium.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-filesystem.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-app.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-ui.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-media.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-appcompat.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v4.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v7-appcompat.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-cardview.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cardview-v7-23.0.1.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-locale.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-network.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-xml.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-database.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-platform.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-debug.jar" [INFO] : Creating unsigned apk [INFO] : Processing /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/src [INFO] : Writing unsigned apk: /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/app-unsigned-dev-debug.apk [INFO] : Using MD5withRSA signature algorithm [INFO] : Signing apk: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/jarsigner "-sigalg" "MD5withRSA" "-digestalg" "SHA1" "-keystore" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/dev_keystore" "-storepass" "***" "-signedjar" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/NPC-Pcode-dev-debug.apk" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/app-unsigned-dev-debug.apk" "tidev" [INFO] : Aligning zip file: /Users/nilmarpublio/Library/android-sdk-macosx/build-tools/23.0.1/zipalign "-v" "4" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/NPC-Pcode-dev-debug.apk" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/NPC-Pcode-dev-debug.apkz" [INFO] : Writing build manifest: /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/build-manifest.json [INFO] : Making sure the adb server is running [INFO] : Installing apk: /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/NPC-Pcode-dev-debug.apk [INFO] : Installing app on device: GT-I9300 [ERROR] : Failed to install apk on "323007ce34d9109d"
On emulator:
Appcelerator Command-Line Interface, version 5.5.1
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
2016-10-23T10:21:41.183Z | TRACE | set environment to {"registry":"https://software.appcelerator.com","security":"https://security.appcelerator.com","baseurl":"https://platform.appcelerator.com"}
2016-10-23T10:21:41.185Z | TRACE | checking credentials for existing session
2016-10-23T10:21:41.722Z | TRACE | Attempting to load session info from config file
2016-10-23T10:21:41.733Z | TRACE | check if session is invalidated
2016-10-23T10:21:43.032Z | TRACE | registry result 200 application/json undefined undefined false undefined
2016-10-23T10:21:43.051Z | TRACE | registry returned { expiry: 1477822902847 }
2016-10-23T10:21:43.052Z | TRACE | refresh session expiry to: 1477822902847
2016-10-23T10:21:43.068Z | TRACE | session expiry 1477822902847 false
2016-10-23T10:21:43.070Z | TRACE | Arrow Cloud config file: /Users/nilmarpublio/.acs
2016-10-23T10:21:43.077Z | TRACE | found Arrow Cloud login { mid: 'fdefb89dfc069c4430771b3c9f1027fea1b70c0e',
publishPort: 443,
publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
username: 'nilmarpublio@gmail.com',
cookie: [ 'connect.sid=s%3AFoMGiGxjaVrRbgOSpzoggLDR.RDNHn4dv%2BFzas1TOXxZjscKC96nRjZLLmAlNzsXc964; Path=/; Expires=Tue, 01 Nov 2016 18:48:04 GMT; HttpOnly' ],
defaultEP:
{ publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com
2016-10-23T10:21:43.078Z | TRACE | Arrow Cloud cookie expiry [ 1478026084000 ]
2016-10-23T10:21:43.078Z | TRACE | session already loaded in opts.session
2016-10-23T10:21:43.080Z | TRACE | getCredentials() session:
{
"ipaddress": "192.168.0.101",
"username": "nilmarpublio@gmail.com",
"password": "
Memory = 4294967296 Node.js Node.js Version = 4.6.0 npm Version = 2.15.9 Titanium CLI CLI Version = 5.0.9 Titanium SDK SDK Version = 5.5.1.GA SDK Path = /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA Target Platform = android Command /usr/local/bin/node /Users/nilmarpublio/.appcelerator/install/5.5.1/package/node_modules/titanium/lib/titanium.js build run --platform android --log-level trace --sdk 5.5.1.GA --project-dir /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode --target emulator --android-sdk /Users/nilmarpublio/Library/android-sdk-macosx --device-id Samsung Galaxy S3 - 4.1.1 - API 16 - 720x1280 --debug-host /127.0.0.1:50312 --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 49176 --config-file /var/folders/d3/8fb3lbxj5b15swv4v9nqpfqc0000gn/T/build-1477218105066.json --no-banner --project-dir /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode [INFO] : Found Titanium module id=ti.cloud version=3.2.9 platform=commonjs deploy-type=development path=/Users/nilmarpublio/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.9 [INFO] : Found better matching module id=ti.cloud version=latest platform=commonjs deploy-type=development path=/Users/nilmarpublio/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.11 [INFO] : Deploy type: development [INFO] : Building for target: emulator [INFO] : Building for emulator: Samsung Galaxy S3 - 4.1.1 - API 16 - 720x1280 [INFO] : Targeting Android SDK API: 23 [INFO] : Building for the following architectures: armeabi, armeabi-v7a, x86 [INFO] : Signing with keystore: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/dev_keystore (tidev) [INFO] : Debugging enabled via debug port: 50312 [INFO] : Profiler disabled [INFO] : Forcing rebuild: target changed since last build [INFO] : Was: device [INFO] : Now: emulator [INFO] : Launching emulator: Samsung Galaxy S3 - 4.1.1 - API 16 - 720x1280 [INFO] : Running: /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/player --vm-name "Samsung Galaxy S3 - 4.1.1 - API 16 - 720x1280" [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/KS_nav_ui.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/KS_nav_views.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/i18n/en.xml [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/i18n/pt.xml [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/images/arrowDn.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/images/arrowUp.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/images/btnMinus.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/images/btnPlus.png [WARN] : Overwriting file /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/Resources/appicon.png [INFO] : Processing JavaScript files [INFO] : Encrypting JavaScript files: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/titanium_prep.macos "com.npctech.npcpcode" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/assets" "app.js" "commonjs/Lfunction.js" "commonjs/globals.js" "commonjs/validaDb.js" "ti.cloud.js" "_appprops.json" [INFO] : Writing /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets/app.json [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-analytics.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-android.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-filesystem.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-app.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-media.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-locale.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-network.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-xml.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-utils.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-geolocation.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-accelerometer.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-contacts.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-map.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-calendar.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-gesture.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-platform.res.zip [INFO] : Extracting module resources: /Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-database.res.zip [INFO] : No aidl files to compile, continuing [INFO] : Generating i18n files [INFO] : Generating /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/res/values/theme.xml [INFO] : Packaging application: /Users/nilmarpublio/Library/android-sdk-macosx/build-tools/23.0.1/aapt "package" "-f" "-m" "-J" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/gen" "-M" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/AndroidManifest.xml" "-A" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/assets" "-S" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/res" "-I" "/Users/nilmarpublio/Library/android-sdk-macosx/platforms/android-23/android.jar" "-F" "/Volumes/MeusDocumentos/Appcelerator/DMyWorkspace/NPC-Pcode/build/android/bin/app.ap" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview" "-S" "/var/folders/d3/8fb3lbxj5b15swv4v9nqpfqc0000gn/T/116923-48254-s1yhby/res" "-S" "/var/folders/d3/8fb3lbxj5b15swv4v9nqpfqc0000gn/T/116923-48254-msnoun/res" "-S" "/var/folders/d3/8fb3lbxj5b15swv4v9nqpfqc0000gn/T/116923-48254-op25z1/res" [INFO] : Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/javac "-J-Xmx1024M" "-encoding" "utf8" "-bootclasspath" "/Users/nilmarpublio/Library/android-sdk-macosx/platforms/android-23/android.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-v8.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-analytics.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/aps-analytics.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-android.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/jaxen-1.1.1.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/ti-commons-codec-1.3.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-common.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/titanium.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-filesystem.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-app.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-ui.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-media.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-appcompat.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v4.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v7-appcompat.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-cardview.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cardview-v7-23.0.1.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-locale.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-network.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-xml.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-utils.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-geolocation.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-accelerometer.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-contacts.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-map.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-calendar.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-gesture.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-platform.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-database.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-verify.jar:/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-debug.jar:R.class:AssetCryptImpl.class:NpcPcodeActivity.class:NpcPcodeAppInfo.class:NpcPcodeApplication.class" "-d" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/java-sources.txt" [INFO] : Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Users/nilmarpublio/Library/android-sdk-macosx/platform-tools" "-jar" "/Users/nilmarpublio/Library/android-sdk-macosx/build-tools/23.0.1/lib/dx.jar" "--dex" "--output=/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/classes.dex" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/classes" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-verify.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-v8.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-analytics.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/aps-analytics.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-android.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/jaxen-1.1.1.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/ti-commons-codec-1.3.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-common.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/titanium.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-filesystem.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-app.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-ui.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-media.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-appcompat.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v4.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v7-appcompat.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-cardview.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cardview-v7-23.0.1.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-locale.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-network.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-xml.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-utils.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-geolocation.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-accelerometer.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-contacts.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-map.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-calendar.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-gesture.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-platform.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-database.jar" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-debug.jar" [INFO] : Emulator is booted [INFO] : SD card not required, skipping mount check [INFO] : Emulator ready! [INFO] : Creating unsigned apk [INFO] : Processing /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/src [INFO] : Writing unsigned apk: /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/app-unsigned-dev-debug.apk [INFO] : Using MD5withRSA signature algorithm [INFO] : Signing apk: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/jarsigner "-sigalg" "MD5withRSA" "-digestalg" "SHA1" "-keystore" "/Users/nilmarpublio/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/dev_keystore" "-storepass" "***" "-signedjar" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/NPC-Pcode-dev-debug.apk" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/app-unsigned-dev-debug.apk" "tidev" [INFO] : Aligning zip file: /Users/nilmarpublio/Library/android-sdk-macosx/build-tools/23.0.1/zipalign "-v" "4" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/NPC-Pcode-dev-debug.apk" "/Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/NPC-Pcode-dev-debug.apkz" [INFO] : Writing build manifest: /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/build-manifest.json [INFO] : Making sure the adb server is running [INFO] : Installing apk: /Volumes/MeusDocumentos/Appcelerator/D_MyWorkspace/NPC-Pcode/build/android/bin/NPC-Pcode-dev-debug.apk [ERROR] : Failed to install apk on "192.168.56.101:5555" [ERROR] : Error: Unknown option: -d
On iOs emulator it runs OK ! Any suggestion ? I´m spent more than week looking for solution.
From reading quickly through your log file the error is obviously at the end and it seems you are not able to reach your device. Dexing and signing passed so seems a comm problems with your device. Are you sure that your ADB is setup correctly and that you can build to that device? [ERROR] : Failed to install apk on "192.168.56.101:5555" [ERROR] : Error: Unknown option: -d
Is there a less painful and faster way than to remove thousand of duplicates from each JAR? This is really disappointing and time consuming. Latest version conflicts with ti.map probably, and possibly other jars that are on my project.
@perdona Yeah, it involves Appcelerator becoming more like React Native and Nativescript or Android Studio/ditching the Eclipse lifestyle. This has been a non-issue for Android Development since 2013 with Android Studio. I have hopes for Hyperloop but the documentation is lacking and they still have not been clear about dexing issues and conflicting JARS. Code once, please, this is such a time suck, better to try an alternate or go pure native if this keeps up.
@SeanChristopherConway Does appcelerator have a feedback on this? I understand you opened a ticket on JIRA. I was thinking of doing this..
@perdona You mean to improve Hyperloop docs? JAR conflict mitigation in Hyperloop? Gradle integration or all of the above? Yes, more tickets the better, we just need to be concise I guess. One of the main issues is a lack of transparency, consistent documentation and the third party module ecosystem. Hyperloop will not solve this issue. What we need is Appcelerator approved and tested modules like Nativescript does so we have some assurance they work.
@perdona I created one for gradle but may not yet be visible yet. https://jira.appcelerator.org/browse/AC-4600
google-play-services.jar needs to be updated, because it crash with Ti.map module.