Willow
Willow
YYImage 使用下面这个仓库就行了 pod 'YYImage', :git => 'https://github.com/QiuYeHong90/YYImage.git' 这个仓库已经修正了这个兼容问题,亲测有效。
将update-app 模块的target sdk 改为 27 编译之后,使用生产aar文件打包后,问题解决。
04-23 11:55:00.472 27013 27013 W System.err: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? 04-23 11:55:00.472 27013 27013 W...
补充说明一下,我这边出现问题的版本是3.3.1,使用最新代码编译出的aar文件来运行不会有这个问题,因为在安卓9.0上代码逻辑走的是:public static boolean installApp(Activity activity, File appFile) 而不是 public static boolean installApp(Context context, File appFile),即启动activity是从 Activity启动的,而不是从service,也就不会有 outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. 这个要求。