Skip to content
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

关于Android9.0下载更新包后无法安装的问题修复 #118

Open
Seidesu opened this issue Jan 4, 2019 · 6 comments
Open

关于Android9.0下载更新包后无法安装的问题修复 #118

Seidesu opened this issue Jan 4, 2019 · 6 comments

Comments

@Seidesu
Copy link

Seidesu commented Jan 4, 2019

报错:
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
解决方法:
AppUpdateUtils里的getInstallAppIntent方法,把setFlags换成addFlags。

@protectedMan
Copy link

我使用android 9.0虚拟机安装没有问题啊

@Seidesu
Copy link
Author

Seidesu commented Feb 15, 2019

我使用android 9.0虚拟机安装没有问题啊

我这边小米和华为真机9.0都出现了这个问题,9.0以下就没事。

@zrbaihld
Copy link

遇到一样问题了...只能下载库重写了...希望修复

@sdgSnow
Copy link

sdgSnow commented Mar 19, 2019

请问下这个 问题楼主解决了吗,我也是遇到了,求解,感谢

@LANDDB
Copy link

LANDDB commented Apr 4, 2019

报错:
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
解决方法:
AppUpdateUtils里的getInstallAppIntent方法,把setFlags换成addFlags。

没用啊

@BarkSheep
Copy link

感谢 亲测可用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants