java - Android: App engine NoClassDefFoundError -


i working on app uses app engine backend. following code crashes with

java.lang.noclassdeffounderror: com.petfinder.backend.model.userapi.userapi$builder 

i stumped. have tried updating jars. still no luck.

i can running on nexus 6 without error when run on other devices moto e error crashes app.

testing on 4.4.4 device.

userapi.builder builder = new userapi.builder(androidhttp.newcompatibletransport(),             new androidjsonfactory(), null)             // options running against local devappserver             // - 10.0.2.2 localhost's ip address in android emulator             // - turn off compression when running against local devappserver             //                        .setrooturl("http://192.168.16.254:8080/_ah/api")             .setrooturl(url)             .setgoogleclientrequestinitializer(new googleclientrequestinitializer() {                 @override                 public void initialize(abstractgoogleclientrequest<?> abstractgoogleclientrequest) throws ioexception {                     abstractgoogleclientrequest.setdisablegzipcontent(true);                 }             }); 

exception:

fatal exception: asynctask #2         process: com.petfinder.petfinder, pid: 17401  java.lang.runtimeexception: error occured while executing doinbackground()      @ android.os.asynctask$3.done(asynctask.java:300)      @ java.util.concurrent.futuretask.finishcompletion(futuretask.java:355)      @ java.util.concurrent.futuretask.setexception(futuretask.java:222)      @ java.util.concurrent.futuretask.run(futuretask.java:242)      @ android.os.asynctask$serialexecutor$1.run(asynctask.java:231)      @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1112)      @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:587)      @ java.lang.thread.run(thread.java:848)   caused by: java.lang.noclassdeffounderror: com.petfinder.backend.model.userapi.userapi$builder      @ com.petfinder.petfinder.util.petutil.getuserapi(petutil.java:52)      @ com.petfinder.petfinder.ui.loginactivity$userlogintask.doinbackground(loginactivity.java:330)      @ com.petfinder.petfinder.ui.loginactivity$userlogintask.doinbackground(loginactivity.java:317)      @ android.os.asynctask$2.call(asynctask.java:288)      @ java.util.concurrent.futuretask.run(futuretask.java:237)      @ android.os.asynctask$serialexecutor$1.run(asynctask.java:231)       @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1112)       @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:587)       @ java.lang.thread.run(thread.java:848)  01-16 09:06:53.481 17401-17401/com.petfinder.petfinder d/activitythread: act-am_on_pause_called activityrecord{41dfff48 token=android.os.binderproxy@ 

found problem out of date google play services. fixed checking google play services , updating out of date device.

public void checkplayservices() {     int state = googleplayservicesutil.isgoogleplayservicesavailable(this);      if (state == connectionresult.success) {         toast.maketext(this, "success", toast.length_long).show();     } else {         dialog dialog = googleplayservicesutil.geterrordialog(state, this, -1);         dialog.show();     } } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -