Fresco 1.7.0 Error:attribute 'com.listenergao.myapplication2:placeholderImage' not found.
See original GitHub issueWhen I updated Fresco to 1.7.0,compilation got an error。 this is my error log: Information:Gradle tasks [clean, :app:assembleDebug] /Users/listenergao/AndroidStudio_Project/MyApplication2/app/src/main/res/layout/item_layout.xml Error:error: attribute ‘com.listenergao.myapplication2:placeholderImage’ not found. Error:attribute ‘com.listenergao.myapplication2:placeholderImage’ not found. Error:failed linking file resources. Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:Execution failed for task ‘:app:processDebugResources’.
Failed to execute aapt Information:BUILD FAILED in 1s Information:7 errors Information:0 warnings Information:See complete output in console
Use the following configuration: app/build.gradle: compile ‘com.facebook.fresco:fresco:1.7.0’ Application: Fresco.initialize(this); xml content:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@android:color/darker_gray">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/my_image_view"
android:layout_width="60dp"
android:layout_height="match_parent"
fresco:placeholderImage="@mipmap/ic_launcher" />
<EditText
android:id="@+id/editText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@null" />
</LinearLayout>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (5 by maintainers)
Top GitHub Comments
To add to this, it seems that 1.7.0 deployed a bad artifact. Most classes are missing from it.
SimpleDraweeView etc are not packaged in.
I am only seeing these classes:
Downgrading to 1.5.0 works
v1.7.1 is now out.