I have one application in android when i run that application it shows that exception
09-13 16:38:25.049: WARN/dalvikvm(269): VFY: arbitrarily rejecting large method (regs=132 count=21332)
09-13 16:38:25.049: WARN/dalvikvm(269): VFY: rejected Lcom/ExtraCharge/Calc;.onClick (Landroid/view/View;)V
09-13 16:38:25.059: WARN/dalvikvm(269): Verifier rejected class Lcom/ExtraCharge/Calc;
09-13 16:38:25.059: WARN/dalvikvm(269): Class init failed in newInstance call (Lcom/ExtraCharge/Calc;)
09-13 16:38:34.883: WARN/ActivityManager(64): Launch timeout has expired, giving up wake lock!
09-13 16:38:34.999: WARN/ActivityManager(64): Activity idle timeout for HistoryRecord{43f8da58 com.ExtraCharge/.Calc}
Do you have any solution for that problem?
This may be of use:
http://www.mail-archive.com/android-developers#googlegroups.com/msg86311.html
Related
I have problem with my first application in Android Studio-Cordova.
I used for my application html,css, jquery and sql.
The application is correct, because I'm attending an on-line course with related code.
It starts, but the message of creating db isn't appeared.
the log of Android Studio is this:
Client not ready yet..Waiting for process to come online
Connected to process 2679 on device Nexus_5_API_19_armeabi_v7a [emulator-5554]
I/InstantRun: Instant Run Runtime started. Android package is com.videocorsi.test, real application class is null.
W/InstantRun: No instant run dex files added to classpath
I/CordovaLog: Changing log level to DEBUG(3)
I/CordovaActivity: Apache Cordova native platform version 6.0.0 is starting
D/CordovaActivity: CordovaActivity.onCreate()
I/dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method org.apache.cordova.CordovaInterfaceImpl.hasPermission
W/dalvikvm: VFY: unable to resolve virtual method 2: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0023
I/dalvikvm: Could not find method android.app.Activity.requestPermissions, referenced from method org.apache.cordova.CordovaInterfaceImpl.requestPermissions
W/dalvikvm: VFY: unable to resolve virtual method 136: Landroid/app/Activity;.requestPermissions ([Ljava/lang/String;I)V
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0029
V/WebViewChromium: Binding Chromium to the background looper Looper (main, tid 1) {9dd95220}
I/chromium: [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
I/BrowserProcessMain: Initializing chromium process, renderers=0
W/chromium: [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
D/dalvikvm: GC_FOR_ALLOC freed 142K, 12% free 3463K/3892K, paused 86ms, total 88ms
I/dalvikvm-heap: Grow heap (frag case) to 6.078MB for 2536936-byte allocation
D/dalvikvm: GC_FOR_ALLOC freed 0K, 7% free 5941K/6372K, paused 58ms, total 58ms
I/dalvikvm: Could not find method android.webkit.CookieManager.setAcceptThirdPartyCookies, referenced from method org.apache.cordova.engine.SystemCookieManager.<init>
W/dalvikvm: VFY: unable to resolve virtual method 953: Landroid/webkit/CookieManager;.setAcceptThirdPartyCookies (Landroid/webkit/WebView;Z)V
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0046
I/dalvikvm: Could not find method android.webkit.CookieManager.flush, referenced from method org.apache.cordova.engine.SystemCookieManager.flush
W/dalvikvm: VFY: unable to resolve virtual method 947: Landroid/webkit/CookieManager;.flush ()V
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0019
W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/webkit/ClientCertRequest;)
W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/webkit/ClientCertRequest;)
I/dalvikvm: Could not find method android.webkit.WebViewClient.onReceivedClientCertRequest, referenced from method org.apache.cordova.engine.SystemWebViewClient.onReceivedClientCertRequest
W/dalvikvm: VFY: unable to resolve virtual method 1147: Landroid/webkit/WebViewClient;.onReceivedClientCertRequest (Landroid/webkit/WebView;Landroid/webkit/ClientCertRequest;)V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0031
W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/webkit/PermissionRequest;)
I/dalvikvm: Could not find method android.webkit.PermissionRequest.getResources, referenced from method org.apache.cordova.engine.SystemWebChromeClient.onPermissionRequest
W/dalvikvm: VFY: unable to resolve virtual method 964: Landroid/webkit/PermissionRequest;.getResources ()[Ljava/lang/String;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0023
I/dalvikvm: Could not find method android.webkit.WebChromeClient$FileChooserParams.createIntent, referenced from method org.apache.cordova.engine.SystemWebChromeClient.onShowFileChooser
W/dalvikvm: VFY: unable to resolve virtual method 969: Landroid/webkit/WebChromeClient$FileChooserParams;.createIntent ()Landroid/content/Intent;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0021
D/SystemWebViewEngine: CordovaWebView is running on device made by: unknown
D/PluginManager: init()
D/CordovaWebViewImpl: >>> loadUrl(file:///android_asset/www/index.html)
D/CordovaActivity: Started the activity.
D/CordovaActivity: Resumed the activity.
D/OpenGLRenderer: Enabling debug mode 0
I/Choreographer: Skipped 81 frames! The application may be doing too much work on its main thread.
W/AwContents: nativeOnDraw failed; clearing to background color.
W/AwContents: nativeOnDraw failed; clearing to background color.
W/AwContents: nativeOnDraw failed; clearing to background color.
W/AwContents: nativeOnDraw failed; clearing to background color.
D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html)
D/JsMessageQueue: Set native->JS mode to EvalBridgeMode
I/chromium: [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
I/chromium: [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
I/Choreographer: Skipped 74 frames! The application may be doing too much work on its main thread.
D/SystemWebChromeClient: file:///android_asset/www/cordova_plugins.js: Line 7 : Uncaught SyntaxError: Unexpected string
I/chromium: [INFO:CONSOLE(7)] "Uncaught SyntaxError: Unexpected string", source: file:///android_asset/www/cordova_plugins.js (7)
D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)
D/SystemWebChromeClient: file:///android_asset/www/js/index.js: Line 39 : Uncaught ReferenceError: listeningElement is not defined
I/chromium: [INFO:CONSOLE(39)] "Uncaught ReferenceError: listeningElement is not defined", source: file:///android_asset/www/js/index.js (39)
D/SystemWebChromeClient: file:///android_asset/www/index.html: Line 237 : Uncaught TypeError: Cannot call method 'transaction' of undefined
I/chromium: [INFO:CONSOLE(237)] "Uncaught TypeError: Cannot call method 'transaction' of undefined", source: file:///android_asset/www/index.html (237)
What Can I do?
the problem was in this file index.js . I had commented this:
receivedEvent: function(id) { var parentElement =document.getElementById(id);
// var listeningElement = parentElement.querySelector('.listening');
//var receivedElement = parentElement.querySelector('.received');
// listeningElement.setAttribute('style', 'display:none;'); //receivedElement.setAttribute('style', 'display:block;');
console.log('Received Event: ' + id); }
Then, I had move the tag script with my js/jquery code at the end of the tag
when I click on back button my application crashes
This happen in all my pages I have 3 activity and other are fragments in my application I am not getting who is creating this problem
this the full logcat I am not getting any error in my connection or any where but when I click device back button app crashes
09-13 15:00:32.366 3843-3843/com.example.user.soulsystem I/art: Not late-enabling -Xcheck:jni (already on)
09-13 15:00:32.492 3843-3843/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:00:47.049 3843-3843/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:00:47.069 3843-3843/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
09-13 15:00:47.078 3843-3843/com.example.user.soulsystem W/InstanceID/Rpc: Found 10008
09-13 15:00:47.081 3843-3843/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
09-13 15:00:47.107 3843-3843/com.example.user.soulsystem I/FA: App measurement is starting up, version: 9452
09-13 15:00:47.108 3843-3843/com.example.user.soulsystem I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-13 15:00:47.151 3843-3843/com.example.user.soulsystem I/FirebaseInitProvider: FirebaseApp initialization successful
09-13 15:00:47.232 3843-3843/com.example.user.soulsystem W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-13 15:00:47.984 3843-3849/com.example.user.soulsystem W/art: Suspending all threads took: 30.062ms
09-13 15:00:47.987 3843-3843/com.example.user.soulsystem W/art: Verification of android.view.View android.support.v7.app.AppCompatViewInflater.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean, boolean, boolean, boolean) took 495.933ms
09-13 15:00:47.988 3843-3853/com.example.user.soulsystem I/art: Background partial concurrent mark sweep GC freed 1579(368KB) AllocSpace objects, 4(80KB) LOS objects, 39% free, 2MB/3MB, paused 440us total 484.103ms
09-13 15:00:48.118 3843-4245/com.example.user.soulsystem D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true [
09-13 15:00:48.142 3843: 3843 D/ HostConnection::get() New Host Connection established 0xab1d6140, tid 3843
09-13 15:00:48.188 3843: 4245 D/ HostConnection::get() New Host Connection established 0xaec47600, tid 4245
09-13 15:00:48.191 3843-4245/com.example.user.soulsystem I/OpenGLRenderer: Initialized EGL, version 1.4
09-13 15:00:53.820 3843-3849/com.example.user.soulsystem W/art: Suspending all threads took: 87.047ms
09-13 15:00:58.115 3843-4232/com.example.user.soulsystem I/FA: Tag Manager is not found and thus will not be used
09-13 15:02:23.664 3843-5617/com.example.user.soulsystem D/Volley: [221] BasicNetwork.logSlowRequests: HTTP response for request=<[ ] http://192.168.1.10/soulsystem/loginall.php 0x676929bb NORMAL 1> [lifetime=3118], [size=189], [rc=200], [retryCount=1]
09-13 15:02:23.827 3843-3843/com.example.user.soulsystem D/ClientRegistration: Login Response: {"error":false,"error_msg":"Finding Consultancy","uid":"57d245518c9643.05931211","user":{"name":"Ram Waghmare","email":"ram#gmail.com","created_at":"2016-09-09 10:44:57","updated_at":null}}
09-13 15:02:23.832 3843-4245/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa31a2540
09-13 15:02:23.840 3843-3843/com.example.user.soulsystem D/Soulsystem: IN try catch
09-13 15:02:24.073 3843-3843/com.example.user.soulsystem D/SessionManager: User login session modified!
09-13 15:02:24.625 3843-3843/com.example.user.soulsystem D/SQLiteHandler: Database tables created
09-13 15:02:24.994 3843-3843/com.example.user.soulsystem D/SQLiteHandler: New user inserted into sqlite: 1
09-13 15:02:25.028 3843-3843/com.example.user.soulsystem D/Volley: [1] Request.finish: 4483 ms: [ ] http://192.168.1.10/soulsystem/loginall.php 0x676929bb NORMAL 1
09-13 15:02:25.028 3843-3843/com.example.user.soulsystem I/Choreographer: Skipped 71 frames! The application may be doing too much work on its main thread.
09-13 15:02:25.071 3843-3843/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:02:25.215 3843-3843/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:02:25.215 3843-3843/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:02:25.215 3843-3843/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:02:25.268 3843-3843/com.example.user.soulsystem W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
09-13 15:02:25.489 3843-4245/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa31a2460
09-13 15:03:18.027 3843-3849/com.example.user.soulsystem W/art: Suspending all threads took: 6.244ms
09-13 15:03:34.556 3843-3849/com.example.user.soulsystem W/art: Suspending all threads took: 7.122ms
09-13 15:05:58.974 3843-3843/com.example.user.soulsystem D/NavigationMenu: In profile Image view
[ 09-13 15:06:13.139 1604: 1882 D/ ]
HostConnection::get() New Host Connection established 0x9ad14230, tid 1882
09-13 15:06:13.360 3843-3843/com.example.user.soulsystem D/FirebaseApp: Notifying background state change listeners.
09-13 15:06:13.366 3843-4245/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa31a2770
09-13 15:13:27.679 15191-15191/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:13:27.716 15191-15191/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
09-13 15:13:27.733 15191-15191/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
09-13 15:13:27.766 15191-15191/com.example.user.soulsystem I/FA: App measurement is starting up, version: 9452
09-13 15:13:27.766 15191-15191/com.example.user.soulsystem I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-13 15:13:27.795 15191-15191/com.example.user.soulsystem I/FirebaseInitProvider: FirebaseApp initialization successful
09-13 15:13:27.857 15191-15191/com.example.user.soulsystem W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-13 15:13:27.937 15191-15191/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:13:28.061 15191-15191/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:13:28.061 15191-15191/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:13:28.061 15191-15191/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:13:28.065 15191-15191/com.example.user.soulsystem W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
09-13 15:13:28.071 15191-15273/com.example.user.soulsystem D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 09-13 15:13:28.075 15191:15191 D/ ]
HostConnection::get() New Host Connection established 0xaaace1a0, tid 15191
[ 09-13 15:13:28.107 15191:15273 D/ ]
HostConnection::get() New Host Connection established 0xaaace5c0, tid 15273
09-13 15:13:28.111 15191-15273/com.example.user.soulsystem I/OpenGLRenderer: Initialized EGL, version 1.4
09-13 15:13:31.233 15191-15191/com.example.user.soulsystem D/FirebaseApp: Notifying background state change listeners.
09-13 15:13:31.243 15191-15273/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab1f0b70
09-13 15:13:32.265 15191-15270/com.example.user.soulsystem I/FA: Tag Manager is not found and thus will not be used
09-13 15:13:34.089 15191-15191/com.example.user.soulsystem D/FirebaseApp: Notifying background state change listeners.
09-13 15:13:34.188 15191-15191/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:13:34.212 15191-15191/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:13:34.212 15191-15191/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:13:34.212 15191-15191/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:13:34.213 15191-15191/com.example.user.soulsystem W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
09-13 15:13:38.875 15191-15191/com.example.user.soulsystem D/FirebaseApp: Notifying background state change listeners.
09-13 15:13:38.879 15191-15273/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab1f0be0
09-13 15:13:41.251 15191-15191/com.example.user.soulsystem D/FirebaseApp: Notifying background state change listeners.
09-13 15:13:41.327 15191-15191/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:13:41.393 15191-15191/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:13:41.393 15191-15191/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:13:41.393 15191-15191/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:13:41.394 15191-15191/com.example.user.soulsystem W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
09-13 15:18:45.102 15191-15197/com.example.user.soulsystem W/art: Suspending all threads took: 7.875ms
09-13 15:19:29.694 15191-15197/com.example.user.soulsystem W/art: Suspending all threads took: 6.903ms
09-13 15:19:37.196 15191-15197/com.example.user.soulsystem W/art: Suspending all threads took: 6.748ms
09-13 15:20:12.361 21039-21039/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:20:15.446 21039-21039/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:20:15.463 21039-21039/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
09-13 15:20:15.477 21039-21039/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
09-13 15:20:15.517 21039-21039/com.example.user.soulsystem I/FA: App measurement is starting up, version: 9452
09-13 15:20:15.517 21039-21039/com.example.user.soulsystem I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-13 15:20:15.541 21039-21039/com.example.user.soulsystem I/FirebaseInitProvider: FirebaseApp initialization successful
09-13 15:20:15.606 21039-21039/com.example.user.soulsystem W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-13 15:20:15.777 21039-21049/com.example.user.soulsystem I/art: Background partial concurrent mark sweep GC freed 6738(1363KB) AllocSpace objects, 49(820KB) LOS objects, 41% free, 1462KB/2MB, paused 301us total 152.112ms
09-13 15:20:15.826 21039-21039/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:20:15.955 21039-21039/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:20:15.955 21039-21039/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:20:15.955 21039-21039/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:20:15.966 21039-21122/com.example.user.soulsystem D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 09-13 15:20:15.972 21039:21039 D/ ]
HostConnection::get() New Host Connection established 0xaaacde40, tid 21039
[ 09-13 15:20:16.013 21039:21122 D/ ]
HostConnection::get() New Host Connection established 0xaec47600, tid 21122
09-13 15:20:16.016 21039-21122/com.example.user.soulsystem I/OpenGLRenderer: Initialized EGL, version 1.4
09-13 15:20:17.984 21039-21045/com.example.user.soulsystem W/art: Suspending all threads took: 7.043ms
09-13 15:20:42.993 21039-21039/com.example.user.soulsystem I/ListPopupWindow: Could not find method setEpicenterBounds(Rect) on PopupWindow. Oh well.
09-13 15:20:43.035 21039-21039/com.example.user.soulsystem W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
09-13 15:20:43.941 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2904bc0
09-13 15:20:43.944 21039-21122/com.example.user.soulsystem D/OpenGLRenderer: endAllStagingAnimators on 0xa261c600 (MenuPopupWindow$MenuDropDownListView) with handle 0xaec52fa0
09-13 15:20:47.274 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2904bc0
09-13 15:20:47.278 21039-21122/com.example.user.soulsystem D/OpenGLRenderer: endAllStagingAnimators on 0xa14a2d80 (MenuPopupWindow$MenuDropDownListView) with handle 0xab33f630
09-13 15:21:05.931 21039-21112/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/data/com.example.user.soulsystem/lib
09-13 15:21:05.992 21039-21039/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:21:05.999 21039-21039/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:21:05.999 21039-21039/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:21:05.999 21039-21039/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:21:06.009 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2904b50
09-13 15:21:06.150 21039-21122/com.example.user.soulsystem V/RenderScript: 0xa1e12000 Launching thread(s), CPUs 2
09-13 15:21:07.974 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2904ed0
09-13 15:21:10.712 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2904f40
09-13 15:21:17.190 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa29035e0
09-13 15:21:27.843 21039-21122/com.example.user.soulsystem E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa2903570
09-13 15:23:27.349 21039-21045/com.example.user.soulsystem W/art: Suspending all threads took: 11.127ms
09-13 15:25:31.502 25691-25691/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:25:35.414 25691-25691/com.example.user.soulsystem W/System: ClassLoader referenced unknown path: /data/app/com.example.user.soulsystem-1/lib/x86
09-13 15:25:35.430 25691-25691/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
09-13 15:25:35.463 25691-25691/com.example.user.soulsystem D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
09-13 15:25:35.488 25691-25691/com.example.user.soulsystem I/FA: App measurement is starting up, version: 9452
09-13 15:25:35.488 25691-25691/com.example.user.soulsystem I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-13 15:25:35.513 25691-25691/com.example.user.soulsystem I/FirebaseInitProvider: FirebaseApp initialization successful
09-13 15:25:35.605 25691-25691/com.example.user.soulsystem W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-13 15:25:35.694 25691-25691/com.example.user.soulsystem I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
09-13 15:25:35.825 25691-25691/com.example.user.soulsystem D/SQLiteHandler: Fetching user from Sqlite: {email=ram#gmail.com, name=Ram Waghmare, created_at=2016-09-09 10:44:57, uid=57d245518c9643.05931211}
09-13 15:25:35.825 25691-25691/com.example.user.soulsystem D/Soulsystem: Ram Waghmare
09-13 15:25:35.825 25691-25691/com.example.user.soulsystem D/Soulsystem: ram#gmail.com
09-13 15:25:35.834 25691-25786/com.example.user.soulsystem D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 09-13 15:25:35.840 25691:25691 D/ ]
HostConnection::get() New Host Connection established 0xb2f28600, tid 25691
[ 09-13 15:25:35.874 25691:25786 D/ ]
HostConnection::get() New Host Connection established 0xaec47600, tid 25786
09-13 15:25:35.877 25691-25786/com.example.user.soulsystem I/OpenGLRenderer: Initialized EGL, version 1.4
09-13 15:26:48.624 25691-25697/com.example.user.soulsystem W/art: Suspending all threads took: 7.614ms
Did you call actionbar.setDisplayHomeAsUpEnabled(true) in your code?
Please try this
#Override
public void onBackPressed() {
super.onBackPressed();
finish();
}
there is another good reference is here
I am tring to integrate flurry test ads but the method setEnableTestAds throws a compilation error-- "the methods is undefined for FlurryAdBanner"
i comment this part and try to fetch and display ads but i do not see any ads in the emulator.
I am following this link.
My code-
private RelativeLayout mBanner;
private FlurryAdBanner mFlurryAdBanner = null;
private String mAdSpaceName = "BANNER_ADSPACE";
private String adspace = "BANNER_BOTTOM";
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_base);
FlurryAgent.init(this, Constants.FLURRY_KEY);
}
#Override
protected void onStart() {
super.onStart();
FlurryAgent.onStartSession(this, Constants.FLURRY_KEY);
//Flurry Ads
mBanner = (RelativeLayout)findViewById(R.id.flurry_banner);
mFlurryAdBanner = new FlurryAdBanner(this, mBanner, mAdSpaceName);
//FlurryAgent.logEvent("Pic taken");
// fetch and display ad for this ad space as soon as it is ready.
//mFlurryAdBanner.fetchAd();
mFlurryAdBanner.fetchAndDisplayAd();
// mFlurryAdBanner.setEnableTestAds(true);
}
My console messsages---
12-23 11:54:16.034: E/FlurryAgent(2069): There is a problem with the Google Play Services library, which is required for Android Advertising ID support. The Google Play Services library should be integrated in any app shipping in the Play Store that uses analytics or advertising.
12-23 11:54:16.454: D/dalvikvm(2069): GC_FOR_ALLOC freed 252K, 10% free 2913K/3224K, paused 40ms, total 43ms
12-23 11:54:16.734: W/FlurryAgent(2069): Flurry session created for context:XXX.activity.BaseActivity#b3ff2710
12-23 11:54:16.874: I/dalvikvm(2069): Failed resolving Lcom/flurry/sdk/bp; interface 1225 'Lcom/facebook/ads/AdListener;'
12-23 11:54:16.874: W/dalvikvm(2069): Link of class 'Lcom/flurry/sdk/bp;' failed
12-23 11:54:16.884: E/dalvikvm(2069): Could not find class 'com.flurry.sdk.bp', referenced from method com.flurry.sdk.bq.a
12-23 11:54:16.884: W/dalvikvm(2069): VFY: unable to resolve new-instance 1366 (Lcom/flurry/sdk/bp;) in Lcom/flurry/sdk/bq;
12-23 11:54:16.884: D/dalvikvm(2069): VFY: replacing opcode 0x22 at 0x000a
12-23 11:54:16.884: I/dalvikvm(2069): Failed resolving Lcom/flurry/sdk/br; interface 1230 'Lcom/facebook/ads/InterstitialAdListener;'
12-23 11:54:16.884: W/dalvikvm(2069): Link of class 'Lcom/flurry/sdk/br;' failed
12-23 11:54:16.884: E/dalvikvm(2069): Could not find class 'com.flurry.sdk.br', referenced from method com.flurry.sdk.bq.a
12-23 11:54:16.884: W/dalvikvm(2069): VFY: unable to resolve new-instance 1368 (Lcom/flurry/sdk/br;) in Lcom/flurry/sdk/bq;
12-23 11:54:16.884: D/dalvikvm(2069): VFY: replacing opcode 0x22 at 0x0008
12-23 11:54:16.894: I/dalvikvm(2069): Failed resolving Lcom/flurry/sdk/bp; interface 1225 'Lcom/facebook/ads/AdListener;'
12-23 11:54:16.894: W/dalvikvm(2069): Link of class 'Lcom/flurry/sdk/bp;' failed
12-23 11:54:16.894: D/dalvikvm(2069): DexOpt: unable to opt direct call 0x28c0 at 0x0c in Lcom/flurry/sdk/bq;.a
12-23 11:54:16.944: I/dalvikvm(2069): Failed resolving Lcom/flurry/sdk/br; interface 1230 'Lcom/facebook/ads/InterstitialAdListener;'
12-23 11:54:16.994: W/dalvikvm(2069): Link of class 'Lcom/flurry/sdk/br;' failed
12-23 11:54:16.994: D/dalvikvm(2069): DexOpt: unable to opt direct call 0x28d6 at 0x0a in Lcom/flurry/sdk/bq;.a
12-23 11:54:17.024: V/WebViewChromium(2069): Binding Chromium to the main looper Looper (main, tid 1) {b3fb94a8}
12-23 11:54:17.064: I/chromium(2069): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
12-23 11:54:17.104: I/BrowserProcessMain(2069): Initializing chromium process, renderers=0
12-23 11:54:17.394: E/chromium(2069): [ERROR:gl_surface_egl.cc(153)] No suitable EGL configs found.
12-23 11:54:17.394: E/chromium(2069): [ERROR:gl_surface_egl.cc(620)] GLSurfaceEGL::InitializeOneOff failed.
12-23 11:54:17.394: E/chromium(2069): [ERROR:gl_surface_egl.cc(153)] No suitable EGL configs found.
12-23 11:54:17.404: E/chromium(2069): [ERROR:gl_surface_egl.cc(620)] GLSurfaceEGL::InitializeOneOff failed.
12-23 11:54:17.404: E/chromium(2069): [ERROR:gpu_info_collector.cc(86)] gfx::GLSurface::InitializeOneOff() failed
12-23 11:54:17.474: W/FlurryAgent(2069): Flurry session started for context:XXX.activity.BaseActivity#b3ff2710
12-23 11:54:17.484: W/chromium(2069): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
12-23 11:54:38.524: W/FlurryAgent(2069): **Analytics report sent.**
12-23 11:54:40.764: E/FlurryAgent(2069): Ad server responded with the following error(s):
12-23 11:54:40.764: E/FlurryAgent(2069): **Unknown Api Key**
Unfortunately, Ad Test Mode is currently having issues and only works with Gemini Video ads at this time. At this point we do not believe the issue is with your integration. The error just means that the ad is unfilled, and we expect the fill rate to improve going forward.
Not sure, but haven't improved since this mail for me.
The log is very clear: you have not provided the API key corresponding to your app. You can found it on dev.flurry.com
I've created the sample app given in the latest version (current master) of Apache Cordova Facebook Plugin several times:
https://github.com/phonegap/phonegap-facebook-plugin
Currently, I'm working on Android only.
The first time I created this sample app (about two weeks ago) everything worked fine. I successfully logged in with my facebook account, posted a status to my wall and logged out (all the other actions worked fine as well).
But since than I've created this sample app several more times (in the exact same way), and it has never worked again (the last time I tried was today). In the new apps (with the very same code as the first app, which still works), I press "LOGIN WITH FACEBOOK", and my app crashes immediately. Sometimes the app doesn't crash immediately, and I can get the message "Argument 'session' cannot be null". Then I press "LOGIN WITH FACEBOOK" again, and the app crashes. Sometimes I can get this message several times before the app eventually crashes.
If I press "LOGOUT WITH FACEBOOK", I get the message: "No valid session found, must call init and login before logout".
I also don't think that the problem is that I have a wrong hash key or something like that, because I've been careful with the settings of the facebook app every time.
I also believe that I've installed the plugin correctly each time, because I've always done it the same way I did it the first time, which worked fine.
So how is it that in my latest attempts the session variable is NULL??
Why did it work only in the first time??
I'm very frustrated..
Edit:
Here is the relevant segment of the LogCat log:
D/ConnectPlugin( 7064): login FB
W/dalvikvm( 7064): VFY: unable to resolve static field 2130 (com_facebook_internet_permission_error_title) in Lcom/facebook/android/R$string;
D/dalvikvm( 7064): VFY: replacing opcode 0x60 at 0x0010
I/dalvikvm( 7064): DexOpt: unable to optimize static field ref 0x0851 at 0x18 in Lcom/facebook/AuthorizationClient;.checkInternetPermission
W/dalvikvm( 7064): VFY: unable to resolve static field 2120 (com_facebook_login_activity_layout) in Lcom/facebook/android/R$layout;
D/dalvikvm( 7064): VFY: replacing opcode 0x60 at 0x0003
W/dalvikvm( 7064): VFY: unable to resolve static field 2103 (com_facebook_login_activity_progress_bar) in Lcom/facebook/android/R$id;
D/dalvikvm( 7064): VFY: replacing opcode 0x60 at 0x0008
I/ActivityManager( 2112): START {intent.toShortString} from pid 7064
I/power ( 2112): *** acquire_dvfs_lock : lockType : 1 freq : 1000000
D/PowerManagerService( 2112): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1000000 uid : 1000 pid : 2112 tag : ActivityManager
W/ActivityManager( 2112): mDVFSLock.acquire()
D/dalvikvm( 7064): GC_CONCURRENT freed 455K, 6% free 12931K/13639K, paused 4ms+5ms
W/PluginManager( 7064): THREAD WARNING: exec() call to FacebookConnectPlugin.login blocked the main thread for 207ms. Plugin should use CordovaInterface.getThreadPool().
D/CordovaActivity( 7064): Paused the application!
D/CordovaWebView( 7064): Handle the pause
D/FirewallPolicy( 2112): getURLFilterEnabled(true)
D/FirewallPolicy( 2112): isUrlBlocked - Policy disabled
D/webkit ( 7064): Firewall not null
D/FirewallPolicy( 2112): getURLFilterEnabled(true)
D/FirewallPolicy( 2112): isUrlBlocked - Policy disabled
I/ClipboardServiceEx( 2112): mCBPickerDialog enter case. MSG_DISMISS_DIALOG
D/webkit ( 7064): euler: isUrlBlocked = false
D/FirewallPolicy( 2112): getURLFilterEnabled(true)
D/FirewallPolicy( 2112): isUrlBlocked - Policy disabled
D/ActivityManager( 2112): Trying to launch applicationName
D/KeyguardViewMediator( 2112): setHidden false
I/ClipboardServiceEx( 2112): mCBPickerDialog enter case. MSG_DISMISS_DIALOG
D/AndroidRuntime( 7064): Shutting down VM
W/dalvikvm( 7064): threadid=1: thread exiting with uncaught exception (group=0x40c6c1f8)
E/AndroidRuntime( 7064): FATAL EXCEPTION: main
E/AndroidRuntime( 7064): java.lang.NoClassDefFoundError: com.facebook.android.R$layout
E/AndroidRuntime( 7064): at com.facebook.LoginActivity.onCreate(LoginActivity.java:57)
E/AndroidRuntime( 7064): at android.app.Activity.performCreate(Activity.java:4562)
E/AndroidRuntime( 7064): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1053)
E/AndroidRuntime( 7064): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1934)
E/AndroidRuntime( 7064): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1995)
E/AndroidRuntime( 7064): at android.app.ActivityThread.access$600(ActivityThread.java:128)
E/AndroidRuntime( 7064): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1161)
E/AndroidRuntime( 7064): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 7064): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 7064): at android.app.ActivityThread.main(ActivityThread.java:4514)
E/AndroidRuntime( 7064): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 7064): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 7064): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
E/AndroidRuntime( 7064): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
E/AndroidRuntime( 7064): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 2112): Force finishing activity com.yomama.test/com.facebook.LoginActivity
W/ActivityManager( 2112): Force finishing activity com.yomama.test/.Test
Another strange thing that happened to me yesterday was that I recompiled and re-installed (on my phone) the first working app, and suddenly it didn't work either (I got the same message after pressing "LOGIN WITH FACEBOOK", and then the app crashed). Then I recompiled and re-installed the app again, and it was working fine again. Weird.
Try the following steps (from this GitHub issue; had worked for me):
+### Android Setup without Eclipse (just CLI)
+Follow the steps above:
cordova create myApp
cd myApp/
cordova platform add android
cordova -d plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="123456789" --variable APP_NAME="myApplication"
// add FacebookLib
echo "android.library.reference.2=com.phonegap.plugins.facebookconnect/FacebookLib" >> platforms/android/project.properties
cp platforms/android/local.properties platforms/android/com.phonegap.plugins.facebookconnect/FacebookLib
android update project -p platforms/android/
cd platforms/android/
ant clean
cd com.phonegap.plugins.facebookconnect/FacebookLib
ant clean
open -e AndroidManifest.xml
// change your minSdkVersion and your targetSdkVersion to your environment settings.
ant release
cd ../../../..
cordova build android
With this steps you can add the Plugin without using Eclipse
I'm running a program in Eclipse that involves doing a bit of math and database inputting. At one point it seems to be too much because Eclipse gives me a VerifyError. When I delete a little bit it runs fine, doesn't matter what I delete so it's not a specific part causing the error but the length of it all, it seems. Here's the error message:
10-27 17:04:03.855: W/dalvikvm(12618): VFY: warning: method is huge (regs=643 insnsSize=7090)
10-27 17:04:03.855: W/dalvikvm(12618): VFY: rejected Lcom/example/simpledatabasetutorial/DatabaseManageActivity;.onClick (Landroid/view/View;)V
10-27 17:04:04.114: W/dalvikvm(12618): VFY: register2 v12-13 values 0,0
10-27 17:04:04.114: W/dalvikvm(12618): VFY: rejecting opcode 0xab at 0x10f2
10-27 17:04:04.114: W/dalvikvm(12618): VFY: rejected Lcom/example/simpledatabasetutorial/DatabaseManageActivity;.onClick (Landroid/view/View;)V
10-27 17:04:04.114: W/dalvikvm(12618): Verifier rejected class Lcom/example/simpledatabasetutorial/DatabaseManageActivity;
10-27 17:04:04.114: W/dalvikvm(12618): Class init failed in newInstance call (Lcom/example/simpledatabasetutorial/DatabaseManageActivity;)
10-27 17:04:04.114: D/AndroidRuntime(12618): Shutting down VM
10-27 17:04:04.114: W/dalvikvm(12618): threadid=1: thread exiting with uncaught exception (group=0x40015560)
10-27 17:04:04.145: E/AndroidRuntime(12618): FATAL EXCEPTION: main
10-27 17:04:04.145: E/AndroidRuntime(12618): java.lang.VerifyError: com.example.simpledatabasetutorial.DatabaseManageActivity
Any ideas of a quick solution? Maybe this is far from enough info, if that's the case just let me know and I'll include what ever is relevant.
The problem isn't actually that your method is too large. As of gingerbread, excessively-large methods no longer cause the method to be rejected. (The first "rejected" message just appears because it's using the LOG_VFY_METH macro to report the method name.)
The real problem is the second complaint, register2 v12-13 values 0,0 ... rejecting opcode 0xab. 0xab is an "add-double" instruction, which takes a 64-bit argument, which means the types on the two 32-bit Dalvik registers should be "double low" and "double high". The verifier found that they're both type zero, which is "unknown".
So either there's a bug in the Dalvik verifier or there's a bug in the generated code (possibly originating in the "dx" tool). You should file a report on http://b.android.com/.