• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Android Studio app crashes

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have made a pizza idle clicker game for android, and it keeps crashing, im very new to this stuff and I just dont know why it's crashing. I was hoping someone on this forum would be able to give me some insight on this problem.

This is my MainActivity, where the crash occurs.
https://pastebin.com/dA8XMwAn
 
Bartender
Posts: 1868
81
Android IntelliJ IDE MySQL Database Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to CodeRanch Marius.

A few followup questions if I may:
  • Have you tried using the Android Device Monitor's logcat? The use of log.d(TAG,String) with the logcat from within Android Device Monitor can be very helpful.
  • Is your Android Studio up to date?
  • What version of Android are you trying this out on?
  • Have you tried different versions of Android using the AVD/Emulator? Do they all cash the same way?
  •  
    Ranch Hand
    Posts: 570
    3
    Android Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    We need to see the stacktrace
     
    machines help you to do more, but experience less. Experience this tiny ad:
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic