byteszero / app_installer Goto Github PK
View Code? Open in Web Editor NEWFlutter App 安装器,支持 Android、iOS
Home Page: https://pub.dev/packages/app_installer
License: Apache License 2.0
Flutter App 安装器,支持 Android、iOS
Home Page: https://pub.dev/packages/app_installer
License: Apache License 2.0
{exception: PlatformException(error, Couldn't find meta-data for provider with authority com.example.tsp.fileProvider, null, java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority com.example.tsp.fileProvider
这是允许后控制台返回的信息
D/CrashReport(11730): >>> com.xx.xxxxxxx.MainActivity onPaused <<<
I/CrashReport-Native(11730): jni_setNativeInfo: key is 14
I/CrashReport-Native(11730): Set native info: isAppForeground(false)
I/GED (11730): ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 29, oppidx_max 29, oppidx_min 0
V/PhoneWindow(11730): DecorView setVisiblity: visibility = 4, Parent = android.view.ViewRootImpl@8827ace, this = DecorView@a4d3def[MainActivity]
Lost connection to device.
这是我的环境
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.5, on Microsoft Windows [Version 10.0.19042.1165], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] Android Studio
[√] Connected device (3 available)
• No issues found!
手机为红米 note9 安卓环境为 Android 11
在AndroidManifest.xml中的application标签下 我也添加了应该添加的provider xml在添加了file_paths文件
<!-- Provider -->
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
请问 如何让安卓11 升级app 如何越过这个权限 或者 允许这个权限而不让程序闪退
在安卓9上我测试了这个权限 不会造成闪退 唯独安卓11会造成闪退 请问这个咋解决 多谢
Code:
void update()async{
String filePath = '/storage/emulated/0/Download/newVersion2.apk'; //manually pasted the apk file from pc to Download folder
await AppInstaller.installApk(filePath);
}
Plugin Version: app_installer: ^1.1.0
Permissions Used:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
Devices:
✅Works on Android 6.0.1
∟Samsung J2 Prime
⛔ Parsing Error on Android 11
∟Vivo y11
Note: I have not tested it on other android versions.
如题,最新版本,测试发现其他手机没啥问题,但是小米手机依旧弹出一个提示框,需要去设置打开未知应用权限,打开了就还是会重启,望知悉
安装后:
Xcode:
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
pod install 后:
[!] Unable to determine Swift version for the following pods:
install_plugin does not specify a Swift version and none of the targets (Runner) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.
app_installer supports formats APKs, APKm, xAPK?
Thanks for developing this package.
When I built the app bundle, there was a altertAppInstallerPlugin.java uses or overrides a deprecated API.
Is there a plan to replace the deprecated API?
app/ios/Runner/GeneratedPluginRegistrant.m
app/ios/Runner/GeneratedPluginRegistrant.m:12:9 Module 'app_installer' not found
在Android 10及以下,可以跳转到开启权限界面,开启后可以返回应用界面。但在Android 11及以上,开启权限之后会导致应用闪退,请问有比较好的解决办法吗?
On Android 10 or later, you can go to the Enable Permission page and return to the Application page. However, on Android 11 and above, after enabling permissions, the application will flash back. Is there a better solution?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.