Sticker App:发布App AsyncTask后出现UnsatisfiedLinkError

时间:2019-02-27 12:04:24

标签: android android-asynctask webp

我从Play控制台崩溃后报错。

它的贴纸应用程序,我刚刚进行了更新,在此之前我进行了很多次更新,但没有收到任何错误。

在此更新中,我只是通过添加一个包含25张图像的文件夹来更改了资产文件夹。

java.lang.RuntimeException: 
  at android.os.AsyncTask$3.done (AsyncTask.java:353)
  at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:383)
  at java.util.concurrent.FutureTask.setException (FutureTask.java:252)
  at java.util.concurrent.FutureTask.run (FutureTask.java:271)
  at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:245)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1162)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:636)
  at java.lang.Thread.run (Thread.java:764)
Caused by: java.lang.UnsatisfiedLinkError: 
  at com.facebook.soloader.SoLoader.b (Unknown Source:254)
  at com.facebook.soloader.SoLoader.a (Unknown Source:106)
  at com.facebook.soloader.SoLoader.a (Unknown Source:94)
  at com.facebook.soloader.SoLoader.a (Unknown Source:1)
  at com.facebook.imagepipeline.nativecode.d.a (Unknown Source:20)
  at com.facebook.animated.webp.WebPImage.a (Unknown Source)
  at com.wastickers.stickers.j.a (Unknown Source:17)
  at com.wastickers.stickers.j.a (Unknown Source:19)
  at com.wastickers.stickers.j.a (Unknown Source:467)
  at com.wastickers.stickers.i.a (Unknown Source:109)
  at com.wastickers.stickers.EntryActivity$a.a (Unknown Source:11)
  at com.wastickers.stickers.EntryActivity$a.doInBackground (Unknown Source:2)
  at android.os.AsyncTask$2.call (AsyncTask.java:333)
  at java.util.concurrent.FutureTask.run (FutureTask.java:266)

我正在遵循这个repository来制作此应用。

build.gradle :您也可以check here

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.facebook.fresco:fresco:1.12.0'
    implementation 'com.facebook.fresco:webpsupport:1.12.0'
    implementation 'com.facebook.fresco:animated-webp:1.12.0'
}

有人可以帮我吗?

1 个答案:

答案 0 :(得分:0)

我在这里找到了解决方法:

根据此comment壁画的问题,该应用没有很好地支持应用捆绑包。

  

问题在于该应用程序捆绑包可生成多个dexes,但Fresco是   只看一个就能找到so文件。没问题   使用apk发送到Play商店。

通过该链接,我发现要更新以下库。

implementation 'com.facebook.fresco:fresco:1.12.0'
implementation 'com.facebook.fresco:webpsupport:1.12.0'
implementation 'com.facebook.fresco:animated-webp:1.12.0'

更新:

implementation 'com.facebook.fresco:fresco:1.12.1'
implementation 'com.facebook.fresco:webpsupport:1.12.1'
implementation 'com.facebook.fresco:animated-webp:1.12.1'

对我来说,以下版本有效。

参考链接:

https://github.com/WhatsApp/stickers/issues/410

https://github.com/WhatsApp/stickers/issues/413