Uploaded image for project: 'Appcelerator Modules'
  1. Appcelerator Modules
  2. MOD-2342

dexAngent being set in module causes build to fail

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      We have previously been using a NewRelic provided module for analytics and crash reports from our app. They have been reluctant to update the module to support android since the release of 6.0.0, and we have the need to move forward to a newer version, so we have been attempting to build our own version of the module. We have been able to get most of the way through this process(at least to test if we can in fact get what we need out of it). The problem we are running into is when we define dexAgent in the timodule.xml(also why is this not allowed in the android section and has to be in the parent?) it causes the build process to fail, saying it can not find the file, but the path is correct.

      [ERROR] Error: ENOENT: no such file or directory, open '-javaagent:/correct/path/to/class.rewriter.jar'
      

      I have been digging into the build scripts and it seems to be quotes are causing the issue. Once I change the quotes I am able to get the dex process to run completely, I however don't have the depth needed to go any further

      dexer that breaks

      /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java "-javaagent:/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.movista.newrelic/1.0.0/lib/class.rewriter.jar,-Xmx2048M,-XX:-UseGCOverheadLimit,-Djava.ext.dirs=/Users/mikestancliffe/Library/android/sdk/platform-tools,-jar,/Users/mikestancliffe/Library/android/sdk/build-tools/23.0.1/lib/dx.jar,--dex,--multi-dex,--output=/Users/mikestancliffe/Projects/MVMobile_V2/build/android/bin/dexfiles,/Users/mikestancliffe/Projects/MVMobile_V2/build/android/bin/classes,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/lib/titanium-verify.jar,/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/hyperloop/2.1.1/hyperloop-android.jar,/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/hyperloop/2.1.1/lib/dexmaker-1.4.jar,/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/hyperloop/2.1.1/lib/dexmaker-dx-1.4.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.acktie.mobile.android.barcode/2.2.2/acktiemobileandroidbarcode.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.acktie.mobile.android.barcode/2.2.2/lib/core-3.3.0.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.acktie.mobile.android.barcode/2.2.2/lib/guava-12.0.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.acktie.mobile.android.barcode/2.2.2/lib/zbar.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.movista.newrelic/1.0.0/newrelicandroid.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.movista.newrelic/1.0.0/lib/class.rewriter.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.movista.newrelic/1.0.0/lib/newrelic.android.jar,/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/map.jar,/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/lib/google-play-services-base.jar,/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/lib/google-play-services-map.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/ti.mediapicker/1.1.4/timediapicker.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.skypanther.picatsize/0.2.1/picatsize.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/ti.imagefactory/3.0.0/imagefactory.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/ti.paint/3.0.0/paint.jar,/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/org.iotashan.titouchimageview/1.1.2/titouchimageview.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-v8.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-analytics.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/aps-analytics.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-android.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/jaxen-1.1.1.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/ti-commons-codec-1.3.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-common.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/titanium.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-multidex.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-filesystem.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-app.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-ui.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/nineoldandroids-appc-2.4.0.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-media.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-appcompat.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-animated-vector-drawable.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-annotations.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4-internal_impl.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v7-appcompat.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-vector-drawable.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-cardview.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/cardview-v7-23.4.0.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-locale.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-network.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-xml.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-map.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-calendar.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-geolocation.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-database.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-accelerometer.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-platform.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-gesture.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-contacts.jar,/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-utils.jar"
      

      dexer that works

      /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java -javaagent:/Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.movista.newrelic/1.0.0/lib/class.rewriter.jar -Xmx2048M -XX:-UseGCOverheadLimit -Djava.ext.dirs=/Users/mikestancliffe/Library/android/sdk/platform-tools -jar /Users/mikestancliffe/Library/android/sdk/build-tools/23.0.1/lib/dx.jar --dex --multi-dex --output=/Users/mikestancliffe/Projects/MVMobile_V2/build/android/bin/dexfiles /Users/mikestancliffe/Projects/MVMobile_V2/build/android/bin/classes "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/lib/titanium-verify.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/hyperloop/2.1.1/hyperloop-android.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/hyperloop/2.1.1/lib/dexmaker-1.4.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/hyperloop/2.1.1/lib/dexmaker-dx-1.4.jar" /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.acktie.mobile.android.barcode/2.2.2/acktiemobileandroidbarcode.jar /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.acktie.mobile.android.barcode/2.2.2/lib/core-3.3.0.jar /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.acktie.mobile.android.barcode/2.2.2/lib/guava-12.0.jar /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.acktie.mobile.android.barcode/2.2.2/lib/zbar.jar /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.movista.newrelic/1.0.0/newrelicandroid.jar /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.movista.newrelic/1.0.0/lib/class.rewriter.jar /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.movista.newrelic/1.0.0/lib/newrelic.android.jar "/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/map.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/lib/google-play-services-base.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/lib/google-play-services-map.jar" /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/ti.mediapicker/1.1.4/timediapicker.jar /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/com.skypanther.picatsize/0.2.1/picatsize.jar /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/ti.imagefactory/3.0.0/imagefactory.jar /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/ti.paint/3.0.0/paint.jar /Users/mikestancliffe/Projects/MVMobile_V2/modules/android/org.iotashan.titouchimageview/1.1.2/titouchimageview.jar "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-v8.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-analytics.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/aps-analytics.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-android.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/jaxen-1.1.1.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/ti-commons-codec-1.3.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-common.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/titanium.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-multidex.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-filesystem.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-app.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-ui.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-media.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-appcompat.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-animated-vector-drawable.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-annotations.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4-internal_impl.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v7-appcompat.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-vector-drawable.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-cardview.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/cardview-v7-23.4.0.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-locale.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-network.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-xml.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-platform.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-database.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-gesture.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-contacts.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-geolocation.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-calendar.jar" "/Users/mikestancliffe/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-utils.jar"
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cliff_stander Mike Stancliffe
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code