We Have Liftoff! 63 of 100 Days of Code
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