{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/787","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/787/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/787/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/787/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/787","id":146378428,"number":787,"title":"App crashes on startup - InstanceID problem","user":{"login":"HenryYulaw","id":11923239,"avatar_url":"https://avatars.githubusercontent.com/u/11923239?v=3","gravatar_id":"","url":"https://api.github.com/users/HenryYulaw","html_url":"https://github.com/HenryYulaw","followers_url":"https://api.github.com/users/HenryYulaw/followers","following_url":"https://api.github.com/users/HenryYulaw/following{/other_user}","gists_url":"https://api.github.com/users/HenryYulaw/gists{/gist_id}","starred_url":"https://api.github.com/users/HenryYulaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenryYulaw/subscriptions","organizations_url":"https://api.github.com/users/HenryYulaw/orgs","repos_url":"https://api.github.com/users/HenryYulaw/repos","events_url":"https://api.github.com/users/HenryYulaw/events{/privacy}","received_events_url":"https://api.github.com/users/HenryYulaw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/android","name":"android","color":"BFD4F2"},{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-06T17:18:29Z","updated_at":"2016-04-07T09:08:42Z","closed_at":null,"body":"App crashes on startup when I try to run it on a device. Logs below.\r\n\r\nAppreciate the help.\r\n\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\nAndroid 5.1.1\r\n#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)\r\nTesting on LTE Blade S6\r\n#### Cordova CLI version and cordova platform version\r\n\r\n    cordova --version: 6.0.0\r\n    cordova platform version android: 5.1.1\r\n\r\n#### Plugin version\r\n\r\n    1.6.1\r\n\r\n#### Logs taken while reproducing problem\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): FATAL EXCEPTION: pool-1-thread-2\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): Process: com.abletranslations.portable23, PID: 30792\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/iid/InstanceID;\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \tat com.adobe.phonegap.push.PushPlugin$1.run(PushPlugin.java:73)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \tat java.lang.Thread.run(Thread.java:818)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): Caused by: java.lang.ClassNotFoundException: Didn't find class \"com.google.android.gms.iid.InstanceID\" on path: DexPathList[[zip file \"/data/app/com.abletranslations.portable23-1/base.apk\"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \tat dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \tat java.lang.ClassLoader.loadClass(ClassLoader.java:511)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \tat java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \t... 4 more\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \tSuppressed: java.lang.ClassNotFoundException: com.google.android.gms.iid.InstanceID\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \t\tat java.lang.Class.classForName(Native Method)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \t\tat java.lang.BootClassLoader.findClass(ClassLoader.java:781)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \t\tat java.lang.BootClassLoader.loadClass(ClassLoader.java:841)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \t\tat java.lang.ClassLoader.loadClass(ClassLoader.java:504)\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \t\t... 5 more\r\n04-06 18:05:12.613: E/AndroidRuntime(30792): \tCaused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/206774168","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/787#issuecomment-206774168","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/787","id":206774168,"user":{"login":"HenryYulaw","id":11923239,"avatar_url":"https://avatars.githubusercontent.com/u/11923239?v=3","gravatar_id":"","url":"https://api.github.com/users/HenryYulaw","html_url":"https://github.com/HenryYulaw","followers_url":"https://api.github.com/users/HenryYulaw/followers","following_url":"https://api.github.com/users/HenryYulaw/following{/other_user}","gists_url":"https://api.github.com/users/HenryYulaw/gists{/gist_id}","starred_url":"https://api.github.com/users/HenryYulaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenryYulaw/subscriptions","organizations_url":"https://api.github.com/users/HenryYulaw/orgs","repos_url":"https://api.github.com/users/HenryYulaw/repos","events_url":"https://api.github.com/users/HenryYulaw/events{/privacy}","received_events_url":"https://api.github.com/users/HenryYulaw/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T09:08:42Z","updated_at":"2016-04-07T09:08:42Z","body":"I can confirm that moving to Android Studio solved the problem. The app now runs as intended.\r\nThank you for the help."}}