Powered by Blogger.

The Programming Blog

Many times Android Studio just wouldn't work. You will see some weird errors while building and stackoverflow will also fail you on this.

Well, this usually always solve my buggy Android Studio -

1. Restart Android Studio.

2. Try Again. If it still fails, go to Build -> Clean Project. Try Again.

3. If it still doesn't work, go to File -> Invalidate Cache and restart. Try Again.

4. If it still fails, close Android Studio. Go to your sdk location -> find a folder called "build-tools". Delete that folder. For a safe side, don't delete it permanently. Try Again.

5. Help yourself. Even God can't help you on this now. 
Share
Tweet
Pin
Share
No comments
Its 4.30 in the night (or just call it morning) and here I am discussing interesting issue I came across in PowerUp Game a couple of days back.

It happened to me for the second time that app crashed with a message "Power Up has stopped working". I didn't had my phone connected when the crash happened. So Bad. Or maybe not. I learned a couple of new things because of this. That's what I love about Open Source.

So,  I thought of applying a trick I found sometime back while going through StackOverflow questions. Here it goes,

1. Open your terminal or Command Prompt and connect your device on which crash happened.

2. Now we need to go to the location of adb. How to find it ?

Go to your Android Studio -> File -> Other Settings ->  Default Project Structure

You can find the location of sdk there.

3. Now we will recover the log cat. Come back to terminal.

cd sdk_location_you_copied
cd platform-tools                            
adb logcat AndroidRuntime:E  *:S 

You will see all the log cats. In case its running infinitely, just press Ctrl + C.

4. Now that you have your logcat, search for your package name in it. I searched "power" and was able to find all the crash that happened in Power Up recently on my device. 

I will be telling about how I handled the issue I found #234 in my next post.
Share
Tweet
Pin
Share
No comments
Older Posts

About me

I am Sachin Aggarwal, Android Developer and Designer pursuing my B.Tech at MAIT, Delhi. I love to explore new things and spend time contributing to Open Source.

Categories

  • Android
  • Competitive Programming
  • Experiences
  • Extras

Blog Archive

  • ▼  2017 (6)
    • ▼  October (1)
      • Android Systrace and Method Tracing
    • ►  April (1)
    • ►  March (2)
    • ►  February (2)
  • ►  2016 (4)
    • ►  September (1)
    • ►  July (1)
    • ►  February (1)
    • ►  January (1)

Created with by ThemeXpose | Distributed By Gooyaabi Templates