I Try require this
var measurement = require('alloy/measurement')
and open windows with this code
$.container.setBorderRadius((OS_ANDROID ? measurement.dpToPX($.container.width) : $.container.width) / 2);
and happen this error
[DEBUG] Module: Loading module: alloy/measurement -> Resources/alloy/measurement.js
[DEBUG] AndroidRuntime: Shutting down VM
[WARN] dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41a8bba8)
[ERROR] TiApplication: (main) [99,34734] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to resume activity {ws.xxx.zzz/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy; Titanium 3.2.2,2014/03/05 12:22,96e9a07
My environment
Titanium SDK 3.2.2.GA
Android 4.4.4 with Nexus 4
Titanium Client 3.2.3 and Alloy 1.3.1
OSX 10.9.4
Related
I start my Meteor App with "meteor run android". I get some Errors:
I20171121-07:41:24.201(1)? 11-21 01:41:00.483 4067 4172 E chromium: [ERROR:gl_surface_egl.cc(289)] eglChooseConfig failed with error EGL_SUCCESS
I20171121-07:41:24.207(1)? 11-21 01:41:00.917 4067 4127 E chromium: [ERROR:service_manager.cc(156)] Connection InterfaceProviderSpec prevented service: content_renderer from binding interface:
blink::mojom::BudgetService exposed by: content_browser
-
I20171121-07:41:24.208(1)? 11-21 01:41:01.255 4097 4131 E chromium: [ERROR:BudgetService.cpp(167)] Unable to connect to the Mojo BudgetService.
I20171121-07:41:57.587(1)? 11-21 01:41:40.944 4067 4067 I MeteorWebApp: Serving asset bundle with version: 5c0acfb7c964b67f3c1ec29335c3fb0e27b7d59d
I20171121-07:41:57.878(1)? 11-21 01:41:41.234 4067 4127 E chromium: [ERROR:service_manager.cc(156)] Connection InterfaceProviderSpec prevented service: content_renderer from binding interface:
blink::mojom::BudgetService exposed by: content_browser
Has anybody an idea how to solve these problems??
Its on an HTC Aria, running 2.2 (API 8)
https://en.wikipedia.org/wiki/HTC_Aria
The aria is an armv6 device that supports opengles 2
If you open up the latest Android Studio (im working on windows 7), then import the HelloGL2 sample, then simply try to run it on the above device, it will fail as soon as it tries to make a call into the native library.
Here is the log:
01-06 11:14:08.467 12771-12813/com.android.gl2jni D/dalvikvm: Trying to load lib /data/data/com.android.gl2jni/lib/libgl2jni.so 0x44c165d0
01-06 11:14:08.467 12771-12813/com.android.gl2jni I/dalvikvm: Unable to dlopen(/data/data/com.android.gl2jni/lib/libgl2jni.so): Cannot load library: link_image[1995]: failed to link libgl2jni.so
01-06 11:14:08.477 12771-12813/com.android.gl2jni W/dalvikvm: Exception Ljava/lang/UnsatisfiedLinkError; thrown during Lcom/android/gl2jni/GL2JNILib;.<clinit>
01-06 11:14:08.497 12771-12813/com.android.gl2jni W/dalvikvm: threadid=8: thread exiting with uncaught exception (group=0x40028a00)
01-06 11:14:08.517 95-121/? I/ActivityManager: Displayed activity com.android.gl2jni/.GL2JNIActivity: 9823 ms (total 2027818 ms)
01-06 11:14:08.567 12771-12813/com.android.gl2jni E/AndroidRuntime: FATAL EXCEPTION: GLThread 9
java.lang.ExceptionInInitializerError
at com.android.gl2jni.GL2JNIView$Renderer.onSurfaceChanged(GL2JNIView.java:332)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1327)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
Caused by: java.lang.UnsatisfiedLinkError: Library gl2jni not found
at java.lang.Runtime.loadLibrary(Runtime.java:461)
at java.lang.System.loadLibrary(System.java:557)
at com.android.gl2jni.GL2JNILib.<clinit>(GL2JNILib.java:24)
at com.android.gl2jni.GL2JNIView$Renderer.onSurfaceChanged(GL2JNIView.java:332)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1327)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
01-06 11:14:08.607 95-164/? W/ActivityManager: Force finishing activity com.android.gl2jni/.GL2JNIActivity
This sample works on the 3 other devices i've tried (Galaxy s5, Galaxy J1, Nexus s)
The line: 'Unable to dlopen(/data/data/com.android.gl2jni/lib/libgl2jni.so): Cannot load library: link_image[1995]: failed to link libgl2jni.so' is probably key. I tried loading the library explicitly using system.loadlibrary, but the same problem happens on that call.
I think it might be something to do with the processor being armv6?
The sample is configured to do 'armeabi' though.
I have signed up cloud.google.com and make App. I generated server key (Could Dashboard -> Select Project -> APIs & Auth -> Credentials -> Server key)
I use application ID (Google API Project Number) as sender ID and server API Key as GCM API Key.
And I run in Android Emulator.
My environment:
OS X 10.9
Titanium SDK 3.2
Android SDK 4.4
ti.cloudpush 3.2
Edited - log added
Titanium Command-Line Interface, CLI version 3.2.0-cr3, Titanium SDK version 3.2.0.v20131210191510
Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[INFO] : Found Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=development path=/Users/...//Titanium/modules/commonjs/ti.cloud/3.2.0
[INFO] : Found Titanium module id=ti.cloudpush version=latest platform=android deploy-type=development path=/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0
[INFO] : Found Titanium plugin id=ti.alloy version=1.0
[INFO] : Deploy type: development
[INFO] : Building for target: emulator
[INFO] : Building for emulator: titanium_2_WVGA854
[INFO] : Targeting Android SDK: 19
[INFO] : Building for the following architectures: armeabi, armeabi-v7a, x86
[INFO] : Signing with keystore: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/dev_keystore (tidev)
[INFO] : Debugging disabled
[INFO] : Profiler disabled
[INFO] : Forcing rebuild: /.../push/build/android/build-manifest.json does not exist
[INFO] : Found Alloy app in /.../push/app
[INFO] : Executing Alloy compile: /usr/local/bin/node /usr/local/bin/alloy compile /.../push/app --config platform=android,version=0,simtype=none,devicefamily=none,deploytype=development
[INFO] : ----- MVC GENERATION -----
[INFO] : [global style] loading from cache...
[INFO] : [index.xml] view processing...
[INFO] : style: "index.tss"
[INFO] : view: "index.xml"
[INFO] : controller: "index.js"
[INFO] : created: "Resources/android/alloy/controllers/index.js"
[INFO] : created: "Resources/android/alloy/styles/index.js"
[INFO] :
[INFO] : [app.js] using cached app.js...
[INFO] :
[INFO] : ----- OPTIMIZING -----
[INFO] : - android/alloy.js
[INFO] : - android/alloy/sync/localStorage.js
[INFO] : - android/alloy/sync/properties.js
[INFO] : - android/alloy/sync/sql.js
[INFO] :
[INFO] : Alloy compiled in 0.40172s
[INFO] : Alloy compiler completed successfully
[INFO] : Launching emulator: titanium_2_WVGA854
[INFO] : Running: /Volumes/data/android/tools/emulator "-avd" "titanium_2_WVGA854" "-port" "5554" "-no-boot-anim" "-partition-size" "128" "-sdcard" "/Users/krish/.titanium/titanium_2_WVGA854.sdcard"
[INFO] : Processing JavaScript files
[INFO] : Writing /.../push/build/android/bin/assets/app.json
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-network.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-xml.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-analytics.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-android.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-app.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-ui.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-filesystem.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-media.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-locale.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-utils.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-geolocation.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-accelerometer.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-contacts.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-map.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-gesture.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-calendar.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-platform.res.zip
[INFO] : Extracting module resources: /Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-database.res.zip
[INFO] : No aidl files to compile, continuing
[INFO] : Generating i18n files
[INFO] : Generating /.../push/build/android/res/values/theme.xml
[INFO] : Packaging application: /Volumes/data/android/build-tools/android-4.4/aapt "package" "-f" "-m" "-J" "/.../push/build/android/gen" "-M" "/.../push/build/android/AndroidManifest.xml" "-A" "/.../push/build/android/bin/assets" "-S" "/.../push/build/android/res" "-I" "/Volumes/data/android/platforms/android-19/android.jar" "-I" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/titanium.jar" "-F" "/.../push/build/android/bin/app.ap_"
[INFO] : Building Java source files: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javac "-J-Xmx256M" "-encoding" "utf8" "-bootclasspath" "/Volumes/data/android/platforms/android-19/android.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/kroll-v8.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-network.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/thirdparty.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-xml.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/jaxen-1.1.1.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-analytics.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-android.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/ti-commons-codec-1.3.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/kroll-common.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/titanium.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-app.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-ui.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/android-support-v4.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/nineoldandroids-appc-2.4.0.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-filesystem.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-media.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-locale.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-utils.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-geolocation.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-accelerometer.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-contacts.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-map.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-gesture.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-calendar.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-platform.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-database.jar:/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0/cloudpush.jar:/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0/lib/bcprov-jdk15-146-shrink.jar:/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0/lib/google-play-services.jar:/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0/lib/signpost-commonshttp4-1.2.1.1.jar:/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0/lib/signpost-core-1.2.1.1.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/kroll-apt.jar:/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/lib/titanium-verify.jar:ApplicationStylesheet.class:Manifest.class:PushActivity.class:PushAppInfo.class:PushApplication.class:R.class" "-d" "/.../push/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "#/.../push/build/android/java-sources.txt"
[INFO] : Running dexer: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Volumes/data/android/platform-tools" "-jar" "/Volumes/data/android/build-tools/android-4.4/lib/dx.jar" "--dex" "--output=/.../push/build/android/bin/classes.dex" "/.../push/build/android/bin/classes" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/lib/titanium-verify.jar" "/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0/cloudpush.jar" "/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0/lib/bcprov-jdk15-146-shrink.jar" "/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0/lib/google-play-services.jar" "/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0/lib/signpost-commonshttp4-1.2.1.1.jar" "/Users/...//Titanium/modules/android/ti.cloudpush/3.2.0/lib/signpost-core-1.2.1.1.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/kroll-v8.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-network.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/thirdparty.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-xml.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/jaxen-1.1.1.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-analytics.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-android.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/ti-commons-codec-1.3.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/kroll-common.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/titanium.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-app.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-ui.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/android-support-v4.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/nineoldandroids-appc-2.4.0.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-filesystem.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-media.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-locale.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-utils.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-geolocation.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-accelerometer.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-contacts.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-map.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-gesture.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-calendar.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-platform.jar" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/modules/titanium-database.jar"
[INFO] : Creating unsigned apk
[INFO] : Processing /.../push/build/android/src
[INFO] : Writing unsigned apk: /.../push/build/android/bin/app-unsigned.apk
[INFO] : Determining signature algorithm: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/keytool "-J-Duser.language=en" "-v" "-list" "-keystore" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/dev_keystore" "**********" "tirocks" "-alias" "tidev"
[INFO] : Using MD5withRSA signature algorithm
[INFO] : Signing apk: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/jarsigner "-sigalg" "MD5withRSA" "-digestalg" "SHA1" "-keystore" "/Users/...//Titanium/mobilesdk/osx/3.2.0.v20131210191510/android/dev_keystore" "-storepass" "*******" "-signedjar" "/.../push/build/android/bin/push.apk" "/.../push/build/android/bin/app-unsigned.apk" "tidev"
[INFO] : Device is booted
[INFO] : SD card not required, skipping mount check
[INFO] : Emulator ready!
[INFO] : Aligning zip file: /Volumes/data/android/tools/zipalign "-v" "4" "/.../push/build/android/bin/push.apk" "/.../push/build/android/bin/push.apkz"
[INFO] : Writing build manifest: /.../push/build/android/build-manifest.json
[INFO] : Making sure the adb server is running
[INFO] : Removing deploy.json from SD card
[INFO] : Installing apk: /.../push/build/android/bin/push.apk
[INFO] : App successfully installed
[INFO] : Starting app: com.gsmusic.com/.PushActivity
[INFO] : Application pid: 452
[INFO] : Project built successfully in 1m 22s 520ms
-- Start application log -----------------------------------------------------
[INFO] : dalvikvm: Could not find method android.app.Application.onTrimMemory, referenced from method org.appcelerator.titanium.TiApplication.onTrimMemory
[WARN] : dalvikvm: VFY: unable to resolve virtual method 132: Landroid/app/Application;.onTrimMemory (I)V
[INFO] : TiApplication: (main) [0,0] checkpoint, app created.
[INFO] : TiApplication: (main) [347,347] Titanium 3.2.0 (2013/12/10 19:16 1de32ee)
[INFO] : TiDbHelper: (main) [193,540] No value in database for platform key: 'unique_machine_id' returning supplied default ''
[INFO] : TiDbHelper: (main) [35,575] No value in database for platform key: 'hardware_machine_id' returning supplied default ''
[INFO] : TiApplication: (main) [279,854] Titanium Javascript runtime: v8
[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
[INFO] : TiAnalyticsDb: (main) [76,76] Upgrading Database from 1 to 4
[INFO] : dalvikvm: Could not find method android.app.Activity.invalidateOptionsMenu, referenced from method org.appcelerator.titanium.proxy.ActivityProxy.handleInvalidateOptionsMenu
[WARN] : dalvikvm: VFY: unable to resolve virtual method 56: Landroid/app/Activity;.invalidateOptionsMenu ()V
[WARN] : V8Object: Runtime disposed, cannot set property 'userAgent'
[ERROR] : dalvikvm: Could not find class 'android.app.Notification$Builder', referenced from method ti.cloudpush.CloudpushModuleGeneric.showTrayNotification
[WARN] : dalvikvm: VFY: unable to resolve new-instance 34 (Landroid/app/Notification$Builder;) in Lti/cloudpush/CloudpushModuleGeneric;
[WARN] : CloudpushModule: (KrollRuntimeThread) [3065,3141] Setting 'enabled' is not required for GCM; it is sufficient to only 'retrieveDeviceToken'.
[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.gsmusic.com.PushActivity#40590838
[INFO] : dalvikvm: Could not find method android.view.View.setTranslationX, referenced from method org.appcelerator.titanium.view.TiUIView.resetTranslationX
[WARN] : dalvikvm: VFY: unable to resolve virtual method 3726: Landroid/view/View;.setTranslationX (F)V
[INFO] : dalvikvm: Could not find method android.view.View.setTranslationY, referenced from method org.appcelerator.titanium.view.TiUIView.resetTranslationY
[WARN] : dalvikvm: VFY: unable to resolve virtual method 3727: Landroid/view/View;.setTranslationY (F)V
[INFO] : dalvikvm: Could not find method android.view.View.setAlpha, referenced from method org.appcelerator.titanium.view.TiUIView.setAlpha
[WARN] : dalvikvm: VFY: unable to resolve virtual method 3694: Landroid/view/View;.setAlpha (F)V
[WARN] : TiVerify: (Timer-0) [5000,5000] Verifying module licenses...
[WARN] : dalvikvm: VFY: unable to resolve static field 980 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 980 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 975 (common_google_play_services_install_title) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 971 (common_google_play_services_enable_title) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 985 (common_google_play_services_update_title) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 982 (common_google_play_services_unsupported_title) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 979 (common_google_play_services_network_error_title) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 980 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 980 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 977 (common_google_play_services_invalid_account_title) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 980 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 972 (common_google_play_services_install_button) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 969 (common_google_play_services_enable_button) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 983 (common_google_play_services_update_button) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 980 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 974 (common_google_play_services_install_text_tablet) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 973 (common_google_play_services_install_text_phone) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 970 (common_google_play_services_enable_text) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 984 (common_google_play_services_update_text) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 981 (common_google_play_services_unsupported_text) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 978 (common_google_play_services_network_error_text) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve static field 976 (common_google_play_services_invalid_account_text) in Lcom/google/android/gms/R$string;
[WARN] : dalvikvm: VFY: unable to resolve instance field 35
[WARN] : dalvikvm: VFY: unable to resolve static field 980 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
[ERROR] : GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
[WARN] : GooglePlayServicesUtil: Google Play services is missing.
[INFO] : ALERT: (KrollRuntimeThread) [960,5960] Failed to register for push! Google Play Services is not ready. Error:SERVICE_MISSING
[INFO] : TiVerify: (Timer-0) [584,6544] Succesfully verified module licenses
I use application ID as sender ID
I'm not sure what you mean by application ID, but you should use the Google API Project Number as sender ID.
I tried setting up my project using instructions on below post by Diego:
http://dtmilano.blogspot.com/2011/11/obtaining-code-coverage-of-running.html
On trying to launch the app using adb shell am instrument -e coverage true -w ...
I get below error:
E/Trace ( 3989): error opening trace file: No such file or directory (2)
W/Trace ( 3989): Unexpected value from nativeGetEnabledTags: 0
W/Trace ( 3989): Unexpected value from nativeGetEnabledTags: 0
W/Trace ( 3989): Unexpected value from nativeGetEnabledTags: 0
I/dalvikvm( 3989): ****Could not find method com.vladium.emma.rt.RT.r, referenced from method com.adobe.dps.coverage.EmmaInstrumentation.$VRi
W/dalvikvm( 3989): VFY: unable to resolve static method 27137: Lcom/vladium/emma/rt/RT;.r ([[ZLjava/lang/String;J)V
D/dalvikvm( 3989): VFY: replacing opcode 0x71 at 0x004b
W/dalvikvm( 3989): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/adobe/dps/coverage/EmmaInstrumentation;
W/dalvikvm( 3989): Class init failed in newInstance call (Lcom/adobe/dps/coverage/EmmaInstrumentation;)
D/AndroidRuntime( 3989): Shutting down VM
W/dalvikvm( 3989): threadid=1: thread exiting with uncaught exception (group=0xb4cc7908)
E/AndroidRuntime( 3989): FATAL EXCEPTION: main
E/AndroidRuntime( 3989): java.lang.ExceptionInInitializerError
I included emma.jar in the build path and deployed it inside the app and got below error:
E/Trace ( 4061): error opening trace file: No such file or directory (2)
W/Trace ( 4061): Unexpected value from nativeGetEnabledTags: 0
W/Trace ( 4061): Unexpected value from nativeGetEnabledTags: 0
W/Trace ( 4061): Unexpected value from nativeGetEnabledTags: 0
W/dalvikvm( 4061): ****Exception Ljava/lang/Error; thrown while initializing Lcom/vladium/emma/rt/RT;
W/dalvikvm( 4061): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/package/coverage/EmmaInstrumentation;
W/dalvikvm( 4061): Class init failed in newInstance call (Lcom/package/coverage/EmmaInstrumentation;)
D/AndroidRuntime( 4061): Shutting down VM
W/dalvikvm( 4061): threadid=1: thread exiting with uncaught exception (group=0xb4cc7908)
E/AndroidRuntime( 4061): FATAL EXCEPTION: main
E/AndroidRuntime( 4061): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 4061): at java.lang.Class.newInstanceImpl(Native Method)
Any idea how I could resolve this?
Thanks!
It seems you should execute this command:
"ant instrument"
because you have such an error info: ****Could not find method com.vladium.emma.rt.RT.r
Below link helped me to resolve the issue. I am using so added the below dependencies:
Added the below dependency in the build.gradle file present in the app folder.
compile group: 'org.jruby', name: 'jruby', version: '1.4.1'
And the below dependency in the build.gradle file present at the project folder.
maven {
url "https://repo1.maven.org/maven2/"
}
Choose your dependency from the below link:
http://snacktrace.com/artifacts/org.jruby/jruby/1.4.1/com.vladium.emma.rt.RT
I'm newbie.
Trying to run HelloWorld example comming with cocos2dx (cocos2d-2.0-rc2-x-2.0.1),
Android SDK 20.0.1, Android NDK r8, on 64bit Linux machine (openSuse 12.1).
When running emulation from Eclipse got following exception:
W/dalvikvm( 644): threadid=13: thread exiting with uncaught exception (group=0x40a13300)
E/AndroidRuntime( 644): FATAL EXCEPTION: GLThread 77
E/AndroidRuntime( 644): java.lang.IllegalArgumentException: No configs match configSpec
E/AndroidRuntime( 644): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:863)
E/AndroidRuntime( 644): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
E/AndroidRuntime( 644): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
E/AndroidRuntime( 644): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
D/gralloc_goldfish( 644): Emulator without GPU emulation detected.
Any ideas?
for 2.0, you need to run on a device because the Emulator does not support OpenGL 2.0
for those are interested in how to get OpenGL 2.0 runs on Emulator, here is the link http://www.cocos2d-x.org/boards/6/topics/12563