android - Unfortunately has stopped when using appcompat -


now i'm using android studio , try use v7-appcompat.

i updates dependencies to

dependencies { compile 'com.android.support:support-v4:18.0.+' compile "com.android.support:appcompat-v7:18.0.+" } 

and change activity extents actionbaractivity

public class mainactivity extends actionbaractivity {  @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.activity_main); }   @override public boolean oncreateoptionsmenu(menu menu) {     // inflate menu; adds items action bar if present.     getmenuinflater().inflate(r.menu.main, menu);     return true; }  } 

it has no error when run this. after execute app, face 'unfortunately has stopped' message. don't know what's wrong.

and log-cat.

07-23 22:08:00.001      784-784/com.android.exchange e/strictmode: null     android.app.serviceconnectionleaked: service com.android.exchange.exchangeservice has leaked serviceconnection com.android.emailcommon.service.serviceproxy$proxyconnection@40d3a3a0      bound here     @ android.app.loadedapk$servicedispatcher.<init>(loadedapk.java:969)     @ android.app.loadedapk.getservicedispatcher(loadedapk.java:863)     @ android.app.contextimpl.bindservice(contextimpl.java:1418)     @ android.app.contextimpl.bindservice(contextimpl.java:1407)     @ android.content.contextwrapper.bindservice(contextwrapper.java:473)     @ com.android.emailcommon.service.serviceproxy.settask(serviceproxy.java:157)     @ com.android.emailcommon.service.serviceproxy.settask(serviceproxy.java:145)     @ com.android.emailcommon.service.accountserviceproxy.getdeviceid     (accountserviceproxy.java:116)     @ com.android.exchange.exchangeservice.getdeviceid(exchangeservice.java:1249)     @ com.android.exchange.exchangeservice$7.run(exchangeservice.java:1856)     @ com.android.emailcommon.utility.utility$2.doinbackground(utility.java:551)     @ com.android.emailcommon.utility.utility$2.doinbackground(utility.java:549)     @ android.os.asynctask$2.call(asynctask.java:287)     @ java.util.concurrent.futuretask.run(futuretask.java:234)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1080)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:573)     @ java.lang.thread.run(thread.java:856) 07-23 22:08:00.001      303-868/system_process w/activitymanager: unbind failed: not find  connection android.os.binderproxy@41621520 


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -