I tried to find solution on google but didn't get any useful solution. When i start new project or load any existing project on my android studio than my studio's gradle:build is not getting stop or you can say studio is stuck on gradle build.
I am attaching screen shot of bothStarting New Project
Loading Existing Project
Related
I am trying relentlessly to import this project into Android studio as part of my Udacity Android development courses. I tried everything from forking on GitHub and cloning it into my Android studio to changing the Gradle settings, the Java version, following the recommended settings by android studio, etc.
https://github.com/udacity/ud839_CustomAdapter_Example
Nothing seems to be working. I keep getting errors. Each time I fix the error I get another error. Can someone please guide me as to what exactly is the proper procedure for importing an older project into the android setting and updating the settings? I seem to be experiencing the same issue every time I am completing online courses. The existing projects appear to be completed through older versions of Java and Android studio. Any help is greatly appreciated.
Thank you
I've been using android studio for a while now and I have never had any problems. Today i tried to open a new project and the Mainactivity file opens but when i try to open the design view (as shown in the picture) it just keeps loading and never stops. I tried closing and reopening android studio but it still loads without finishing. Any suggestions on how to solve this problem?
android studio
Try the below methods and let me know:
First, let the studio build the project completely. Preview won't be available until the project is built. Make sure you've correct library implementation in Gradle and you have a stable internet connection. If those are okay then follow the below methods-
Invalidate Cache and Restart Android Studio
Restart Your Computer
Create a new project and try building it.
Let me know if it fixes your problem.
I created my Flutter project by typing into my CLI Flutter create project_name and all this time I've been coding using VScode, and the project is near completion, which means I have to do a software demo in the coming days to my professors in university. However, I would need to open multiple android emulators that will run the same project, based on my brief research and testing, VScode does not allow running multiple android emulators that run the same project. So I have to transfer that project from VScode to Android Studio.
I've tried simply opening my Flutter folder in Android Studio and I'm getting gradle build errors. Any help would be appreciated thank you!
As long as you have the Flutter plugin installed in Android Studio, you can just open the folder like any other.
Though FWIW, I don't know if Android Studio supports debugging on multiple devices at the same time. It does work in VS Code (as shown at Flutter Interact with the "Flutter Octopus") if you're on the master channel (see https://github.com/flutter/flutter/wiki/Multi-device-debugging-in-VS-Code).
After updating the android studio to android 3.4 it's taking too much time to build the project before that it's taking only a few minutes but now it's taking too much time
EDIT
even after one hour it keeps building the project.
#VirendraVarma Your solution worked for me, Appreciate it, but just to make it clear for everyone else.
1. Close the current Android Studio project
2. Go to your project's directory and delete all build, .gradle, .idea folders. Also any unfamiliar files as stated by Varma.
3. Now at the Android Studio welcome screen, click on open an existing Android Studio project and the rest should be quite straightforward.
While importing projects in android studio ,this window comes and never disappear. please help. I am new to android studio
Looks like one of your dependencies that Android Studio is trying to download is offline. Check out this related SO post:
Android Studio stuck on "Gradle: resolve dependancies '_debugCompile'" or 'detachedConfiguration1'