我的应用程序使用Firebase和Flutter (auth,cloud_firestore,google_sign_in.)。当我上传它到Play Play with App时,使用以下命令:flutter build appbundle --target-platform android-arm,android-arm64,android-x64我的应用程序在Firebase中不能正常工作,没有日志和崩溃报告。但是当我使用APK的时候它就起作用了。因此,我使用以下命令发布了几个APK文件:flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi,我的问题是,是否可以将这3个文件上传到Play Store上的同一个应用程序?它也给了我一个警告:
Unoptimized APK
Warning:
This APK results in unused code and resources being sent to users. Your app could be smaller if you used the Android App Bundle. By not optimizing your app for device configurations, your app is larger to download and install on users' devices than it needs to be. Larger apps see lower install success rates and take up storage on users' devices.
Resolution:
Use the Android App Bundle to automatically optimize for device configurations, or manage it yourself with multiple APKs.我该怎么办?(我更喜欢使用APK,因为我的应用程序与APK一起工作)
套餐:
google_sign_in: 4.5.1
firebase_auth: 0.16.1
firebase_core: ^0.4.0+8
firebase_analytics: ^5.0.14
cloud_firestore: ^0.13.6app/build.gradle (android->defaultConfig)我评论了NDK部分,因为APK不允许。
defaultConfig {
applicationId "XXXXXX"
minSdkVersion 21
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
// ndk {
// abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'mips', 'mips64', 'arm64-v8a'
// }
}
...
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
multiDexEnabled true
}
}发布于 2020-06-13 13:35:01
我不建议这样,三击,你就出局了。如果你犯了一个错误,你无意中违反了条款和条件,并且因为它而被一个应用程序删除了,那么你可以纠正这个问题并重新提交,但是如果你对这三个问题都有相同的问题,那么它们都会被撤销,你的帐户将被禁止。这是如此容易做到,所以我建议一次只有一个,留下一个星期之间的每次上传。当我无意中离开到我自己的应用程序存储库的链接时,我就遇到了这种情况,它甚至不是一个可见的链接,但是外部链接当时是针对T&C的,而且很可能仍然是这样。他们不会跟你说话,你也没有追索权,所以要非常小心。
发布于 2020-06-13 12:50:28
这只是一个警告,让您知道您的APK的大小是不必要的大,这不是一个阻塞错误。如果你不能发布你的应用程序,这不是原因:确保你已经填写了所有的商店列表(图片),勾选所有的框,填写隐私政策,等等。
发布于 2020-06-13 13:24:45
您可以为同一应用程序上传多个APK,只要它们针对不同的体系结构。我也在为我的应用做同样的事情。上面的警告可以忽略。
https://stackoverflow.com/questions/62356907
复制相似问题