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.

Android release apk is giving Webpage not available

See original GitHub issue

Debug apk works good on my device but on doing a release by using Android Studio to Generate Signed Apk. On running signed apk I am getting this screen. I found that below permission should be on top of manifest file under root tag but moving it to top also not helps.

<uses-permission android:name="android.permission.INTERNET" />

screen shot 2018-10-05 at 1 00 05 pm
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="***************">
    <uses-permission android:name="android.permission.INTERNET" />
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <activity
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
            android:name="**********.MainActivity"
            android:label="@string/title_activity_main"
            android:theme="@style/AppTheme.NoActionBarLaunch">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="@string/custom_url_scheme" />
            </intent-filter>

        </activity>

        <provider
            android:name="android.support.v4.content.FileProvider"
            android:authorities="${applicationId}.fileprovider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths"></meta-data>
        </provider>
    </application>

    <!-- Permissions -->
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <!-- Geolocation API -->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-feature android:name="android.hardware.location.gps" />
    <!-- Network API -->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jcesarmobilecommented, May 6, 2019

there was a fix submitted, but it’s not linked here becase this issue and #1214 are duplicates and the fix (https://github.com/ionic-team/capacitor/pull/1256) was linked to that other issue.

1reaction
stripathixcommented, Jan 1, 2019

On debugging it shows:

screenshot 2019-01-01 at 4 54 21 pm

Looks like there is some conflict in Cordova and capacitor. Maybe cordova app is running some background service what fails with capacitor.

Read more comments on GitHub >

github_iconTop Results From Across the Web

web view not loading page after exporting to signed APK
I then export a signed APK. Copy the APK to my device. Install it. Run it. No map. Just a blank white web...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To work around this issue, do the following: Open the Settings window by clicking File > Settings.
Read more >
Manage private Android apps in Google Play
Make internal work apps available to usersSupported editions for this feature: Frontline; Business Starter, Business Standard and Business Plus; Enterprise; ...
Read more >
Google Chrome: Fast & Secure - Apps on Google Play
Google Chrome is a fast, easy to use, and secure web browser. Designed for Android, Chrome brings you personalized news articles, quick links...
Read more >
How To Fix Web page not available Error in Android Mobile ...
Hello Everyone Today We Are Going To Talk About How To Fix Web Page Not Available Error On Android.On your Device, Click and...
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