我可以一次上传 3 个 APK 到 Play 商店吗?
Can I Upload 3 APKs At Once to Play Store?
我的应用程序使用 Firebase 和 Flutter(auth,cloud_firestore,google_sign_in...)。
当我使用此命令将其通过 App Bundle 上传到 Play Store 时:
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 商店中的同一个应用程序?
它也给了我一个警告:
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.6
app/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
}
}
这只是一个警告,让您知道您的 APK 大小过大,这不是阻止错误。如果您无法发布您的应用,这不是原因:确保您已填写所有商品详情(带图片)、勾选所有方框、填写隐私政策等。
您可以为同一应用上传多个 APK,只要它们针对不同的架构即可。我正在为我的应用程序做同样的事情。上面的警告可以忽略。
我不推荐这个,3 次罢工,你就出局了。如果您犯了一个错误,无意中违反了条款和条件,并且您因此而被下架了一个应用程序,那么您可以更正问题并重新提交,但是如果您对所有三个应用程序都有同样的问题,那么它们将全部被下架,您的帐户将被禁止。这很容易做到,所以我建议一次只上传一个,每次上传之间间隔一周。当我无意中将 link 留在我自己的应用程序存储库中时,我遇到了这种情况,它甚至不可见 link,但外部 links 当时违反了条款和条件可能仍然是。他们不会和你说话,你也没有办法,所以要非常小心。
我的应用程序使用 Firebase 和 Flutter(auth,cloud_firestore,google_sign_in...)。
当我使用此命令将其通过 App Bundle 上传到 Play Store 时:
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 商店中的同一个应用程序?
它也给了我一个警告:
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.6
app/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
}
}
这只是一个警告,让您知道您的 APK 大小过大,这不是阻止错误。如果您无法发布您的应用,这不是原因:确保您已填写所有商品详情(带图片)、勾选所有方框、填写隐私政策等。
您可以为同一应用上传多个 APK,只要它们针对不同的架构即可。我正在为我的应用程序做同样的事情。上面的警告可以忽略。
我不推荐这个,3 次罢工,你就出局了。如果您犯了一个错误,无意中违反了条款和条件,并且您因此而被下架了一个应用程序,那么您可以更正问题并重新提交,但是如果您对所有三个应用程序都有同样的问题,那么它们将全部被下架,您的帐户将被禁止。这很容易做到,所以我建议一次只上传一个,每次上传之间间隔一周。当我无意中将 link 留在我自己的应用程序存储库中时,我遇到了这种情况,它甚至不可见 link,但外部 links 当时违反了条款和条件可能仍然是。他们不会和你说话,你也没有办法,所以要非常小心。