Skip to content

Instantly share code, notes, and snippets.

@jfarkhat
Created October 18, 2016 20:45
Show Gist options
  • Save jfarkhat/3fcdce92eba2a918ef6163c89a3f9913 to your computer and use it in GitHub Desktop.
Save jfarkhat/3fcdce92eba2a918ef6163c89a3f9913 to your computer and use it in GitHub Desktop.
10-18 15:44:24.993 32056-413/com.example.debi.pubsub0 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: com.example.debi.pubsub0, PID: 32056
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/api/client/googleapis/json/GoogleJsonResponseException;
at com.google.cloud.pubsub.PubSubOptions$DefaultPubSubRpcFactory.create(PubSubOptions.java:62)
at com.google.cloud.pubsub.PubSubOptions$DefaultPubSubRpcFactory.create(PubSubOptions.java:54)
at com.google.cloud.ServiceOptions.rpc(ServiceOptions.java:399)
at com.google.cloud.pubsub.PubSubImpl.<init>(PubSubImpl.java:115)
at com.google.cloud.pubsub.PubSubOptions$DefaultPubSubFactory.create(PubSubOptions.java:43)
at com.google.cloud.pubsub.PubSubOptions$DefaultPubSubFactory.create(PubSubOptions.java:38)
at com.google.cloud.ServiceOptions.service(ServiceOptions.java:391)
at com.example.debi.pubsub0.MainActivity$PubSubThread.doInBackground(MainActivity.java:35)
at com.example.debi.pubsub0.MainActivity$PubSubThread.doInBackground(MainActivity.java:29)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
at java.lang.Thread.run(Thread.java:818) 
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.api.client.googleapis.json.GoogleJsonResponseException" on path: DexPathList[[dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-support-annotations-23.4.0_83df98ca7e6243483ae2f9dd2c9e743f93dd45d6-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-protobuf-lite-3.0.1_0a49e23204cfe9faaebba766220490252901c756-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-protobuf-javanano-3.0.0-alpha-5_1793c7359f38eaa2066f295f481359bd93f00f88-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-protobuf-java-util-3.0.0_286e1d408083f2753f6c295d7d8e98af157e2014-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-protobuf-java-3.0.0_2d9d1cd9f42907195ad4221814c8bc9159bbda0d-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-okio-1.6.0_26df68bf1847c37120ee716e3bf798e678d38845-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-okhttp-2.5.0_3acda5262df95f0a5e16db7c6468ae9a84dba0b7-classes.dex", dex file "/data/data/com.example.debi.pubsub0/files/instant-run/dex/slice-netty-transport-4.1.3.Final_1cf15f1ac873d01fbdd0d282f13294e044ec5c12-classes.dex", dex file "/data/data/com.examp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment