not packaging apk
#3575
-
Questionits not packaging to apk why? flet version==0.23.1 ,flutter version=3.22.2 Code sampleNo response Error message[18:13:59] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.23.1 ✅
Customized app icons and splash images ✅
[18:14:20] Generated app icons ✅
[18:14:25] Generated splash screens ✅
[18:16:19] Packaged Python app ✅
[18:16:42] Resolving dependencies...
collection 1.18.0 (1.19.0 available)
fl_chart 0.65.0 (0.68.0 available)
flutter_lints 2.0.3 (4.0.0 available)
flutter_markdown 0.6.23 (0.7.2+1 available)
flutter_plugin_android_lifecycle 2.0.19 (2.0.20 available)
http_parser 4.0.2 (4.1.0 available)
intl 0.18.1 (0.19.0 available)
js 0.6.7 (0.7.1 available)
lints 2.1.1 (4.0.0 available)
material_color_utilities 0.8.0 (0.12.0 available)
meta 1.11.0 (1.15.0 available)
! package_info_plus 8.0.0 (overridden)
path_provider_android 2.2.4 (2.2.6 available)
sensors_plus 4.0.2 (5.0.1 available)
shared_preferences_android 2.2.2 (2.2.3 available)
url_launcher_android 6.3.2 (6.3.3 available)
! wakelock_plus 1.2.5 (overridden)
web_socket_channel 2.4.5 (3.0.0 available)
win32 5.5.0 (5.5.1 available)
Got dependencies!
17 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'...
error building apk giving this error FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':flutter_native_splash'.
> Could not resolve all artifacts for configuration ':flutter_native_splash:classpath'.
> Could not resolve com.android.tools.build:gradle:7.1.2.
Required by:
project :flutter_native_splash
> Could not resolve com.android.tools.build:gradle:7.1.2.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.1.2/gradle-7.1.2.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.1.2/gradle-7.1.2.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other
protocols to be used. For more on this, please refer to https://docs.gradle.org/8.7/userguide/build_environment.html#sec:gradle_system_properties in the Gradle
documentation.
> Remote host terminated the handshake
> Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project.
> Could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project.
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@4a764d55 of type BuildFlowService.Parameters
> A problem occurred configuring project ':flutter_native_splash'.
> Could not resolve all artifacts for configuration ':flutter_native_splash:classpath'.
> Could not resolve com.android.tools.build:gradle:7.1.2.
Required by:
project :flutter_native_splash
> Could not resolve com.android.tools.build:gradle:7.1.2.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.1.2/gradle-7.1.2.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.1.2/gradle-7.1.2.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other
protocols to be used. For more on this, please refer to https://docs.gradle.org/8.7/userguide/build_environment.html#sec:gradle_system_properties in the Gradle
documentation.
> Remote host terminated the handshake
> Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project.
> Could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project.
* 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 45m 5s
[!] Gradle threw an error while downloading artifacts from the network.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':flutter_native_splash'.
> Could not resolve all artifacts for configuration ':flutter_native_splash:classpath'.
> Could not resolve com.android.tools.build:gradle:7.1.2.
Required by:
project :flutter_native_splash
> Could not resolve com.android.tools.build:gradle:7.1.2.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.1.2/gradle-7.1.2.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.1.2/gradle-7.1.2.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other
protocols to be used. For more on this, please refer to https://docs.gradle.org/8.7/userguide/build_environment.html#sec:gradle_system_properties in the Gradle
documentation.
> Remote host terminated the handshake
> Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project.
> Could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project.
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@2b2c5a85 of type BuildFlowService.Parameters
> A problem occurred configuring project ':flutter_native_splash'.
> Could not resolve all artifacts for configuration ':flutter_native_splash:classpath'.
> Could not resolve com.android.tools.build:gradle:7.1.2.
Required by:
project :flutter_native_splash
> Could not resolve com.android.tools.build:gradle:7.1.2.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.1.2/gradle-7.1.2.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.1.2/gradle-7.1.2.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other
protocols to be used. For more on this, please refer to https://docs.gradle.org/8.7/userguide/build_environment.html#sec:gradle_system_properties in the Gradle
documentation.
> Remote host terminated the handshake
> Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project.
> Could not get unknown property 'android' for project ':flutter_native_splash' of type org.gradle.api.Project.
* 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 29s
[!] Gradle threw an error while downloading artifacts from the network.
Gradle task assembleRelease failed with exit code 1
[18:50:44] Error building Flet app - see the log of failed command above. ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
DRM-AI
Jul 6, 2024
Replies: 2 comments 2 replies
-
Can you share the output of |
Beta Was this translation helpful? Give feedback.
2 replies
-
update your flutter installation to gradle 7.3 and use JDK 17 https://docs.gradle.org/current/userguide/compatibility.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i use windows 10
my flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.19045.4412], locale en-NG)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
X cmdline-tools component is missing
Run
path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run
flutter doctor --android-licenses
to accept the SDK licenses.See https://flutter.dev/docs/get-started/install/windows#android-setup for more de…