Preferred configuration in the Build.gradle file
View NDK Path
Then configure it in the Gradle.properties file.
NDK.PATH=C\:\\USERS\\LIXISHUANG\\APPDATA\\LOCAL\\ANDROID\\SDK\\ANDROID-NDK-R10C (Reference)
Enter Gradlew build in terminal below Android Studio to wait until you see a successful operation
Add permissions in the Androidmanifest.xml file
<uses-permission android:name= "Android.permission.INTERNET"/>
Initialized before the app calls Setcontentview (), typically in the application OnCreate () method
Fresco. Initialize(context);
In the XML layout file, join the namespace:
xmlns:fresco="Http://schemas.android.com/apk/res-auto"
<com.facebook.drawee.view.simpledraweeview
android:id="@+id/simple_drawee_view"
android:layout_width="20DP" (wrap_content not available )
android:layout_height="20DP"(wrap_content not available)
fresco:placeholderimage="@drawable/my_drawable" />
Program Get Simpledraweeview
Simpledraweeview ImageView = (simpledraweeview) Findviewbyid (R.id.simple_drawee_view);
Assign value
Imageview.setimageuri (Uri.parse ("http://p4.so.qhimg.com/t0102672bd8a6bd290e.jpg"));
Android Studio introduces Fresco