Steps to Reproduce
I'm not sure there is an exact way to reproduce this issue as it seems to happen at random instances when building or running the project on a physical device.
I hope this is the right place to post this.
Here is an outline of how it occurs.
I have looked at issue #36763 and its not resolving the issue.
You run a project on an ADB connected device. The app will successfully build and/or run on the devices.
Step 1 will randomly get stuck on assembling the project. This will not complete even if you wait for hours(tried it)
Ordinarily when you have a problem you will go for flutter clean . if you try this it gets also stuck for hours with no completion.
Upon inspecting this you find a file in your assembled assets with a number like "8043e5b2" but no extension. This might be an svg, png , or jpeg image which was stripped off the extension and renamed, I found out by looking inside the file or copying it outside of build and adding the extension. This file will not rename, delete or be modified on any application on windows and yes that includes the IDEs.
The only solution that I found to delete this was to boot into safe mode with CMD and delete it from there.
If you pick to go with step 5 you are going to build the app successfully for a couple of times and then it happens again. The you have to go to safe boot to delete the build again.
Version info
$ flutter doctor -v
[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.19045.2364], locale en-UK)
• Flutter version 3.3.10 on channel stable at C:\Flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 135454af32 (2 weeks ago), 2022-12-15 07:36:55 -0800
• Engine revision 3316dd8728
• Dart version 2.18.6
• DevTools version 2.15.0
Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at C:\Usname\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\xxxxx\Chrome\Application\chrome.exe
[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 (version 2021.3)
• Android Studio at C:\xxx\Android\Android Studio1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
[√] VS Code (version 1.74.2)
• VS Code at C:\mypathtoinstallation\Microsoft VS Code
• Flutter extension version 3.56.0
[√] Connected device (4 available)
•X683 (mobile) • 192.168.xx.xx:xxxx • android-arm64 • Android
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.2364]
• Chrome (web) • chrome • web-javascript • Google Chrome 108.0.5359.125
• Edge (web) • edge • web-javascript • Microsoft Edge 108.0.1462.54
[√] HTTP Host Availability
• All required HTTP hosts are available
On my device, flutter does not hot reload, I initially thought this was a problem with flutter or android studio or vs code but when I use a different device, the hot reload is working. How do I resolve this, it's just been driving me crazy and I have already spent a lot of hours trying to figure this out.
And btw, it was initially working on this device until it wasn't, and I have already restarted my phone, I have even reinstalled flutter, basically every suggestion from the internet I have tried but so far, no fruits.
Any help would be highly appreciated, here is the flutter doctor -v.
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Linux, locale en_US.UTF-8)
• Flutter version 1.12.13+hotfix.9 at /home/hamisi/flutter
• Framework revision f139b11009 (5 weeks ago), 2020-03-30 13:57:30 -0700
• Engine revision af51afceb8
• Dart version 2.7.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/hamisi/android
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /home/hamisi/android/
• Java binary at: /home/hamisi/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Android Studio (version 3.5)
• Android Studio at /home/hamisi/android-studio
• Flutter plugin version 44.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (1 available)
• LG H845 • LGH845e35cd375 • android-arm • Android 7.0 (API 24)
• No issues found!
The output from flutter run -v --trace-startup is https://pastebin.com/9X4S5LWr
I had this exact problem with a Pixel 2. Fine one minute, then boom - hot reload / restart was not available. I could deploy the app to the device, but hot reload options were greyed out in Android Studio and hot reload keyboard shortcuts did nothing. Pressing r after flutter run also did nothing. Nothing significant happened in between it working and it not working - no updates to Android Studio, Flutter or the device. I tried restarting the device, Android Studio, flutter clean, I tried swapping the USB cable, nothing seemed to work.
It did eventually start working again: I did a flutter clean followed immediately by a reboot of my computer. I have no idea if this was the fix, or whether it was just one of those random who-the-f-knows, but hopefully it will help anyone else.
[√] Flutter (Channel stable, v1.17.0, on Microsoft Windows [Version 10.0.18362.778], locale en-GB)
• Flutter version 1.17.0 at D:\flutter
• Framework revision e6b34c2b5c (10 days ago), 2020-05-02 11:39:18 -0700
• Engine revision 540786dd51
• Dart version 2.8.1
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\james\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] Connected device (1 available)
• Pixel 2 • HT7C11A06689 • android-arm64 • Android 10 (API 29)
• No issues found!
I had this issue some days ago I did a couple of things:
In some files may be added file:/// before the file name in the above file. Search in the whole project and remove file:/// line and again import that package again.
flutter upgrade
Clean project(flutter clean)
I also change my emulator.
that worked for me
Since you have all necessary plugin installed and your flutter-doctor has no issues.
Try running the command flutter clean.
Hopefully that is going to work.
I hope this helps.
if you are using an android virtual device. navigate to its settings => proxy then untick 'Use android studio http proxy settings' select 'No proxy'... that worked for me.
For anyone else who runs into this issue and has installed VS Code Hotkeys/Keymap for Android Studio, the default VS Code hotkey for "Save All" will immediately stop hot reload from working. (With VS Code hotkeys this is Ctrl+K or S)
Simply removing the "Ctrl+K, S" and replacing it with Ctrl+S worked after days of trying to fix this. Screenshot below.
File -> Settings -> Keymap -> Search for "save"
Screenshot with Instructions (Settings -> Keymap)
HotReload was not working me as well, but I searched for it and found the solution.
When you click on the HotReload it will work only in the changes inside the Build() Widget, if your code is outside the build() widget then it will not work...
Thanks
I had the same problem, All you need to do:
Wipe data in the Android Emulator
Cold boot the device and done.
If you are still not able to figure it out check this method.
When you import widget from another .dart file. sometime android studio will import this path.
import file:///C:/kharag/.../.../< App Name >/lib/filename.dart
Hot reload and hot restart will not work in that case. To fix that you should find and remove file path and replace with given path format below
import package:< App Name >/filename.dart
Note: To see the change stop your app and run again
As i mentioned in the question,i cannot see anything in the console but Installing build\app\outputs\apk\app.apk... and i just cannot understand the reason because my app is working in the device. I can change the pages but the little informations that i want to see, the prints that i entered in the code are not visible and its very annoying.
Before asking here i have been looking the other questions about this problem but the answers in that questions did not worked for me so i end up asking this in here, i hope you can help me.
here is the console after i click the run button;
Launching lib\main.dart on LG H850 in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
an here is the flutter doctor
[√] Flutter (Channel stable, v1.17.0, on Microsoft Windows [Version 10.0.18362.778], locale tr-TR)
• Flutter version 1.17.0 at C:\Users\Mahir Yakup Şahin\flutter
• Framework revision e6b34c2b5c (8 days ago), 2020-05-02 11:39:18 -0700
• Engine revision 540786dd51
• Dart version 2.8.1
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\src\Android
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = C:\src\Android
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] VS Code (version 1.45.0)
• VS Code at C:\Users\Mahir Yakup Şahin\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.10.1
[√] Connected device (1 available)
• LG H850 • LGH850b31f3def • android-arm64 • Android 8.0.0 (API 26)
• No issues found!
I will be very grateful for any kind of help.
And also i tried in the vscode as well, here is the result,
enter image description here
and sometimes i get an error like this;
enter image description here
Try "flutter clean", that helps in lot many cases..seems like yours is also one of those..
Also..make sure that you have enough storage space on your device (phone or emulator, whatever you re using)..the description on the second image seems like because of the storage issue.
I am trying to do an Android App i.e Voice Changer:(link shared below)
[https://play.google.com/store/apps/details?id=com.baviux.voicechanger&hl=en]
I have found all the native libraries to change the audio voice file to another voice
But i don't know the exact values of audio properties to be changed to get the type of given voice as any one of below ones:
• Helium
• Robot
• Big robot
• Squirrel
• Dizzy
• Backwards
• Monster
• Nervous
• Giant
• Telephone
• Cave
• Cathedral
• Dark side
• Alien
• Grand Canyon
• Fan
• Devil
• Child
• Sheep
• Overlord
• Small alien
• Megaphone
• Death
• Everything is spinning
• Hexafluoride
• Small creature
• Optimus Robot
• Android
• Villain
• Battery low
• Shrinking
• Cyborg
• Duck
• Extraterrestrial
• Deep voice
• Zombie
can any one help me what exact values(properties) of audio file like Pitch,Frequency etc... for above voice types to be get changed using the native libraries
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'd like to install Android Studio in pc which has no internet connection.
I have already downloaded the JDK-7 and the Android Studio using
another laptop.
I have copied the both setup files and successfully installed JDK-7.
Now when i'm running android-studio setup , it requires internet
connection.(step screenshot attached)
Is there any way to skip this step by downloading any other setup(exe) file ?
After downloading all the required files (Development Studio, SDK and Platform), then when you run the Android Development Studio installation, it does not give me an option to select the previously downloaded components, but instead just goes ahead and attempts to download from the internet.
There are 3 main components to a working Android development setup:
JDK (Java Development Kit) Android
SDK (Android SoftwareDevelopment Kit)
IDE (Integrated Development Environment)
First download all three:
Download standalone JDK installer from here, and Android SDK and Android Studio from here.
Now, move the files to whichever machine you want to install your development environment on and install all of them.
The SDK comes packed with only the latest platform (21 at the time of writing) so if you need to use others, you will need to download them separately:
Platforms
• android-1.1_r1-macosx
• android-1.1_r1-linux
• android-1.5_r04-windows
• android-1.5_r04-macosx
• android-1.5_r04-linux
• android-1.6_r03-linux
• android-1.6_r03-macosx
• android-1.6_r03-windows
• android-2.0_r01-linux
• android-2.0_r01-macosx
• android-2.0_r01-windows
• android-2.0.1_r01-linux
• android-2.0.1_r01-macosx
• android-2.0.1_r01-windows
• android-2.1_r03-linux
• android-2.2_r03-linux
• android-2.3.1_r02-linux
• android-2.3.3_r02-linux
• android-3.0_r02-linux
• android-3.1_r03-linux
• android-3.2_r01-linux
Samples
• samples-2.1_r01-linux
• samples-2.2_r01-linux
• samples-2.3_r01-linux
• samples-2.3.3_r01-linux
• samples-3.0_r01-linux
• samples-3.1_r01-linux
• samples-3.2_r01-linux
• samples-14_r02
• samples-15_r02
• samples-16_r01
• samples-17_r01
• samples-18_r01
Build Tools
• build-tools_r17-windows
• build-tools_r17-linux
• build-tools_r17-macosx
• build-tools_r18.0.1-windows
• build-tools_r18.0.1-linux
• build-tools_r18.0.1-macosx
• build-tools_r18.1-windows
• build-tools_r18.1-linux
• build-tools_r18.1-macosx
• build-tools_r18.1.1-windows
• build-tools_r18.1.1-linux
• build-tools_r18.1.1-macosx
• build-tools_r19-windows
• build-tools_r19-linux
• build-tools_r19-macosx
• build-tools_r19.0.1-windows
• build-tools_r19.0.1-linux
• build-tools_r19.0.1-macosx
• build-tools_r19.0.2-windows
• build-tools_r19.0.2-linux
• build-tools_r19.0.2-macosx
• build-tools_r19.0.3-windows
• build-tools_r19.0.3-linux
• build-tools_r19.0.3-macosx
• build-tools_r19.1-windows
• build-tools_r19.1-linux
• build-tools_r19.1-macosx
Sources
• sources-14_r01
• sources-15_r02
• sources-16_r02
• sources-17_r01
• sources-18_r01
• sources-19_r02
Hope it helps.