-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Description
Steps to reproduce
plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
android {
namespace = "*****r"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
defaultConfig {
applicationId = "******"
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
multiDexEnabled = true
}
signingConfigs {
create("release") {
keyAlias = "****"
keyPassword = "****"
storeFile = file("****")
storePassword = "****"
}
// 移除debug签名配置的创建,使用默认的debug签名配置
create("debug") {
keyAlias = "****"
keyPassword = "****"
storeFile = file("****")
storePassword = "****"
}
}
buildTypes {
debug {
packaging {
jniLibs.keepDebugSymbols += "**/*.so"
}
}
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.getByName("release")
}
}
}
flutter {
source = "../.."
}
dependencies {
api("com.tencent.mm.opensdk:wechat-sdk-android:+")
implementation("androidx.multidex:multidex:2.0.1")
}
Actual results
Got dependencies!
32 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated
for more information.
Checking the license for package NDK (Side by side) 29.0.13113456 in /Users/dryao/Library/Android/sdk/licenses
License for package NDK (Side by side) 29.0.13113456 accepted.
Preparing "Install NDK (Side by side) 29.0.13113456 v.29.0.13113456 rc1".
"Install NDK (Side by side) 29.0.13113456 v.29.0.13113456 rc1" ready.
Installing NDK (Side by side) 29.0.13113456 in /Users/dryao/Library/Android/sdk/ndk/29.0.13113456
"Install NDK (Side by side) 29.0.13113456 v.29.0.13113456 rc1" complete.
"Install NDK (Side by side) 29.0.13113456 v.29.0.13113456 rc1" finished.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 4716 bytes (99.7% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Running Gradle task 'bundleRelease'... 109.3s
Release app bundle failed to strip debug symbols from native libraries.
Please run flutter doctor and ensure that the Android toolchain does not
report any issues.
Otherwise, file an issue at https://github.com/flutter/flutter/issues.
When i run "flutter build appbundle --release" this the issues,I have tried all the methods I could find, modified the build.gradle.kts file numerous times, and even used flutter create to set up a new project container. However, whenever it comes to this specific project, I simply cannot package it into an App Bundle. Strangely enough, generating APKs and iOS builds works perfectly fine, and even another project of mine packages into an App Bundle without any issues. Only this project is giving me trouble—I'm really at my wit's end.
Logs
Logs
└─[0] flutter build appbundle --release
Resolving dependencies...
Downloading packages...
audio_session 0.1.25 (0.2.2 available)
characters 1.4.0 (1.4.1 available)
fl_chart 0.70.2 (1.1.0 available)
flutter_blue_plus 1.35.5 (1.35.10 available)
flutter_blue_plus_android 4.0.5 (5.0.3 available)
flutter_blue_plus_darwin 4.0.1 (5.0.1 available)
flutter_blue_plus_linux 3.0.2 (5.0.0 available)
flutter_blue_plus_platform_interface 4.0.2 (5.0.0 available)
flutter_blue_plus_web 3.0.1 (5.0.1 available)
flutter_lints 5.0.0 (6.0.0 available)
flutter_plugin_android_lifecycle 2.0.29 (2.0.30 available)
flutter_slidable 3.1.2 (4.0.1 available)
image_picker 1.1.2 (1.2.0 available)
image_picker_android 0.8.12+23 (0.8.13+1 available)
intl 0.19.0 (0.20.2 available)
just_audio 0.9.46 (0.10.5 available)
lints 5.1.1 (6.0.0 available)
material_color_utilities 0.11.1 (0.13.0 available)
meta 1.16.0 (1.17.0 available)
mqtt_client 10.11.0 (10.11.1 available)
path_provider_android 2.2.17 (2.2.18 available)
permission_handler 11.4.0 (12.0.1 available)
permission_handler_android 12.1.0 (13.0.1 available)
pinput 5.0.1 (5.0.2 available)
scrollable_positioned_list 0.2.3 (0.3.8 available)
syncfusion_flutter_charts 29.2.11 (31.1.17 available)
syncfusion_flutter_core 29.2.11 (31.1.17 available)
table_calendar 3.1.3 (3.2.0 available)
tdesign_flutter 0.2.2 (0.2.4 available)
test_api 0.7.6 (0.7.7 available)
url_launcher_android 6.3.17 (6.3.18 available)
webview_flutter_android 4.10.0 (4.10.1 available)
Got dependencies!
32 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Checking the license for package NDK (Side by side) 29.0.13113456 in /Users/dryao/Library/Android/sdk/licenses
License for package NDK (Side by side) 29.0.13113456 accepted.
Preparing "Install NDK (Side by side) 29.0.13113456 v.29.0.13113456 rc1".
"Install NDK (Side by side) 29.0.13113456 v.29.0.13113456 rc1" ready.
Installing NDK (Side by side) 29.0.13113456 in /Users/dryao/Library/Android/sdk/ndk/29.0.13113456
"Install NDK (Side by side) 29.0.13113456 v.29.0.13113456 rc1" complete.
"Install NDK (Side by side) 29.0.13113456 v.29.0.13113456 rc1" finished.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 4716 bytes (99.7% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Running Gradle task 'bundleRelease'... 109.3s
Release app bundle failed to strip debug symbols from native libraries.
Please run flutter doctor and ensure that the Android toolchain does not
report any issues.
Otherwise, file an issue at https://github.com/flutter/flutter/issues.
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.3, on macOS 15.6.1 24G90 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.103.2)
[✓] Proxy Configuration
[✓] Connected device (3 available)
! Error: Browsing on the local area network for Dryao. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for DRyaoPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• No issues found!