Open patt812 opened 1 month ago
Hi.
Would you please kindly provide your Flutter version and grade version? I ran CI on every build but I did not have such an issue. I guess you are using a version that is not covered by my CI jobs yet.
Thanks!
Sent from Gmail Mobile
On Tue, Oct 15, 2024 at 7:33 PM patt812 @.***> wrote:
Issue
By following pub.dev https://pub.dev/packages/flutter_open_chinese_convert/install, I added the flutter_open_chinese_convert following instruction:
flutter pub add flutter_open_chinese_convert
The package was successfully added, but when I tried to run the project using flutter run I get:
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':flutter_open_chinese_convert'.
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
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 https://help.gradle.org.
BUILD FAILED in 390ms
Additional context
The issue seems to be related to the Android build system and the requirement to specify a namespace in the build.gradle file. The provided link suggests that the namespace attribute should be added to the build file, but the current version of this package does not seem to include it.
Could you please update the package to include the necessary namespace in the build.gradle file?
Thank you!
— Reply to this email directly, view it on GitHub https://github.com/zonble/flutter_open_chinese_convert/issues/17, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAM6EZUK2EC7HVU72JQZVDZ3T4RRAVCNFSM6AAAAABP6535YWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4DQNBYHE2TOMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thank you, too!
% flutter --version
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (5 weeks ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3
Gradle:
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
(optional info) Java:
openjdk 17.0.12 2024-07-16
OpenJDK Runtime Environment Temurin-17.0.12+7 (build 17.0.12+7)
OpenJDK 64-Bit Server VM Temurin-17.0.12+7 (build 17.0.12+7, mixed mode)
Issue
By following pub.dev, I added the
flutter_open_chinese_convert
following instruction:The package was successfully added, but when I tried to run the project using
flutter run
I get:Additional context
The issue seems to be related to the Android build system and the requirement to specify a namespace in the build.gradle file. The provided link suggests that the namespace attribute should be added to the build file, but the current version of this package does not seem to include it.
Could you please update the package to include the necessary namespace in the build.gradle file?
Thank you!