I have a large program in android studio 2.1.0.9. Every time that i want to run my app in android studio I should stay more than 1 hour. How can I speed up it?I also did all step in http://www.viralandroid.com/2015/08/how-to-make-android-studio-fast.html but did not solve my problem
Related
Hi am new to flutter when i do flutter run command its takes about 7 minutes to run my project to the emulator for a two page .dart file
My question, is it that as the project gets bigger the longer it takes to build when i do flutter run command.
note: my pc is a low end one
spec: 8gb ram AMD E1-6010 HP 15
when you run your project in the emulator or real device for the first time, flutter creates a build folder and uses it in other runs to speed up the build process or even help through hot reload. As a result, usually, it takes lower than the first time for running the project. If your project gets bigger, although it does not affect the build process very much (linearly or exponentially), it may take a little longer.
I am currently developing an Android App. Four days ago I messed up the Git repository I was working with and I decided to create a new Android Studio project and clone the repository inside this new project.
Since then Android Studio freezes like every 2 - 10 Minutes. I even installed Canary 12 for that reason, I tried to remove everything I found regarding Android on my Computer before! Nevertheless, I still get those freezes.
I already set memory to maximum. At the time Android Studio crashes the total memory consumption is not above 50%, so it can't be a memory problem (in my opinion) - any ideas?
I would try File > Invalidate cache and restart, maybe disable all non included extensions. if that does not work try restarting your computer and/or reinstall android studio.
I want work with Android studio but I get some problems when create projects
slow errors when coding and when resume building apk
Use the Genymotion emulator instead of the default one.
I've been using Android Studio for the past few months, and I've noticed that it's a lot slower to build an app than Eclipse. For instance, in Eclipse, if I were to modify a line of code and then re-build, it would take less than 10 seconds. The same act in the same project in Android Studio causes the build process to last more than a minute (sometimes 2). Is there any setting or configuration I can change to help with this? Is it gradle related?
We have a large Xamarin.Android project with two depending projects and a bunch of third party dll's. Doing a debug deployment (without any changes) onto a Hax-x86 Emulator or a Nexus 5 device is painfully slow (> 80 seconds). For comparison the Xamarin.iOS version of the App deploys in under seven seconds onto a real device.
To test the deployment times I've also created a fresh Xamarin.Android project which deploys in about four seconds. When I add a depending project, the deploy time goes up to seven seconds. When I add a layout file to the depending project the deployment time increases to about ten seconds.
Is it possible to speed the Android build and deployment up with Xamarin Studio? A big Eclipse Android Projects is deployed rather quick in comparison.
Update:
Just running the installation build step takes about 40 seconds:
time xbuild /t:Install BigApp.csproj
...
...
...
Time Elapsed 00:00:42.8526970
about half the time is spend where the above command prints to console:
Target _CompileDex:
JavaSourceFiles:
JavaLibraries:
ExternalJavaLibraries:
Tool /usr//bin/java execution started with arguments: -Xmx512M -jar
/Users/myname/Library/Developer/Xamarin/android-sdk-mac_x86/build-tools/17.0.0//lib/dx.jar
--no-strict --dex --output=obj/Debug/android/bin/classes.dex obj/Debug/android/bin/classes
/Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/platforms/android-15/mono.android.jar
/Users/myname/Projects/BigApp/obj/Debug/__library_projects__/TestFlightBindings.Jars.TestFlightLib_1_2.jar
/Users/myname/Projects/BigApp/obj/Debug/__library_projects__/android-support-v4.jar
/Users/myname/Projects/BigApp/obj/Debug/__library_projects__/classes.jar
/Users/myname/Library/Developer/Xamarin/android-sdk-mac_x86/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar
When I run the solution from Xamarin Studio this step happens twice. Once for the depending project and once for the main project. I tried to reproduce this behavior on the console with
"/Applications/Xamarin Studio.app/Contents/MacOS/mdtool" -v build "--configuration:Debug -t Install" "BigApp.sln"
but that only builds the main project.
Update:
I created a small demo project with very slow deployment time:
https://github.com/perpetual-mobile/SlowAndroidDeploymentWithXamarin
I contacted the Xamarin guys about this problem and they fixed two issues in Xamarin.Android:
https://bugzilla.xamarin.com/show_bug.cgi?id=16622 (provided since Xamarin Android 4.12.0)
https://bugzilla.xamarin.com/show_bug.cgi?id=15162 (provided since Xamarin Android 4.10.0)
The build time for my huge project without any changes is now ~5 seconds. And when making a code change in the deepest depending lib a deploy cycle does not take longer than 16 seconds.