Skip to content
Coding Fanatic
  • Android Development
  • News and Reviews
  • Road2Pro
  • Tutorials
  • Services
  • About

We Have Liftoff! 63 of 100 Days of Code

  • April 26, 2020April 26, 2020
  • by Richard Clarke

After doing some research, I finally fixed the issue with my app crashing when it starts

You can find a video at the bottom of the page and a link to the source code here.

As I mentioned last time, the Travel app continued to crash every time it started. To fix this, I renamed the package for the application from com.example.travel to com.codingfanatic.travel

As I dug around my project files in Android Studio, I noticed the applicationId for my app listed in the build.grade Module app file was set to com.codingfanatic.travel. I set this as the applicationId when I first generated the APK to upload the app to the Google Play Store.

The Play Store prohibits the use of com.example.XXXXX as an applicationId. That’s why I changed it when I first generated the APK.

The problem is, in order for the app to function properly, the package name must match the applicationId. This led to my classes not being recognized and caused the app to malfunction.

I’ll generate a new APK and update the listing on the Google Play Store. Hopefully it goes smoothly and I can continue the next step of this app: Building a back end.

For more on this, watch the YouTube video below.

Join the mailing list to see updates like this every week!
Coding Fanatic

Related

Failure to Launch, 62 of 100 Days of Code
The APKs are Alright, 64 of 100 Days of Code
Richard Clarke
Richard is currently a developer using Java and Android Studio to build custom applications for Android. Richard tutored in mathematics at Montgomery College, and worked in Information Technology before entering the Software Development industry as a Quality Engineer.
100daysofcode Android Android Studio AndroidDev Java

Related articles

Your New Favorite Stopwatch App!…
Two for Two BABY! 7…
…But the App is for…
Play Store Blues – 5…
Top 4 Tips for Android…
No Dice – 3 of…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • GitHub
  • YouTube
  • X
  • Instagram
  • LinkedIn
My Tweets

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • X
  • GitHub
  • LinkedIn
  • YouTube

Archives

Theme by Colorlib Powered by WordPress