admin管理员组文章数量:1279182
Hey guys I ran Flutter build apk
and I get below error I am not able to deploy my very own Launch Pad App, I tested it on web it works smooth including sound play and everything i don't know if anything trying on android will work or not i doubt if it gets build and be tested on android sound might not play wonder if it requires any permission for it as well.
any suggestions?
flutter build apk
Resolving dependencies... (7.5s)
Downloading packages... (1.8s)
> async 2.12.0 (was 2.11.0) (2.13.0 available)
> boolean_selector 2.1.2 (was 2.1.1)
> characters 1.4.0 (was 1.3.0)
> clock 1.1.2 (was 1.1.1)
> collection 1.19.1 (was 1.19.0)
> fake_async 1.3.2 (was 1.3.1) (1.3.3 available)
> leak_tracker 10.0.8 (was 10.0.7) (10.0.9 available)
> leak_tracker_flutter_testing 3.0.9 (was 3.0.8)
> matcher 0.12.17 (was 0.12.16+1)
material_color_utilities 0.11.1 (0.12.0 available)
> meta 1.16.0 (was 1.15.0)
> path 1.9.1 (was 1.9.0)
petitparser 6.0.2 (6.1.0 available)
> source_span 1.10.1 (was 1.10.0)
> stack_trace 1.12.1 (was 1.12.0)
> stream_channel 2.1.4 (was 2.1.2)
> string_scanner 1.4.1 (was 1.3.0)
> term_glyph 1.2.2 (was 1.2.1)
> test_api 0.7.4 (was 0.7.3)
> vm_service 14.3.1 (was 14.3.0) (15.0.0 available)
Changed 18 dependencies!
6 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
Checking the license for package NDK (Side by side) 26.3.11579264 in C:\Users\ElMagnifico\AppData\Local\Android\sdk\licenses
License for package NDK (Side by side) 26.3.11579264 accepted.
Preparing "Install NDK (Side by side) 26.3.11579264 v.26.3.11579264".
"Install NDK (Side by side) 26.3.11579264 v.26.3.11579264" ready.
Installing NDK (Side by side) 26.3.11579264 in C:\Users\User\AppData\Local\Android\sdk\ndk\26.3.11579264
"Install NDK (Side by side) 26.3.11579264 v.26.3.11579264" complete.
"Install NDK (Side by side) 26.3.11579264 v.26.3.11579264" finished.
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':path_provider_android:compileReleaseJavaWithJavac'.
> Could not resolve all files for configuration ':path_provider_android:androidJdkImage'.
> Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, .gradle.libraryelements=jar, .gradle.usage=java-runtime}.
> Execution failed for JdkImageTransform: C:\Users\User\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar.
> Error while executing process C:\Program Files\Android\Android Studio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\User\.gradle\cac
hes\transforms-3\68feb352a6e1af0c5abbc1c1dad15798\transformed\output\temp\jmod --add-modules java.base --output C:\Users\User\.gradle\caches\transforms-3\68feb352a6e1af0c5abbc1c1dad15798\transformed\output\jdkImage --disable-plugin system-modules}
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at .
│ in the 'plugins' closure (by the number following "com.android.application"). │
│ Alternatively, if your project was created with an older version of the templates, it is likely │
│ in the buildscript.dependencies closure of the top-level build.gradle: │
│ C:\Users\User\Documents\workspace\launchpad\android\build.gradle, │
│ as the number following "com.android.tools.build:gradle:". │
│ │
│ For more information, see: │
│ │
│ │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1
- Upgraded Flutter SDK, Android Studio, Command-Line Tools
- Tried Deploying Android APK or Bundle
- instead of build working got Error
After Running Chang flutter pub outdated:
> flutter pub outdated
Showing outdated packages.
direct dependencies:
all update dev_dependencies: all update transitive
dependencies: async: *2.12.0-*2.12.0-*2.12.0-2.13.0
material_color_utilities: *0.11.1-*0.11.1-*0.11.1-0.12.0
petitparser: *6.0.2-6.1.0-6.1.0-6.1.0 transitive
dev_dependencies: fake_async: *1.3.2-*1.3.2-*1.3.2-1.3.3
leak_tracker: *10.0.8-*10.0.8-*10.0.8-10.0.9
vm_service: *14.3.1-*14.3.1-*14.3.1-15.0.0 1
upgradable dependency is locked (in pubspec.lock) to an older version.
To update it, use flutter pub upgrade.
all dependencies are up-to-date.
After running flutter pub upgrade I get below:
> flutter pub upgrade
async 2.12.0 (2.13.0 available)
fake_async 1.3.2 (1.3.3 available)
leak_tracker 10.0.8 (10.0.9 available)
material_color_utilities 0.11.1 (0.12.0 available)
petitparser 6.1.0 (was 6.0.2)
vm_service 14.3.1 (15.0.0 available)
Changed 1 dependency! 5 packages have newer versions incompatible with dependency constraints.
本文标签: Deploy APK Flutter Android StudioStack Overflow
版权声明:本文标题:Deploy APK Flutter Android Studio - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741239870a2363761.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论