Cannot open project structure anymore in Android Studio - java

I cannot open project structure in Android studio any more. ctrl+shift+alt+s and file -> project structure both are not working. When I try either of these, nothing happens!
I am on Windows 8.1 and have tried deleting the .AndroidStudio folder from the Users folder. It resets everything but it didn't help.
I also tried File Invalidate/Restart -> didn't work :-(
Uninstalling and Reinstalling didn't work either. Any help would be really appreciated.

This happened to me couple of months back, and I solved it by reinstalling my Android studio and sdk. If you still have the AS IDE in your Download folders, try to reinstall it. I hope it help.

try sync project with gradle.
file -> Sync Project with Gradle Files

Related

Android Studio freezes/hangs when i try to open anything

Recently I upgraded my Android Studio to 3.1 and also my gradle to 4.4.
Since then android studio doesn't let me open anything. (Any project , any file location, etc). I am able to create a new project but if try opening an existing one it just freezes. And then I have to kill it through Task Manager.
I am also able to open the settings page through welcome wizard. There also I tried to change the gradle version manually, again while browsing to the location it just gets hanged. Same way as above
I tried upgrading the Java version, installing/uninstalling android studio and everything else I can but its the same.
Any help or suggestions will be appreciated
I encountered similar issue. Please check the system Environment Variable, the JAVA_HOME path should be set correctly according to Java installed in your PC; something like this in my PC "C:\Program Files\Java\jdk1.8.0_172"
This resolved the issue for me.
Cheers!
Herbs

Android folder not being created by eclipse

On my new computer I downloaded eclispe Luna (4.4.2). I tried to install android on it (by going to https://dl-ssl.google.com/android/eclipse/ and installing all). It was installed, so I restarted eclipse and got the message:
Could not find SDK folder
And no android folder got created in any of my drives (its a new computer so I searched in any directory)! I removed eclipse, downloaded it again and tried and the same happend. I uninstalled DDMS and reinstalled it and the same happend. I uninstalled it and opened eclipse as administrator and reinstalled it and the same happend... If I click on Window -> Android SDK Manager I get that message and nothing happens.
What am I doing wrong? What am I missing? I am using the same workspace I used in my old computer that had worked fine with android (tough I used eclipse keplar, so when I opened the new workspace eclipse asked me to upgrage and I agreed).
Please don't tell me to move to Android Studio - my project in eclipse consists of many multiple sub projects and I really don't want to configure it a new (why the hell do we have Gradle?!)
It seems like you have only downloaded the plugin for eclipse. You also need to download the SDK from http://developer.android.com/sdk/index.html#Other
You should install Android SDK separately.
Here is the link to the page that will show you to install eclipse, adt and sdk.
Hope this helps.
I am assuming you are on a windows computer, so in Eclipse do the following:
Window -> Preferences -> Android
In the Android tab, there is a field saying "SDK Location". You can click browse and find where the folder "android-sdks" has been downloaded in your computer.
Set the path to that folder as "SDK Location"
It should be working now.
Usually the "android-sdks" folder is found under: C:\Users\< your-username >\android-sdks if it was downloaded from the ADT pluggin: https://dl-ssl.google.com/android/eclipse/

couldn't able to open existing projects in android adt(eclipse)

I've a problem in eclipse, i'm getting the following error and i couldn't able to open any existing projects and not able create any new project as well. I've tried restarting eclipse but it's not working.
Finally it worked after I've uninstalled JDK and installed it again. Thank you all

Why does my eclipse does not produce the R.java file?

I am new to android but when I run the eclipse (which I installed ADT Plugin and android SDK) I found that my eclipse is not generating R.java file with a error message(as shown in figure)
How to rectify that ?
Thanks in advance
You should download the android bundle here http://developer.android.com/sdk/index.html
It is and eclipse version with everything needed for android already installed.
I had the same trouble as you, switched to this one and everything worked at the first try

Building project in eclipse?

I've looked for an answer, no luck. Looked a lot.
I've downloaded an android example project from a friend, it's all in the correct layout, and the source files are there. Only I wish to open the whole project in eclipse, so that I can run it using the emulator I have installed. However, I cannot seem to be able to do this. I have all versions of android installed, and I have been advised that the files/project are for 2.3 so should be good. Have tried:
File --> New Android Project --> Using the existing file and build path
It suggested to do file --> Import instead, so went there and imported an android project from existing workspace.
It gave this error:
"Project has no default.properties file! Edit the project properties to set one".
Any help is much appreciated!
New version of ADT plugin uses project.properties while older version use default.properties.
Please upgrade ADT plugin. It will work
I had this problem when trying to open one of my projects on a different computer, you need to update the ADT. In Eclipse go to Help > Install New Software. Type in https://dl-ssl.google.com/android/eclipse/ and install the latest versions of everything. Also make sure everything to do with the SDK is up to date!
Try creating a new project from existing source.

Categories

Resources