Closed chihung93 closed 3 years ago
I have tried your example but not work
public class SimpleActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_simple);
final AXrLottieImageView lottieView = findViewById(R.id.lottie_view);
lottieView.setLottieDrawable(
AXrLottieDrawable.fromURL("https://files-5.gapo.vn/sticker/origin/234f279b-1342-4b8a-8673-5fc11e3bfbba.json").setSize(140,140).build()
);
lottieView.playAnimation();
}
}
I think the problem is this.url = "lottie_cache_" + url.replaceAll("\\W+", "");
Hi @chihung93 , You're right, i have released v1.0.3 and fixed this issue.
implementation 'com.aghajari.rlottie:AXrLottie:1.0.3'
Your code works fine now :
@Aghajari I think the lib is getting the wrong cache from the URL.
Fixed on v1.0.4
My Code: link url = https://files-5.gapo.vn/sticker/origin/234f279b-1342-4b8a-8673-5fc11e3bfbba.json
My error console:
java.net.MalformedURLException: no protocol: lottie_cache_httpsfiles5gapovnstickerorigin6525deecc18545a58adea943441c0bd9json
Thanks.