As shown in the figure, with the permission to access the network, the debug version can access the network normally, but the release version can't! What's the matter??
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
I added it to Android / SRC / profile for the first time/ AndroidManifest.xml It doesn't work. The pictures on the real machine can't be loaded. Viewing the application information shows that you don't have any permission to apply for it. I'll take a look later. There's another one in the main directory at the same level as profile AndroidManifest.xml File, namely Android / SRC / main/ AndroidManifest.xml Put the permission application configuration here to package and install again You can access the Internet.
The first time I met the same problem in packing, thank you for your answer, because of Android manifest . XML has three, because of the Android manifest in the debug and config directory . All XML < uses - permission android : name =" android . permission . INTERNET "/> , and there is no such line in the main directory. On Android / app / src / main / AndroidManifest . Add this line to XML
I have the same problem. Do you know how to solve it?
When debugging on the computer, the DIO has data, but when it is installed on the real machine, there is no data. How to solve this problem? The uses permission has been set
After Android hits the release package, the page is blank....
In this file, Android / APP / SRC / profile\ AndroidManifest.xml Just add this code. </application><uses-permission android:name= " android.permission.READ_ PHONE_ STATE" /><uses-permission android:name= " android.permission.INTERNET " /><uses-permission android:name= " android.permission.ACCESS_ NETWORK_ STATE" /><uses-permission android:name= " android.permission.ACCESS_ WIFI_ State "/ > < / manifest > just add it under the manifest tag, don't put it in application
According to the adopted answer, why is it still unable to connect to the Internet