[MOD-2282] Include the ti.geofence module 1.1.5 and run on an android device or simulator and the app fails to run
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Geofence |
Labels | android |
Reporter | Calvin Cropper |
Assignee | Ashraf Abu |
Created | 2016-08-09T14:36:00.000+0000 |
Updated | 2016-09-22T20:29:10.000+0000 |
Description
Create a new standard mobile app project and include the latetest ti.geofence module, ti.cloud and ti.cloudpush modules. Set a reference to the ti.geofence module in the app var Geofence = require("ti.geofence"); and run on android device or simulator. The app fails to run. The app runs fine on iOS device/simulator.
[INFO] : dalvikvm: Could not find method ti.geofence.GeofenceRemover., referenced from method ti.geofence.GeofenceModule.
[WARN] : dalvikvm: VFY: unable to resolve direct method 27765: Lti/geofence/GeofenceRemover;. (Landroid/content/Context;)V
[WARN] : dalvikvm: Invalid indirect reference 0xa5aab650 in decodeIndirectRef
[INFO] : dalvikvm: "KrollRuntimeThread" prio=5 tid=11 RUNNABLE
[INFO] : dalvikvm: | group="main" sCount=0 dsCount=0 obj=0xa503c528 self=0xb832dce8
[INFO] : dalvikvm: | sysTid=2007 nice=0 sched=0/0 cgrp=apps handle=-1204625064
[INFO] : dalvikvm: | state=R schedstat=( 146485703 20840100 207 ) utm=10 stm=4 core=0
[INFO] : dalvikvm: at org.appcelerator.kroll.runtime.v8.ReferenceTable.createReference(ReferenceTable.java:-1)
[INFO] : dalvikvm: at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
[INFO] : dalvikvm: at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177)
[INFO] : dalvikvm: at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:319)
[INFO] : dalvikvm: at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203)
[INFO] : dalvikvm: at android.os.Handler.dispatchMessage(Handler.java:98)
[INFO] : dalvikvm: at android.os.Looper.loop(Looper.java:136)
[INFO] : dalvikvm: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:118)
[INFO] : dalvikvm:
[ERROR] : dalvikvm: VM aborting
[INFO] : libc: Fatal signal 6 (SIGABRT) at 0x000007c7 (code=-6), thread 2007 (KrollRuntimeThr)
Hi, Thanks for reaching us. When building an application that includes two or more modules that contains the same library, in particular, the google-play-services.jar, the JAR files may conflict indicating that each module is using a different version of the library. To resolve this issue, you can either delete one of the JAR files from one of the modules or copy the JAR file from one module's lib folder to the other's to make both versions the same. This solution only works on a per-application basis and is not a global solution. Regards, Aminul
I've removed google-play-services.jar from other modules and tried replacing them all with the same version and I still get an error that looks like its coming from the ti.geofence module. [INFO] : dalvikvm: Could not find method ti.geofence.GeofenceRemover.
Hi, Could you please test ti.geofence module 1.1.5 separately? Create a new test project and include ti.geofence module only. Let me know how it's goes. Regards, Aminul
After creating a new project and adding only the ti.geofence module I get the following: [ERROR] : Failed to package application: [ERROR] : [ERROR] : /Documents/Appcelerator_Studio_Workspace/Geofence Test/build/android/AndroidManifest.xml:16: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
Hi, Could you please download a fresh ti.geofence module 1.1.5 from the following link and try it again? https://platform.appcelerator.com/#/download/modules It's seems from your error log you changed your google_play_services_version. Thanks
I downloaded a new version of the module, created new project only included the ti.geofence module and got the same error. [INFO] : dalvikvm: Could not find method ti.geofence.GeofenceRemover.
Any updates on this?