leonHua/LFilePicker

github保存的代码似乎不是最新的?

Opened this issue · 0 comments

在代码里versionCode 1 versionName "1.0",当前版本已经1.8.当然这并不是什么问题。真正的问题是我下载了这个项目并用as编译,项目生成的apk运行无异常;但是使用项目生成的aar作为本地lib给我的项目用,项目启动文件选择器时就崩溃了;使用公共仓库1.8版本没有这样的问题。
崩溃的错误代码如下

`08-25 00:00:55.410 24256-24256/com.yazii.mediainfocli W/System.err: Application uncaught exception in thread "main" java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yazii.mediainfocli/com.leon.lfilepickerlibrary.ui.LFilePickerActivity}: android.view.InflateException: Binary XML file line #62: Binary XML file line #62: Error inflating class com.leon.lfilepickerlibrary.widget.EmptyRecyclerView
08-25 00:00:55.411 24256-24256/com.yazii.mediainfocli W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2594)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)
at android.app.ActivityThread.access$900(ActivityThread.java:173)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1431)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:171)
at android.app.ActivityThread.main(ActivityThread.java:5731)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
Caused by: android.view.InflateException: Binary XML file line #62: Binary XML file line #62: Error inflating class com.leon.lfilepickerlibrary.widget.EmptyRecyclerView
at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:467)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at com.leon.lfilepickerlibrary.ui.LFilePickerActivity.onCreate(LFilePickerActivity.java:54)
at android.app.Activity.performCreate(Activity.java:6320)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1121)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2547)
... 9 more
Caused by: android.view.InflateException: Binary XML file line #62: Error inflating class com.leon.lfilepickerlibrary.widget.EmptyRecyclerView
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:776)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
... 17 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.leon.lfilepickerlibrary.widget.EmptyRecyclerView" on path: DexPathList[[zip file "/data/app/com.yazii.mediainfocli-1/base.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.yazii.mediainfocli-1/lib/arm64, /vendor/lib64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.view.LayoutInflater.createView(LayoutInflater.java:583)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
... 21 more
Suppressed: java.lang.NoClassDefFoundError: com.leon.lfilepickerlibrary.widget.EmptyRecyclerView
08-25 00:00:55.412 24256-24256/com.yazii.mediainfocli W/System.err: at dalvik.system.DexFile.defineClassNative(Native Method)
at dalvik.system.DexFile.defineClass(DexFile.java:226)
at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
at dalvik.system.DexPathList.findClass(DexPathList.java:338)
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
... 25 more
Suppressed: java.lang.ClassNotFoundException: com.leon.lfilepickerlibrary.widget.EmptyRecyclerView
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 24 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

--------- beginning of crash

08-25 00:00:55.412 24256-24256/com.yazii.mediainfocli E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.yazii.mediainfocli, PID: 24256
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yazii.mediainfocli/com.leon.lfilepickerlibrary.ui.LFilePickerActivity}: android.view.InflateException: Binary XML file line #62: Binary XML file line #62: Error inflating class com.leon.lfilepickerlibrary.widget.EmptyRecyclerView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2594)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)
at android.app.ActivityThread.access$900(ActivityThread.java:173)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1431)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:171)
at android.app.ActivityThread.main(ActivityThread.java:5731)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
Caused by: android.view.InflateException: Binary XML file line #62: Binary XML file line #62: Error inflating class com.leon.lfilepickerlibrary.widget.EmptyRecyclerView
at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:467)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at com.leon.lfilepickerlibrary.ui.LFilePickerActivity.onCreate(LFilePickerActivity.java:54)
at android.app.Activity.performCreate(Activity.java:6320)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1121)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2547)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654) 
at android.app.ActivityThread.access$900(ActivityThread.java:173) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1431) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:171) 
at android.app.ActivityThread.main(ActivityThread.java:5731) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622) 
Caused by: android.view.InflateException: Binary XML file line #62: Error inflating class com.leon.lfilepickerlibrary.widget.EmptyRecyclerView
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:776)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:467) 
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
at com.leon.lfilepickerlibrary.ui.LFilePickerActivity.onCreate(LFilePickerActivity.java:54) 
at android.app.Activity.performCreate(Activity.java:6320) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1121) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2547) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654) 
at android.app.ActivityThread.access$900(ActivityThread.java:173) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1431) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:171) 
at android.app.ActivityThread.main(ActivityThread.java:5731) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622) 
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.leon.lfilepickerlibrary.widget.EmptyRecyclerView" on path: DexPathList[[zip file "/data/app/com.yazii.mediainfocli-1/base.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.yazii.mediainfocli-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.yazii.mediainfocli-1/lib/arm64, /vendor/lib64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.view.LayoutInflater.createView(LayoutInflater.java:583)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835) 
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:515) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:467) 
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
at com.leon.lfilepickerlibrary.ui.LFilePickerActivity.onCreate(LFilePickerActivity.java:54) 
at android.app.Activity.performCreate(Activity.java:6320) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1121) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2547) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654) 
at android.app.ActivityThread.access$900(ActivityThread.java:173) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1431) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:171) 
at android.app.ActivityThread.main(ActivityThread.java:5731) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622) 
Suppressed: java.lang.NoClassDefFoundError: com.leon.lfilepickerlibrary.widget.EmptyRecyclerView
at dalvik.system.DexFile.defineClassNative(Native Method)
at dalvik.system.DexFile.defineClass`