Mobile App Issue Android Studio

I keep getting the following: 

\android\app\src\main\res\drawable-land-hdpi\launch_screen.png: Error: The drawable "launch_screen" in drawable-land-hdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]


Ofcourse, I did the command which replaces the UNA one with my site one per the guide using cmd prompt. On my old site I didn't have any issues just with this new one, but I was using an older version of the mobile app as well. There are multiple variations of that error for the same thing. They all are the same thing multiple times. Guessing different size variations (When I click each image that really is not missing it shows the UNA logo in different screen variations). I was able to make a bundle, but wanting to make an APK to test like I have before, ahead of uploading so I know it's working properly. 

image_transcoder.php?o=bx_froala_image&h=5054&dpx=2&t=1620036804

This is instruction I followed for the splash launch screen and it shows in the preview: 

npx react-native set-icon --platform android --path ./img/icon-android.png 

npx react-native set-splash --platform android --path ./img/background.png --resize contain  

I even tried doing all steps all over again. Do I need to go in and change all these launch screen manually or will that cause issues? Any help would be appreciated. 

LeonidS 

  • 934
  • More
Replies (5)
    • Any help would be greatly appreciated. I am using the newest Android Studio maybe this could be the issue as well. 

      LeonidS

      • npx react-native set-splash --platform android --path ./img/background.png --resize contain  

        Please try to run this command for default version without renaming, if this will work then problem is in renaming, then I would suggest to rename it again.

        • If you read my post that is what I did. I followed the guide to the letter. I updated Android Studio and using the last update of of the mobile app, not sure if something updated and that's causing the issue. I have repackaged and installed the app multiple times just to make sure I did not mess anything up. Works fine with the UNA splash there, just not my edited one. By renaming do you mean renaming the background.png to something else? like bg.png etc. 

          • If you read my post that is what I did. I followed the guide to the letter. I updated Android Studio and using the last update of of the mobile app, not sure if something updated and that's causing the issue. I have repackaged and installed the app multiple times just to make sure I did not mess anything up. Works fine with the UNA splash there, just not my edited one. By renaming do you mean renaming the background.png to something else? like bg.png etc. 

            By renaming I mean changing app name and the the identifier from com.una.ios and com.una.android to your own.

            • Yes I have done that already, all files per instructions have been updated as such and my app folder I am deploying from in a new folder with my site name. I have seen other posts for other software products with same issue and they had to update code. I wish they shared what code, but I have been searching for weeks at this point. Has something to do with symbols or commands that do not work with the newest version of Android Studio. Or it may not be at this point I am stumped. My app previews with my logo and splash and everything. This error comes when building the final product (apk/bundle)

              Login or Join to comment.