2017-07-03 119 views
0

我使用這些依賴性:搖籃依賴性增加GIF庫

compile 'com.felipecsl:gifimageview:2.1.0' 
    compile 'commons-io:commons-io:2.4' 

但它無法解析的第一個。我正在使用Android Studio 2.3.2。

+0

你能展現完整的gradle這個文件,並在錯誤消息的XML gradle控制檯? –

+0

對不起,我的聲望較差,所以無法上傳圖像,但錯誤消息我們來作爲: - 無法解決,並與提到的依賴關係felipecsl – NoONE

+0

複製過去的文本,然後:) –

回答

0

你知道滑翔嗎?這就像畢加索,一個圖像加載到ImageView的圖書館,但它是「谷歌推薦」。無論如何,這個庫類似於畢加索,但區別在於加載gif的能力:)

爲什麼不試試?您可以遵循其他成員給這個計算器例如:Displaying GIF in ImageView using Glide

0

試試這個庫

compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.0' 

,這是

<pl.droidsonroids.gif.GifImageView 
       android:scaleType="centerCrop" 
       android:src="@drawable/gif1" 
       android:layout_width="150dp" 
       android:layout_height="150dp" /> 
相關問題