New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么不支持android 4.4.2,android 4.3版本 #319

Closed
ILoveChina1994 opened this Issue Oct 24, 2018 · 12 comments

Comments

Projects
None yet
2 participants
@ILoveChina1994

ILoveChina1994 commented Oct 24, 2018

什么问题

如何复现此问题

手机型号

控制台日志(越完整越好)

@ILoveChina1994

This comment has been minimized.

ILoveChina1994 commented Oct 24, 2018

控制台日志:
10-24 16:44:13.092 28657-28657/com.zjdx.admin.wyplaningapp_ipad E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.zjdx.admin.wyplaningapp_ipad, PID: 28657
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zjdx.admin.wyplaningapp_ipad/com.zjdx.admin.wyplaningapp_ipad.main_menu.PlanDesign.PlanDesignResultActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2328)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2386)
at android.app.ActivityThread.access$900(ActivityThread.java:169)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5476)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.arialyy.aria.util.CommonUtil.getClassName(CommonUtil.java:89)
at com.arialyy.aria.core.common.ProxyHelper.init(ProxyHelper.java:50)
at com.arialyy.aria.core.common.ProxyHelper.(ProxyHelper.java:37)
at com.arialyy.aria.core.common.ProxyHelper.getInstance(ProxyHelper.java:43)
at com.arialyy.aria.core.download.DownloadReceiver.register(DownloadReceiver.java:219)
at com.zjdx.admin.wyplaningapp_ipad.main_menu.PlanDesign.PlanDesignResultActivity.onCreate(PlanDesignResultActivity.java:159)
at android.app.Activity.performCreate(Activity.java:5473)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2386) 
at android.app.ActivityThread.access$900(ActivityThread.java:169) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5476) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) 
at dalvik.system.NativeStart.main(Native Method) 

@ILoveChina1994

This comment has been minimized.

ILoveChina1994 commented Oct 24, 2018

在真机 android 4.4.2 和 4.3上面程序崩溃,错误在上一个

@AriaLyy

This comment has been minimized.

Owner

AriaLyy commented Oct 25, 2018

Aria 使用的是哪个版本的?3.4.6以下的版本会出现多dex导致注解失败的问题

@ILoveChina1994

This comment has been minimized.

ILoveChina1994 commented Oct 25, 2018

compile 'com.arialyy.aria:aria-core:3.4.1' 这个版本,那我应该使用什么版本,里面的代码会不会有影响

@AriaLyy

This comment has been minimized.

Owner

AriaLyy commented Oct 25, 2018

使用最新版本

@ILoveChina1994

This comment has been minimized.

ILoveChina1994 commented Oct 29, 2018

好的,谢谢

@ILoveChina1994

This comment has been minimized.

ILoveChina1994 commented Nov 11, 2018

android 4.4.2和android4.3的版本下载
compile 'com.arialyy.aria:aria-core:3.5'
annotationProcessor 'com.arialyy.aria:aria-compiler:3.5'
compile('com.arialyy.aria:aria-core:') {
exclude group: 'com.android.support'
}
但是一直再报这个错误
11-12 00:20:05.899 2200-2875/com.zjdx.admin.wyplaningapp_ipad E/HttpFileInfoThread: 任务【http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip】下载失败,错误码:403
11-12 00:20:07.984 2200-2919/com.zjdx.admin.wyplaningapp_ipad E/HttpFileInfoThread: 任务【http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip】下载失败,错误码:403
11-12 00:20:10.049 2200-2954/com.zjdx.admin.wyplaningapp_ipad E/HttpFileInfoThread: 任务【http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip】下载失败,错误码:403
11-12 00:20:12.129 2200-3031/com.zjdx.admin.wyplaningapp_ipad E/HttpFileInfoThread: 任务【http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip】下载失败,错误码:403
11-12 00:20:14.194 2200-3104/com.zjdx.admin.wyplaningapp_ipad E/HttpFileInfoThread: 任务【http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip】下载失败,错误码:403
11-12 00:20:16.259 2200-3141/com.zjdx.admin.wyplaningapp_ipad E/HttpFileInfoThread: 任务【http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip】下载失败,错误码:403
11-12 00:20:18.384 2200-3179/com.zjdx.admin.wyplaningapp_ipad E/HttpFileInfoThread: 任务【http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip】下载失败,错误码:403
11-12 00:20:20.509 2200-3260/com.zjdx.admin.wyplaningapp_ipad E/HttpFileInfoThread: 任务【http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip】下载失败,错误码:403
11-12 00:20:22.699 2200-3329/com.zjdx.admin.wyplaningapp_ipad E/HttpFileInfoThread: 任务【http://120.55.95.61:8811/ghcg/zg/武义总规纲要成果.zip】下载失败,错误码:403
请问有没有什么解决方案
我使用android 5.0的版本测试下载,下载使用下面这个版本也能下载成功
compile 'com.arialyy.aria:aria-core:3.4.1'

@ILoveChina1994

This comment has been minimized.

ILoveChina1994 commented Nov 11, 2018

compile 'com.arialyy.aria:aria-core:3.5.1'
annotationProcessor 'com.arialyy.aria:aria-compiler:3.5.1'
compile('com.arialyy.aria:aria-core:') {
exclude group: 'com.android.support'
}
也报上面的错误

@AriaLyy

This comment has been minimized.

Owner

AriaLyy commented Nov 12, 2018

403 是服务器端返回的错误,我使用你提供的url地址是可以下载的呢

@ILoveChina1994

This comment has been minimized.

ILoveChina1994 commented Nov 13, 2018

我在高版本7.0上也是可以下载的,但是在三星的SM-P601上下载不了,一直报上面的错误,平板版本是Android 4.3 和Android 4.4.2,你可以试试使用低版本测试,253412403 这个是我QQ 验证码是 0561 ,你可以远程看一下

@AriaLyy

This comment has been minimized.

Owner

AriaLyy commented Nov 14, 2018

使用3.5.2_dev这个版本

AriaLyy added a commit that referenced this issue Nov 14, 2018

fix bug #319
新增201 重定向支持 #318
修复使用`useServerFileName(true)`中含有`"`导致的文件后缀名错误问题
修改下载线程的优先级为: Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
@ILoveChina1994

This comment has been minimized.

ILoveChina1994 commented Nov 14, 2018

已好,感谢大神,解囊相助!

@AriaLyy AriaLyy closed this Nov 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment