Android studio startup error - android

I've been having an issue with android studio for the past two weeks, it started happening out of the blue, everything was working juts fine until one day it just wouldn't start, it's display an error for me, I tried doing the following since then:
Reinstall the same version on android studio (which is the latest)
Install different versions of android studio
Restore my computer to a previous date in which everything was working fine
Needless to say that all of the above hasn't worked
Would anyone know how to solve this problem ?
Thanks in advance

After failing to find a solution, I just downloaded Intellij IDEA, it's great and has the same interface as android studio, so I'd advise anyone having issues with android studio to use it

Related

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.

Unable to install Components in Xamarin.Android

I am working with Xamarin Android, and in the past couple of days have found that I am unable to install components into projects.
I am on Visual Studio 15.3.0 (2017), and basically whenever I add a component, everything looks fine until I close the project and re-open.
Before:
After:
Things I have tried:
Updating Visual Studio
Reinstalling Visual Studio
Deleting everything Xamarin related in C:\Users{Me}\AppData\Local
I have lost two full days of work because of this and am getting a bit desperate, at this point I'm considering reinstalling Windows.
Can anybody provide any insight on why this is happening?
Regards

Xamarin Forms: error in Droid project with Visual Studio

there are three day I'm trying to have a clear solution to start for each platform. Unfortunately, I'm very frustrating because I can't have that. Now in droid project there is a new kind of error:
java.lang.IllegalArgumentException: already added : Landroid/support/v4/view/VelocityTrackerCompat;
I tried to build and rebuild the project a lot of times without success. What have to do?
Then I tried to update my Droid solution but the result is wrong then before.
I googled a bit but obviuosly I can't find a solution or anyone with my same problem. Visual Studio 2015 shows my a lot of errors.
The version of Xamarin Studio is old.
This is the new list of references for the Droid project. I don't know what I can do now...
To resolve this issue, I removed all references from the Droid project and then I reinstalled all references.
Now it's working fine.

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.

Could not find apk with ibm worklight

This is my first time learning IBM Worklight, so please bear with me. I was following this tutorial, however i stucked in page 14, where the tutorial tell me to "run as android project" so the project will be run on android simulator.
This is the error i got :
Could not find HelloWorklightHelloWorklightAndroid.apk!
What should i do? I also have watched this video, and everything works fine in that video (no error like mine)
Thanks for your time, any help is appreciated :D
The answer is because a BUG in ADT 22. I need to upgrade the ADT to latest version and install Android Build Tools.
The way to solve this bug (and get things working )is in my another question (which share the same problem, because i use a same android sdk) :
Eclipse Juno/Android broken, the debug is wrong and gen folder not created (R error)
EDIT
After that, you probably will get CLASSNOTFOUNDEXCEPTION because (again) ADT 22, so you need to do (a little) more things in this IBM link
Clean the project and build it again it works.

Categories

Resources