question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fresco 1.7.0 Error:attribute 'com.listenergao.myapplication2:placeholderImage' not found.

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
savvasdalkitsiscommented, Dec 16, 2017

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:

screen shot 2017-12-16 at 17 18 18

Downgrading to 1.5.0 works

3reactions
foghinacommented, Dec 19, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found