این چرا برای من نساخت apk رو Created Flutter bootstrap project from…
- User
این چرا برای من نساخت apk رو Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.24.1 ✅
Customized app icons and splash images ✅
[10:07:45] Generated app icons ✅
[10:07:50] Generated splash screens ✅
[10:08:10] Packaged Python app ✅
[10:24:12] Resolving dependencies... Downloading packages... characters 1.3.0 (1.3.1 available) clock 1.1.1 (1.1.2 available) collection 1.18.0 (1.19.1 available) fl_chart 0.68.0 (0.69.0 available) flutter_launcher_icons 0.13.1 (0.14.1 available) flutter_lints 2.0.3 (5.0.0 available) http_parser 4.0.2 (4.1.1 available) js 0.6.7 (0.7.1 available) lints 2.1.1 (5.1.0 available) material_color_utilities 0.11.1 (0.12.0 available) meta 1.15.0 (1.16.0 available) ! package_info_plus 8.1.1 (overridden) path 1.9.0 (1.9.1 available) screen_retriever 0.1.9 (0.2.0 available) sensors_plus 4.0.2 (6.1.0 available) sensors_plus_platform_interface 1.2.0 (2.0.0 available) serious_python 0.7.1 (0.8.2 available) serious_python_android 0.7.1 (0.8.2 available) serious_python_darwin 0.7.1 (0.8.2 available) serious_python_linux 0.7.1 (0.8.2 available) serious_python_platform_interface 0.7.1 (0.8.2 available) serious_python_windows 0.7.1 (0.8.2 available) toml 0.15.0 (0.16.0 available) url_strategy 0.2.0 (discontinued) ! wakelock_plus 1.2.8 (overridden) ! web 1.1.0 (overridden) web_socket_channel 2.4.5 (3.0.1 available) window_manager 0.3.9 (0.4.3 available) Got dependencies! 1 package is discontinued. 25 packages have newer versions incompatible with dependency constraints. Tryflutter pub outdatedfor more information.Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... ۵۷۶٫۸s Retrying Gradle Build: #1, wait time: 100ms Running Gradle task 'assembleRelease'... Warning: Errors during XML parse: Warning: Additionally, the fallback loader failed to parse the XML. Warning: IO exception while downloading manifest: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake at java.base/sun.security.ssl.SSLSocketImpl.handleEOF(Unknown Source) at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source) at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openUrl(DownloadCache.java:245) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.downloadAndCache(DownloadCache.java:622) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openCachedUrl(DownloadCache.java:453) at com.android.sdklib.repository.legacy.LegacyDownloader.downloadAndStream(LegacyDownloader.java:82) at com.android.repository.impl.downloader.LocalFileAwareDownloader.downloadAndStream(LocalFileAwareDownloader.java:51) at com.android.repository.impl.manager.RemoteRepoLoaderImpl.lambda$fetchPackages$0(RemoteRepoLoaderImpl.java:138) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.io.EOFException: SSL peer shut down incorrectly at java.base/sun.security.ssl.SSLSocketInputRecord.read(Unknown Source) at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(Unknown Source) at java.base/sun.security.ssl.SSLSocketInputRecord.decode(Unknown Source) at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source) ... 18 more Checking the license for package NDK (Side by side) 25.1.8937393 in C:\Users\Administrator\AppData\Local\Android\Sdk\licenses License for package NDK (Side by side) 25.1.8937393 accepted. Preparing "Install NDK (Side by side) 25.1.8937393 v.25.1.8937393". "Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" ready. Installing NDK (Side by side) 25.1.8937393 in C:\Users\Administrator\AppData\Local\Android\Sdk\ndk\25.1.8937393 "Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" complete. "Install NDK (Side by side) 25.1.8937393 v.25.1.8937393" finished. Checking the license for package Android SDK Platform 31 in C:\Users\Administrator\AppData\Local\Android\Sdk\licenses License for package Android SDK Platform 31 accepted. Preparing "Install Android SDK Platform 31 (revision 1)". "Install Android SDK Platform 31 (revision 1)" ready. Installing Android SDK Platform 31 in C:\Users\Administrator\AppData\Local\Android\Sdk\platforms\android-31 "Install Android SDK Platform 31 (revision 1)" complete. "Install Android SDK Platform 31 (revision 1)" finished. Checking the license for package Android SDK Platform 33 in C:\Users\Administrator\AppData\Local\Android\Sdk\licenses License for package Android SDK Platform 33 accepted. Preparing "Install Android SDK Platform 33 (revision 3)". "Install Android SDK Platform 33 (revision 3)" ready. Installing Android SDK Platform 33 in C:\Users\Administrator\AppData\Local\Android\Sdk\platforms\android-33 "Install Android SDK Platform 33 (revision 3)" complete. "Install Android SDK Platform 33 (revision 3)" finished. Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1261080 bytes (23.3% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app. Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 257628 to 209160 bytes (18.8% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app. The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic data along with package dependencies, and crash reporting to send basic crash reports. This data is used to help improve the Dart platform, Flutter framework, and related tools. Telemetry is not sent on the very first run. To disable reporting of telemetry, run this terminal command: flutter --disable-analytics If you opt out of telemetry, an opt-out event will be sent, and then no further information will be sent. This data is collected in accordance with the Google Privacy Policy (https://policies.google.com/privacy). Please note that analytics reporting was already disabled, and will continue to be disabled. Running Gradle task 'assembleRelease'... ۳۸۱٫۳s The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic data along with package dependencies, and crash reporting to send basic crash reports. This data is used to help improve the Dart platform, Flutter framework, and related tools. Telemetry is not sent on the very first run. To disable reporting of telemetry, run this terminal command: flutter --disable-analytics If you opt out of telemetry, an opt-out event will be sent, and then no further information will be sent. This data is collected in accordance with the Google Privacy Policy (https://policies.google.com/privacy). Please note that analytics reporting was already disabled, and will continue to be disabled. FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * What went wrong: A problem occurred configuring project ':sensors_plus'. > Could not resolve all artifacts for configuration ':sensors_plus:classpath'. > Could not resolve com.google.protobuf:protobuf-java-util:3.19.3. Required by: project :sensors_plus > com.android.tools.build:gradle:8.2.0 > Could not resolve com.google.protobuf:protobuf-java-util:3.19.3. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.19.3/protobuf-java-util-3.19.3.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.19.3/protobuf-java-util-3.19.3.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 > Could not resolve com.google.protobuf:protobuf-java-util:3.19.3. Required by: project :sensors_plus > com.android.tools.build:gradle:8.2.0 > com.android.tools.build:bundletool:1.15.2 > Could not resolve com.google.protobuf:protobuf-java-util:3.19.3. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.19.3/protobuf-java-util-3.19.3.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.19.3/protobuf-java-util-3.19.3.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 ':sensors_plus' of type org.gradle.api.Project. > Could not get unknown property 'android' for project ':sensors_plus' 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@58f92b76 of type BuildFlowService.Parameters > A problem occurred configuring project ':sensors_plus'. > Could not resolve all artifacts for configuration ':sensors_plus:classpath'. > Could not resolve com.google.protobuf:protobuf-java-util:3.19.3. Required by: project :sensors_plus > com.android.tools.build:gradle:8.2.0 > Could not resolve com.google.protobuf:protobuf-java-util:3.19.3. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.19.3/protobuf-java-util-3.19.3.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.19.3/protobuf-java-util-3.19.3.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 > Could not resolve com.google.protobuf:protobuf-java-util:3.19.3. Required by: project :sensors_plus > com.android.tools.build:gradle:8.2.0 > com.android.tools.build:bundletool:1.15.2 > Could not resolve com.google.protobuf:protobuf-java-util:3.19.3. > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.19.3/protobuf-java-util-3.19.3.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java-util/3.19.3/protobuf-java-util-3.19.3.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 ':sensors_plus' of type org.gradle.api.Project. > Could not get unknown property 'android' for project ':sensors_plus' 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 9m 35s [!] Gradle threw an error while downloading artifacts from the network. warning: source value 8 is obsolete and will be removed in a future release warning: target value 8 is obsolete and will be removed in a future release warning: To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: source value 8 is obsolete and will be removed in a future release warning: target value 8 is obsolete and will be removed in a future release warning: To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings e: Daemon compilation failed: Could not connect to Kotlin compile daemon java.lang.RuntimeException: Could not connect to Kotlin compile daemon at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemon(GradleKotlinCompilerWork.kt:218) at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemonOrFallbackImpl(GradleKotlinCompilerWork.kt:175) at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.run(GradleKotlinCompilerWork.kt:135) at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction.execute(GradleCompilerRunnerWithWorkers.kt:73) at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62) at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73) at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:59) at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$0(DefaultWorkerExecutor.java:174) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:187) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.access$700(DefaultConditionalExecutionQueue.java:120) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner$1.run(DefaultConditionalExecutionQueue.java:162) at org.gradle.internal.Factories$1.create(Factories.java:31) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:264) at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:128) at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:133) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:157) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:126) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) e: Daemon compilation failed: Could not connect to Kotlin compile daemon java.lang.RuntimeException: Could not connect to Kotlin compile daemon at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemon(GradleKotlinCompilerWork.kt:218) at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemonOrFallbackImpl(GradleKotlinCompilerWork.kt:175) at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.run(GradleKotlinCompilerWork.kt:135) at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction.execute(GradleCompilerRunnerWithWorkers.kt:73) at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62) at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73) at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:59) at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$0(DefaultWorkerExecutor.java:174) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:187) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.access$700(DefaultConditionalExecutionQueue.java:120) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner$1.run(DefaultConditionalExecutionQueue.java:162) at org.gradle.internal.Factories$1.create(Factories.java:31) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:264) at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:128) at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:133) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:157) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:126) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':shared_preferences_android:compileReleaseKotlin'. > Could not resolve all files for configuration ':shared_preferences_android:releaseCompileClasspath'. > Failed to transform datastore-preferences-core-1.0.0.jar (androidx.datastore:datastore-preferences-core:1.0.0) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api, org.jetbrains.kotlin.localToProject=public, org.jetbrains.kotlin.platform.type=jvm}. > Could not download datastore-preferences-core-1.0.0.jar (androidx.datastore:datastore-preferences-core:1.0.0) > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/datastore/datastore-preferences-core/1.0.0/datastore-preferences-core-1.0.0.jar'. > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/datastore/datastore-preferences-core/1.0.0/datastore-preferences-core-1.0.0.jar'. > 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 * 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 6m 20s [!] Gradle threw an error while downloading artifacts from the network. Gradle task assembleRelease failed with exit code 1 - Assistant
مشکلاتی که از لاگ نشان داده شده است مربوط به چند موضوع مختلف هستند که بر ساخت فایل APK تأثیر گذاشتهاند:
-
نسخههای کتابخانهها: پیغامی در لاگ به شما میگوید که برخی از کتابخانهها نسخههای جدیدتری دارند که ممکن است با نسخههای فعلی شما سازگار نباشند. بهتر است با اجرای دستور
flutter pub outdatedبررسی کنید که کدام کتابخانهها نیاز به بهروزرسانی دارند. -
پروتکل TLS: برخی از درخواستها به نسخههای خاصی از TLS محدود شده است و ممکن است برخی از سرورها درخواست شما را رد کردهاند. این میتواند بخاطر نسخههای پشتیبانی نشده یا نادرست بودن تنظیمات TLS باشد. اطمینان حاصل کنید که گرادل و مابقی ابزارهای مورد نیاز به نسخههای TLS 1.2 یا 1.3 مجهز هستند.
-
- User
gradle کجاست؟
- Assistant
Gradle یک ابزار اتوماسیون ساخت پروژه است که معمولاً در پروژههای Java و Android استفاده میشود. برای پروژههای Flutter، Gradle به صورت زیرساختی در سیستمهای توسعه یکپارچه (IDE) مانند Android Studio تعبیه شده است و برای ساختن اپلیکیشنهای Android استفاده میشود.
-
مسیرهای معمول برای Gradle:
-
اگر به صورت مستقل Gradle را نصب کردهاید، میتوانید مسیر نصب آن را با اجرای دستور
gradle -vدر ترمینال یا خط فرمان پیدا کنید. این دستور اطلاعات مربوط به نسخه و مکان نصب Gradle را به شما نمایش میدهد. -
در پروژههای Android و Flutter که از IDE مانند Android Studio استفاده میکنند، Gradle معمولاً در داخل دایرکتوری پروژه در همین مسیر قرار دارد:
<پروژه شما>/ android/ gradlew gradlew.bat gradle/ wrapper/ gradle-wrapper.properties
-
-
- User
این چی میگ C:\flutter>flutter pub outdated Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project. The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic data along with package dependencies, and crash reporting to send basic crash reports. This data is used to help improve the Dart platform, Flutter framework, and related tools.
Telemetry is not sent on the very first run. To disable reporting of telemetry, run this terminal command:
flutter --disable-analyticsIf you opt out of telemetry, an opt-out event will be sent, and then no further information will be sent. This data is collected in accordance with the Google Privacy Policy (https://policies.google.com/privacy).
Please note that analytics reporting was already disabled, and will continue to be disabled.
- Assistant
پیغام خطای
No pubspec.yaml file foundنشان میدهد که دستورflutter pub outdatedرا در محلی اشتباه اجرا کردهاید. این دستور باید از داخل پوشهی اصلی پروژه Flutter شما (محلی که فایلpubspec.yamlقرار دارد) اجرا شود. این فایل شامل تنظیمات و وابستگیهای پروژه Flutter شما است و برای مدیریت بستهها و وابستگیها استفاده میشود.برای رفع این مشکل، این مراحل را دنبال کنید:
-
محل درست پروژه: به محلی بروید که پروژهی Flutter خود را ایجاد کردهاید. معمولاً این محلی است که فایلها و پوشههای مختلف پروژه مانند
lib،android،iosو به ویژهpubspec.yamlدر آن وجود دارند. -
اجرای دستور از ریشه پروژه:
- به پوشه ریشه پروژه بروید:
cd مسیر/پوشه/پروژه - سپس دستور
flutter pub outdatedرا اجرا کنید:flutter pub outdated
- به پوشه ریشه پروژه بروید:
-
: اطمینان حاصل کنید که فایل در محل مناسبی قرار دارد و تمامی ابزارهای مورد نیاز Flutter به درستی نصب و تنظیم شدهاند.
-
- User
معادل این دستور در ویندوز چیه؟ which flet
- Assistant
دستور
whichدر سیستمهای مبتنی بر Unix مانند لینوکس و macOS برای یافتن مسیر کامل اجرایی یک برنامه مورد استفاده قرار میگیرد. معادل آن در ویندوز، استفاده از دستورwhereاست.اگر میخواهید مسیر کامل اجرایی برنامه "flet" را در ویندوز پیدا کنید، میتوانید از دستور زیر استفاده کنید:
where fletاین دستور مسیر کامل هر فایلی که با نام "flet" در مسیر سیستم (PATH) شما قرار دارد را برمیگرداند.
توجه داشته باشید که برای اجرای این دستور لازم است که خط فرمان (Command Prompt) را باز کنید. همچنین مطمئن شوید که "flet" در مسیر سیستم شما موجود است وگرنه دستوری برای آن پیدا نخواهد شد.