I/Glide: Root cause (1 of 1)
Cause (1 of 1): class java .io.FileNotFoundException: No content provider:
There are similar errors reported above Message, the reason is that the http request is forbidden by the system.
Solution:
1. Create a new network_config.xml file in the xml folder under res
2. Then refer to the application in the AndroidManifest.xml configuration file
< pre><application
android:name=”.MyApp”
android:icon=”@mipmap/ic_launcher”
android:label=”@string/app_name” android:networkSecurityConfig=”@xml/network_security_config”
android:roundIcon=”@mipmap/ic_launcher_round”
android:theme=”@style/AppTheme”>
android:name=”.MyApp”
android:icon=”@mipmap/ic_launcher”
android:label=”@string/app_name” android:networkSecurityConfig=”@xml/network_security_config”
android:roundIcon=”@mipmap/ic_launcher_round”
android:theme=”@style/AppTheme”>
<application
android:name=".MyApp"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/AppTheme">