ssseasonnn / RxDownload

A multi-threaded download tool written with RxJava and Kotlin
Apache License 2.0
4.14k stars 612 forks source link

直接运行demo程序 安装apk报错 #335

Open hy20160705 opened 3 years ago

hy20160705 commented 3 years ago
 Process: zlc.season.rxdownload.kotlin_demo, PID: 11870
    java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/zlc.season.rxdownload.kotlin_demo/files/weixin706android1460.apk
        at androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:744)
        at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:418)
        at zlc.season.rxdownload.demo.utils.UtilKt.installApk(Util.kt:27)
        at zlc.season.rxdownload.demo.basic.DemoActivity.install(DemoActivity.kt:101)
        at zlc.season.rxdownload.demo.basic.DemoActivity.onClick(DemoActivity.kt:64)
        at zlc.season.rxdownload.demo.basic.DemoActivity.access$onClick(DemoActivity.kt:20)
        at zlc.season.rxdownload.demo.basic.DemoActivity$onCreate$2.invoke(DemoActivity.kt:51)
        at zlc.season.rxdownload.demo.basic.DemoActivity$onCreate$2.invoke(DemoActivity.kt:20)
        at zlc.season.rxdownload.demo.utils.UtilKt$click$1.onClick(Util.kt:39)
        at android.view.View.performClick(View.java:6897)
        at android.widget.TextView.performClick(TextView.java:12693)
        at android.view.View$PerformClick.run(View.java:26100)
        at android.os.Handler.handleCallback(Handler.java:789)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6942)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
2021-06-19 14:34:15.285 1494-1512/? E/PhoneWindow_APM :: isCalledPackage return true