简体   繁体   中英

Android: App crashes at startup - attach of thread 'Binder Thread #3' failed

I copied an existing app that worked and stripped out all the stuff I didn't need to create a minimal version of some feature. The app compiles but crashes when it runs. I tried using LogCat but all I get is:

attach of thread 'Binder Thread #3' failed

Not very useful. I had this problem in the past when I copied a project and stripped out stuff but was able to figure out the problem. But that was long ago and can't remember what the problem was. Checked my manifest but couldn't see anything. Any clues? Thanks a lot!

FOLLOW UP: Turns out that the name attribute in the manifest causes the problem:

<application
    android:name=".MyApp"
    android:icon="@drawable/ic_launcher_icon"
    android:label="@string/app_name"
    android:debuggable="false">

Removing it fixes the problem. Don't know why this should be a problem.

Did you try to

  • clean project ( menu Project -> Clean ) and
  • fix android properties (Right click on project name in sidebar left -> Android Tools -> Fix Project Properties ) ?

Sometimes it fixes everything!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM