question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Android app can't load resources

See original GitHub issue

Bug Report

Ionic version: 5.2.5

Current behavior: Build the app, and install the APK in the phone (Xiaomi Pocophone, Android 9). After this, when the app is opened, it just shows a blank screen. When inspected with Chrome DevTools/Remote Devices, it shows the following errors:

errors

This ONLY happens in the Android build. In the web build that is used in ionic serve, it works perfectly.

Expected behavior: It should open the app as normal.

IMPORTANT: The app was working as expected in this phone, and also in an older, worse phone (although with some performance issues). But when I installed the Firebase FCM plugin, both the Ionic Native package and the Cordova plugin, also having put the google-services.json file in the platforms/android/app folder, it just started doing this behavior.

Steps to reproduce: Installing the Firebase FCM plugin, both Ionic package and Cordova plugin. Also, setting up the google-services.json file. That’s all the changes that led this app to stop working.

Ionic info:

Ionic:

   Ionic CLI                     : 5.2.5 (C:\Users\zerok\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0
   @angular-devkit/build-angular : 0.12.4
   @angular-devkit/schematics    : 7.3.0
   @angular/cli                  : 7.1.0
   @ionic/angular-toolkit        : 1.3.0

Cordova:

   Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms : android 7.1.4
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 14 other plugins)

Utility:

   cordova-res : 0.6.0
   native-run  : not installed

System:

   NodeJS : v11.8.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.5.0
   OS     : Windows 10

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Zerokkcommented, Sep 23, 2019

Hello @FernetB !

I was going to post an update on the topic just as you posted this. It does not seem to be the central issue, since now I managed to get it working doing the linked solution again.

0reactions
ionitron-bot[bot]commented, Oct 24, 2019

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android only - Could not load network resources - Bugs
When trying to put my app onto an android phone (No issues with iOS) ... about a minute I get this message Could...
Read more >
Fix an installed Android app that isn't working - Google Support
Try the following steps if an app installed on your phone has any of these problems: Crashing. Won't open. Won't respond. Isn't working...
Read more >
My Android App bug on load ressource only in production
I have foud the solution. Bugs not provide from ressource but by obfuscation mod. Because GSON not working correctly in this mod.
Read more >
Report a bug | Android Developers
Open a bug report from Android Studio by selecting Help > Submit Feedback. This is the easiest way to start a bug because...
Read more >
Troubleshoot known issues with Android Emulator
Check for adequate disk space · Antivirus software · HAXM on unsupported versions of macOS · Android Emulator runs slowly after an update...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found