waseem afzal
waseem afzal

Reputation: 33

In Debug mode working fine vs Build APK does not work, Flutter

I build an App that shows an online image in the app as a photo view when I run the app in debug mode it's working and load's the image but I when build an app and install then does not load the images from the internet. I don't really understand what's going on. Does it need storage permission(Note: The image is not downloadable).

I build an App that shows an online image in the app as a photo view when I run the app in debug mode it's working and load's the image but I when build an app and install then does not load the images from the internet. I don't really understand what's going on. Does it need storage permission(Note: The image is not downloadable).Build APK

Debug APK Working fine

Upvotes: 0

Views: 403

Answers (6)

waseem afzal
waseem afzal

Reputation: 33

Just add the internet permission in AndroidManifest.xml.

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

<application
    android:name="io.flutter.app.FlutterApplication"
    android:label="projectname"
    android:icon="@mipmap/ic_launcher">
    .
    .
    .
</application>

Upvotes: 0

Muhammad Ashir
Muhammad Ashir

Reputation: 456

Add this permission to your manifest File in => android/app/src/main

Upvotes: 0

Ale
Ale

Reputation: 86

Go to android/app/src/AndroidManifest.xml and add

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

The top part of your AndroidManifest.xml should look like this:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.yourappname">
    <uses-permission android:name="android.permission.INTERNET"/>

Upvotes: 1

Muhammad Usman
Muhammad Usman

Reputation: 387

If you're try to load image from URL then make sure you have added Internet permission into your manifest file.

In the AndroidManifest.xml file located at android/app/src/main you need to add this permission inside the manifest tag.

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

Upvotes: 0

Raj A
Raj A

Reputation: 592

You need internet access permission. In the AndroidManifest.xml file located at android/app/src/main you need to add this permission inside the manifest tag.

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

Upvotes: 0

srzh
srzh

Reputation: 55

source flutter.dev

add: <uses-permission android:name="android.permission.INTERNET" /> into AndroidManifest.xml

Upvotes: 0

Related Questions