Closed ghost closed 1 year ago
@AkT-01 Can you please share the complete output of flutter run -v
? Also, please provide the output of flutter doctor -v
as well. Thanks!
`[ +163 ms] executing: [C:\flutter\flutter_windows_3.3.10-stable\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +159 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] 135454af32477f815a7525073027a3ff9eff1bfd
[ +2 ms] executing: [C:\flutter\flutter_windows_3.3.10-stable\flutter/] git tag --points-at 135454af32477f815a7525073027a3ff9eff1bfd
[ +238 ms] Exit code 0 from: git tag --points-at 135454af32477f815a7525073027a3ff9eff1bfd
[ ] 3.3.10
[ +128 ms] executing: [C:\flutter\flutter_windows_3.3.10-stable\flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[ +67 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[ +2 ms] origin/stable
[ +1 ms] executing: [C:\flutter\flutter_windows_3.3.10-stable\flutter/] git ls-remote --get-url origin
[ +73 ms] Exit code 0 from: git ls-remote --get-url origin
[ +2 ms] https://github.com/flutter/flutter.git
[ +639 ms] executing: [C:\flutter\flutter_windows_3.3.10-stable\flutter/] git rev-parse --abbrev-ref HEAD
[ +93 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] stable
[ +236 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +59 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +11 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +3 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +174 ms] executing: C:\commandlinetools-win-9477386_latest\cmdline-tools\platform-tools\adb.exe devices -l
[ +135 ms] List of devices attached
LMX210c6cb3c2a device product:cv109_lao_com model:LM_X210 device:cv109 transport_id:1
[ +25 ms] C:\commandlinetools-win-9477386_latest\cmdline-tools\platform-tools\adb.exe -s LMX210c6cb3c2a shell getprop
[ +562 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +82 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +787 ms] Skipping pub get: version match.
[ +514 ms] Found plugin cloud_firestore at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-4.4.1\
[ +313 ms] Found plugin cloud_firestore_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore_web-3.3.1\
[ +254 ms] Found plugin firebase_auth at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-4.2.6\
[ +315 ms] Found plugin firebase_auth_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth_web-5.2.5\
[ +41 ms] Found plugin firebase_core at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-2.6.0\
[ +264 ms] Found plugin firebase_core_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-2.2.0\
[ +99 ms] Found plugin firebase_storage at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage-11.0.11\
[ +431 ms] Found plugin firebase_storage_web at
C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage_web-3.3.20\
[+3403 ms] Found plugin cloud_firestore at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-4.4.1\
[ +19 ms] Found plugin cloud_firestore_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore_web-3.3.1\
[ +13 ms] Found plugin firebase_auth at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-4.2.6\
[ +15 ms] Found plugin firebase_auth_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth_web-5.2.5\
[ +4 ms] Found plugin firebase_core at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-2.6.0\
[ +6 ms] Found plugin firebase_core_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-2.2.0\
[ +5 ms] Found plugin firebase_storage at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage-11.0.11\
[ +14 ms] Found plugin firebase_storage_web at
C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage_web-3.3.20\
[ +128 ms] Found plugin cloud_firestore at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-4.4.1\
[ +8 ms] Found plugin cloud_firestore_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore_web-3.3.1\
[ +11 ms] Found plugin firebase_auth at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-4.2.6\
[ +57 ms] Found plugin firebase_auth_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth_web-5.2.5\
[ +8 ms] Found plugin firebase_core at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-2.6.0\
[ +16 ms] Found plugin firebase_core_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-2.2.0\
[ +33 ms] Found plugin firebase_storage at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage-11.0.11\
[ +13 ms] Found plugin firebase_storage_web at
C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage_web-3.3.20\
[+1341 ms] Generating C:\Users\shemiz\Downloads\flutter projects\whatsapp_ui\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +366 ms] ro.hardware = cv109
[ +1 ms] ro.build.characteristics = default
[ +85 ms] Initializing file store
[ +80 ms] Skipping target: gen_localizations
[ +26 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
C:\Users\shemiz\Downloads\flutter projects\whatsapp_ui\.dart_tool\package_config_subset}
[ +34 ms] Found plugin cloud_firestore at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-4.4.1\
[ +4 ms] Found plugin cloud_firestore_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore_web-3.3.1\
[ +8 ms] Found plugin firebase_auth at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-4.2.6\
[ +6 ms] Found plugin firebase_auth_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth_web-5.2.5\
[ +7 ms] Found plugin firebase_core at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-2.6.0\
[ +3 ms] Found plugin firebase_core_web at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-2.2.0\
[ +2 ms] Found plugin firebase_storage at C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage-11.0.11\
[ +6 ms] Found plugin firebase_storage_web at
C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage_web-3.3.20\
[ +33 ms] gen_dart_plugin_registrant: Complete
[ +9 ms] Skipping target: _composite
[ +5 ms] complete
[ +14 ms] Launching lib\main.dart on LM X210 in debug mode...
[ +16 ms] C:\flutter\flutter_windows_3.3.10-stable\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\flutter\flutter_windows_3.3.10-stable\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root
C:\flutter\flutter_windows_3.3.10-stable\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill
C:\Users\shemiz\AppData\Local\Temp\flutter_tools.bc93beb1\flutter_tool.65a21810\app.dill --packages C:\Users\shemiz\Downloads\flutter
projects\whatsapp_ui\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build\c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --verbosity=error
--enable-experiment=alternative-invalidation-strategy
[ +92 ms] executing: C:\commandlinetools-win-9477386_latest\cmdline-tools\platform-tools\adb.exe -s LMX210c6cb3c2a shell -x logcat -v time -t 1
[ +105 ms] <- compile package:whatsapp_ui/main.dart
[ +325 ms] --------- beginning of main
02-19 10:27:38.686 D/CompatibilityInfo( 2773): applicationScale - 1.0
[ +19 ms] executing: C:\commandlinetools-win-9477386_latest\cmdline-tools\platform-tools\adb.exe version
[ +35 ms] Android Debug Bridge version 1.0.41
Version 34.0.0-9570255
Installed as C:\commandlinetools-win-9477386_latest\cmdline-tools\platform-tools\adb.exe
[ +4 ms] executing: C:\commandlinetools-win-9477386_latest\cmdline-tools\platform-tools\adb.exe start-server
[ +57 ms] Building APK
[ +28 ms] Running Gradle task 'assembleDebug'...
[ +416 ms] Using gradle from C:\Users\shemiz\Downloads\flutter projects\whatsapp_ui\android\gradlew.bat.
[ +93 ms] executing: [C:\Users\shemiz\Downloads\flutter projects\whatsapp_ui\android/] C:\Users\shemiz\Downloads\flutter
projects\whatsapp_ui\android\gradlew.bat --full-stacktrace --info -Pverbose=true -Ptarget-platform=android-arm -Ptarget=C:\Users\shemiz\Downloads\flutter
projects\whatsapp_ui\lib\main.dart -Pbase-application-name=android.app.Application -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==
-Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+56639 ms] Initialized native services in: C:\Users\shemiz\.gradle\native
[ +298 ms] Initialized jansi services in: C:\Users\shemiz\.gradle\native
[+27946 ms] Found daemon DaemonInfo{pid=772, address=[d0b351b2-3d9e-4e4c-9bdc-0f57089d93ac port:59466, addresses:[/127.0.0.1]], state=Idle,
lastBusy=1676661389275, context=DefaultDaemonContext[uid=fc49d304-b530-4dcd-ab31-cc7146ef6a8b,javaHome=C:\Program
Files\Java\jdk1.8.0_202,daemonRegistryDir=C:\Users\shemiz\.gradle\daemon,pid=772,idleTimeout=10800000,priority=NORMAL,daemonOpts=-Xmx1536M,-Dfile.encoding=win
dows-1252,-Duser.country=US,-Duser.language=en,-Duser.variant]} however its context does not match the desired criteria.
[ +8 ms] Java home is different.
[ +3 ms] Wanted: DefaultDaemonContext[uid=null,javaHome=C:\Program
Files\Java\jdk-16.0.2,daemonRegistryDir=C:\Users\shemiz\.gradle\daemon,pid=6008,idleTimeout=null,priority=NORMAL,daemonOpts=--add-opens,java.base/java.util=AL
L-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.base/java.util=ALL-UNNAMED,--add-ope
ns,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.base/java.nio.charset=ALL-UNNAMED,--add-opens,ja
va.base/java.net=ALL-UNNAMED,--add-opens,java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx1536M,-Dfile.encoding=windows-1252,-Duser.country=US,-Duser.lan
guage=en,-Duser.variant]
[ +21 ms] Actual: DefaultDaemonContext[uid=fc49d304-b530-4dcd-ab31-cc7146ef6a8b,javaHome=C:\Program
Files\Java\jdk1.8.0_202,daemonRegistryDir=C:\Users\shemiz\.gradle\daemon,pid=772,idleTimeout=10800000,priority=NORMAL,daemonOpts=-Xmx1536M,-Dfile.encoding=win
dows-1252,-Duser.country=US,-Duser.language=en,-Duser.variant]
[ +22 ms] Looking for a different daemon...
[+1143 ms] Removing 2 daemon stop events from registry
[ +101 ms] Starting a Gradle Daemon, 3 busy and 1 incompatible Daemons could not be reused, use --status for details
[+2199 ms] Starting process 'Gradle build daemon'. Working directory: C:\Users\shemiz\.gradle\daemon\7.2 Command: C:\Program
Files\Java\jdk-16.0.2\bin\java.exe --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens
java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens
java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens
java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx1536M -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp
C:\Users\shemiz\.gradle\wrapper\dists\gradle-7.2-all\260hg96vuh6ex27h9vo47iv4d\gradle-7.2\lib\gradle-launcher-7.2.jar
org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.2
[ +500 ms] Successfully started process 'Gradle build daemon'
[+28316 ms] An attempt to start the daemon took 30.457 secs.
[ +910 ms] E/AndroidRuntime(18928): FATAL EXCEPTION: main
[ +1 ms] E/AndroidRuntime(18928): Process: com.google.android.videos, PID: 18928
[ +1 ms] E/AndroidRuntime(18928): java.lang.IllegalArgumentException: There is no GcmTaskService component registered within this package. Have you extended
GcmTaskService correctly?
[ +1 ms] E/AndroidRuntime(18928): at com.google.android.gms.common.internal.zzac.zzb(Unknown Source)
[ +1 ms] E/AndroidRuntime(18928): at com.google.android.gms.gcm.GcmNetworkManager.zzeu(Unknown Source)
[ +1 ms] E/AndroidRuntime(18928): at com.google.android.gms.gcm.GcmNetworkManager.schedule(Unknown Source)
[ +1 ms] E/AndroidRuntime(18928): at com.google.android.videos.service.drm.RefreshLicenseTaskService.forceLicenseRefreshNow(SourceFile:34)
[ ] E/AndroidRuntime(18928): at com.google.android.videos.service.drm.LicenseRefresher.refreshLicenses(SourceFile:31)
[ +1 ms] E/AndroidRuntime(18928): at com.google.android.videos.service.pinning.PinBroadcastReceiver.startTransferServiceToResumeDownloads(SourceFile:28)
[ +5 ms] E/AndroidRuntime(18928): at com.google.android.videos.VideosGlobals.postStartup(SourceFile:207)
[ +1 ms] E/AndroidRuntime(18928): at com.google.android.videos.VideosGlobals.bridge$lambda$0$VideosGlobals(SourceFile)
[ +1 ms] E/AndroidRuntime(18928): at com.google.android.videos.VideosGlobals$$Lambda$8.run(Unknown Source)
[ ] E/AndroidRuntime(18928): at android.os.Handler.handleCallback(Handler.java:751)
[ ] E/AndroidRuntime(18928): at android.os.Handler.dispatchMessage(Handler.java:95)
[ +1 ms] E/AndroidRuntime(18928): at android.os.Looper.loop(Looper.java:154)
[ +1 ms] E/AndroidRuntime(18928): at android.app.ActivityThread.main(ActivityThread.java:6351)
[ +1 ms] E/AndroidRuntime(18928): at java.lang.reflect.Method.invoke(Native Method)
[ ] E/AndroidRuntime(18928): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:896)
[ ] E/AndroidRuntime(18928): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:786)
[+9147 ms] The client will now receive all logging from the daemon (pid: 5360). The daemon log file: C:\Users\shemiz\.gradle\daemon\7.2\daemon-5360.out.log
[ +1 ms] Starting build in new daemon [memory: 1.5 GiB]
[+5699 ms] Using 4 worker leases.
[+24400 ms] Watching the file system is configured to be enabled if available
[ +1 ms] File system watching is inactive
[+27797 ms] Starting Build
[+7906 ms] Settings evaluated using settings file 'C:\Users\shemiz\Downloads\flutter projects\whatsapp_ui\android\settings.gradle'.
[+2892 ms] Projects loaded. Root project using build file 'C:\Users\shemiz\Downloads\flutter projects\whatsapp_ui\android\build.gradle'.
[ +1 ms] Included projects: [root project 'android', project ':app', project ':cloud_firestore', project ':firebase_auth', project ':firebase_core', project
':firebase_storage']
[+5402 ms] > Configure project :
[ +2 ms] Evaluating root project 'android' using build file 'C:\Users\shemiz\Downloads\flutter projects\whatsapp_ui\android\build.gradle'.
[+71994 ms] > Configure project :app
[ ] Evaluating project ':app' using build file 'C:\Users\shemiz\Downloads\flutter projects\whatsapp_ui\android\app\build.gradle'.
[+21198 ms] Using Kotlin Gradle Plugin gradle70 variant
[+34499 ms] Parsed shrinker version: 3.1.66
[+8400 ms] > Configure project :cloud_firestore
[ +1 ms] Evaluating project ':cloud_firestore' using build file
'C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-4.4.1\android\build.gradle'.
[+10698 ms] > Configure project :firebase_auth
[ +1 ms] Evaluating project ':firebase_auth' using build file
'C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-4.2.6\android\build.gradle'.
[+7398 ms] > Configure project :firebase_core
[ ] Evaluating project ':firebase_core' using build file
'C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-2.6.0\android\build.gradle'.
[+1898 ms] > Configure project :firebase_storage
[ +1 ms] Evaluating project ':firebase_storage' using build file
'C:\flutter\flutter_windows_3.3.10-stable\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage-11.0.11\android\build.gradle'.
[ +1 ms] All projects evaluated.
[+1797 ms] Selected primary task 'assembleDebug' from project :
[+15200 ms] Parsing legacy package: C:\commandlinetools-win-9477386_latest\cmdline-tools
[+1099 ms] Parsing legacy package: C:\commandlinetools-win-9477386_latest\cmdline-tools
[ +500 ms] Parsing legacy package: C:\commandlinetools-win-9477386_latest\cmdline-tools
[+15000 ms] Checking the license for package Android SDK Platform-Tools in C:\commandlinetools-win-9477386_latest\cmdline-tools\licenses
[+3699 ms] License for package Android SDK Platform-Tools accepted.
[+1000 ms] Preparing "Install Android SDK Platform-Tools (revision: 34.0.0)".
[ +900 ms] Warning: Package "com.android.repository.impl.generated.v2.RemotePackage@5f80ebe9" (platform-tools) should be installed in
[ +1 ms] "C:\commandlinetools-win-9477386_latest\cmdline-tools\platform-tools" but
[ +20 ms] it already exists.
[ +1 ms] Installing in "C:\commandlinetools-win-9477386_latest\cmdline-tools\platform-tools-4" instead.
[+47475 ms] "Install Android SDK Platform-Tools (revision: 34.0.0)" ready.
[ +1 ms] Installing Android SDK Platform-Tools in C:\commandlinetools-win-9477386_latest\cmdline-tools\platform-tools-4
[ +98 ms] "Install Android SDK Platform-Tools (revision: 34.0.0)" complete.
[+9100 ms] "Install Android SDK Platform-Tools (revision: 34.0.0)" finished.
[ ] Checking the license for package SDK Patch Applier v4 in C:\commandlinetools-win-9477386_latest\cmdline-tools\licenses
[ ] License for package SDK Patch Applier v4 accepted.
[ ] Preparing "Install SDK Patch Applier v4 (revision: 1)".
[ +105 ms] Warning: Package "com.android.repository.impl.generated.v2.RemotePackage@b2d2115" (patcher;v4) should be installed in
[ +1 ms] "C:\commandlinetools-win-9477386_latest\cmdline-tools\patcher\v4" but
[ ] it already exists.
[ ] Installing in "C:\commandlinetools-win-9477386_latest\cmdline-tools\patcher\v4-5" instead.
[+20388 ms] "Install SDK Patch Applier v4 (revision: 1)" ready.
[ +1 ms] Installing SDK Patch Applier v4 in C:\commandlinetools-win-9477386_latest\cmdline-tools\patcher\v4-5
[ ] "Install SDK Patch Applier v4 (revision: 1)" complete.
[ ] "Install SDK Patch Applier v4 (revision: 1)" finished.
[ ] Checking the license for package Android Emulator in C:\commandlinetools-win-9477386_latest\cmdline-tools\licenses
[ ] License for package Android Emulator accepted.
[ ] Preparing "Install Android Emulator (revision: 32.1.11)".`
Having a similar issue. When you create a new app and run it for first time this process starts and installs everything again.Here is output from flutter run -v
@TheTechGuyDuval Did you find any solution?
@AkT-01 Nope still installing everything for every new project
Can you please share the project_dir/android/app/build.gradle
file content?
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 31
ndkVersion flutter.ndkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.whatsapp_ui"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 19
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
}
buildTypes {
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.debug
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
it's even worse than i thought, anytime i add a new plugin and need to run it installs sdk tools over again
I have stopped using flutter untill I finds a good way to setup my flutter environment without android studio and not get this kind of errors.
If anyone could help I would be very great...
The main thing is that I want to install everything in my D drive. I want to keep my C drive empty... I don't know what's wrong with me it has sooooo much space but my brain says that keep it empty π. So if anyone could help me install flutter without android studio
, gradel
, .android
folder in which avd
lives, etc. all in my D drive...
I am telling all this: 1) I need help for the thing i described 2) I would not be able to share any errors / files related to issue i created... (as I have stopped using flutter for now)
Please provide the output of flutter doctor -v
as well. It seems something goes wrong with your Android SDK setup. Please check this SO answer if it works for you.
I have stopped using flutter untill I finds a good way to setup my flutter environment without android studio and not get this kind of errors.
If anyone could help I would be very great...
The main thing is that I want to install everything in my D drive. I want to keep my C drive empty... I don't know what's wrong with me it has sooooo much space but my brain says that keep it empty π. So if anyone could help me install
flutter without android studio
,gradel
,.android
folder in whichavd
lives, etc. all in my D drive...I am telling all this:
- I need help for the thing i described
- I would not be able to share any errors / files related to issue i created... (as I have stopped using flutter for now)
did you get the solution? I have same problem π’
Doctor summary (to see all details, run flutter doctor -v):
[β] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 6.1.7601], locale en-US)
[β] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[β] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[!] Android Studio (not installed)
[β] VS Code (version 1.70.3)
[β] Connected device (3 available)
[β] HTTP Host Availability
! Doctor found issues in 2 categories.
Here is output for flutter doctor. I have a new theory. I'm thinking maybe the overall problem comes from the flutter stable version i downloaded. @Sahho-Knight @akt-01 What flutter stable version are you guys using? i'm on flutter_windows_3.3.10-stable
Doctor summary (to see all details, run flutter doctor -v): [β] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 6.1.7601], locale en-US) [β] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [β] Chrome - develop for the web [X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [!] Android Studio (not installed) [β] VS Code (version 1.70.3) [β] Connected device (3 available) [β] HTTP Host Availability ! Doctor found issues in 2 categories.
Here is output for flutter doctor. I have a new theory. I'm thinking maybe the overall problem comes from the flutter stable version i downloaded. @Sahho-Knight @akt-01 What flutter stable version are you guys using? i'm on flutter_windows_3.3.10-stable
Flutter_windows_3.3.0-stable, I also tried on 3.7.0, but same problem occurred, and I tried several times. I had successfully installed version 3.0.1 on August 2022, so this time also followed the same method. This time I used -
Flutter version - 3.7.0-stable Jdk-19, build-tools;30.0.0 platforms-tools;android-30 cmdline-tools;latest
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
So i have installed flutter without android studio using cmdline-tools everything works perfectly just when you create a new app and run it for first time this process starts and installs everything again