Unable to create project in android studio after updating to latest version - android

I have updated android studio to latest version 2.3 a week back. After so much research I'm somehow able to fix gradle build.But now android studio is not creating new projcects.It is stuck at gradle build for project.I've waited for almost 1 hour.It was at the same point.I updated the gradle to the latest version 3.4.1 but I dont know why I'm getting this error.Its not even showing any error.
Someone please help me...Thaks a lot in advance....

Update your SDK especially build tool and extras.
Delete temp files of system.
After that restart your system and android studio and create new a new project and wait until it completely build(may be it take some time more than it's usual time, but it happen first time only, so have patience).
Hope this will resolve issue.
If still you have same problem; re-install your Android studio.

Related

make a flutter project taking a long time in vs code and android studio

recently I uninstalled all my android studio setup and then install the new version of android studio, but I face some problems when create the first project. it needs to take a loooong time and won't start. I have already tried all options such as making a project in CMD, vs code, and android studio but the result is the same, it won't start.
anyone can help me with this problem, please?
Try
flutter clean
then load packages and run

Android Studio gradle build stuck at app:processDebugResources

I'm on Windows. I created a new project on Android Studio for Marshmallow at least.
The only thing I've done so far is generating the main activity which is a tabbed activity with view pager. Also, you should know that this project is a private git repo that I cloned.
I'm working on this project with another developer and the project is perfectly working on his side.
The problem is:
When I try to launch the app (wether it is a virtual device or my real phone), the gradle build gets stuck at the app:processDebugResources step. I waited more than an hour and nothing happened. Moreover, when I want to cancel the gradle build, it doesn't respond and I have to kill Android Studio process. Then I restart Android Studio and I have to kill a gradle process that prevents the initial gradle build (at Android Studio startup) from working.
The crazy thing is that I was able to launch the app before. I even installed it on my phone!
What I've tried so far:
Do what stackoverflow was giving as solutions like tick the offline mode in the settings
Create a new project --> It doesn't change anything
Reinstall Android Studio --> It doesn't change anything
Deactivating Avast antivirus
Invalidate cache/restart + Clean + rebuild (the rebuild gets stuck like when I try to launch the app)
And maybe other solutions that I forgot...
It's getting very annoying as it's making me lose days of development.
If you have any more solutions, or if you think I should try again some of the previous solutions, help would be greatly appreciated !
I know this is an old post, but I faced the same problem during the last few days and since i got crazy I hope I can help someone else out there.
After many hours of troubleshooting I found that the Java Platform SE binary executable goes in "suspended mode" in Windows 10, preventing Android Studio from compiling (it hangs at app:processDebugResources).
Example Screenshot
Killing the suspended process and recompiling the project works just fine... until Java gets suspended again.
Maybe your gradle version is not compatible with it. Try again with latest version of gradle in your project.
I did several things:
Install NDK
Change JDK from embedded one to Jdk 8
Redownload SDK i was using (6,7,8)
And now the problem is solved ! I have no idea which of these things made the tricks but I'm happy ! It may be useful to someone else one day.

Resolving conflicts found during Android Studio update

I'm getting the following error during the update of Android studio. Anyone know how to resolve it?
The patch can't update files because they are either missing or different.
Reinstall Android Studio.
I run into a similar situation, conflicts while updating Android TV! Never used that package and my intention was to remove it and update everything else if possible. After some fiddling I run the command:
[path-to-android-sdk]/tools/bin/sdkmanager --update
and after 30 minutes it or so it said Done.
Opened up Android Studio and everything appears to be updated and working!

Android Eclipse ADT build build process enters an unending loop

I have downloaded latest adt bundle for mac from android developers website. I do create a library project connected to main project and suddenly, Eclipse started to nag! I checked the build progress and I figured out that build process restarts at 40-50%.
I have captured a screenshot:
Some people suggested to disable Build Automatically. After doing this, the project builds and runs OK but I have to build manually after every little change and it's boring.
I am using Eclipse IDE for android Developers version 23.0.2.1259578.
Android SDK Manager details:
What is the cause of this misbehavior? What is a good solution? Any idea?
This was my solution for this issue I have posted a few month ago,
https://stackoverflow.com/a/24631434/2970351
Also try other solution in that page if it didn't work for you.

Android: Eclipse build target empty, returns error and crash eclipse

I was running Android development on Eclipse fine for couple of months now.
But after the Android SDK update, I cannot add library to the project anymore. It just return the following screen. The Project Build Target is completly blank as shown. I COULD add the library but as soon as I hit OK, it would crash Eclipse (Eclipse becomes unresponsive, I have to end task manually)
I tried updating ADT, Android SDK and the problem persists.
Reinstall ADT doesn't help either.
As you can see in the second screen shot, Android SDK is still functional.
If anyone could help me out, I would be much appreciated.
Thank you.
After uninstalling and reinstalling android related components piece by piece. I found out the The problem is with newly update (corrupted Android API 19) which caused the SDK failed to load and display properly in Eclipse.
I removed the API 19 and redownload it from Google and everything works as expected now.
Thank you.

Categories

Resources