Updated to Android .3.7 Now Configuration Messed Up - android

I was using a .2.x version of Android Studio. Just installed to .3.7 and got two obvious error messages... "Android SDK is not configured for module 'FormerlyWorkingProject' or corrupted" and (when I try to look at any layouts I get) "Rendering Problems- No render target selected." I tried downgrading to .3.2, but no luck.
It seems that some part of my configuration is now missing or messed up. Will someone please give me some guidance on this?
Thank you so much!
Tony

From your Project Structure dialog, choose Android SDK under Platform Settings. Make sure it has the path to the right JDK and Android SDK. Correct them, close your project, and reopen.

Related

Android Studio moving project to other computer - SDK location differs

the question is not as simple, as replied in
Android Studio moving project to another computer?
Just copying folder results in my case in Studio could not find SDK location, rebuild does not help as errors could not find ...-appcompat-7 appear. Studio advices to load SDK, which I do not want to do as I already have SDK on that comp.
And all that just because computers have different user accounts - hence default SDK location path differs.
Is there safe simple way to copy and/or backup my work in Android Studio?
If you use source control, an easy way might be to make sure all your changes are on the server, then clone the project on your second computer.
copy the previous SDK to your new computer with project, And set location of new SDK and refresh the project
What a program Android Studio! The issue I found is that in Gradle file appcompat was last digit different version, hence asking for download and looking on Studio server could not find old version.
I already raised ADV bug to Studio support sometime ago and got no response except that it was read.
So be it, hope somebody else will find out my answer here if faced with same issue.
I solved this problem by changing the compileSdkVersion and buildToolsVersion from the build.gradle(module) of the project.

Showing Error in all projects: ADT Bundle

I am using ADT bundle for my Android Application Development
1) From last two days whenever I open my ADT bundle its showing error in all the projects (But I have no errors in my projects and I am sure about it). I tried to clean all the projects but no use... Sometime a restarting eclipse will solve this problem but after few days I am getting this same errors again.
2) Also In my Android SDK Manager some packages like Google API and system images in extras were broken, I don't know what to do.
I tried to clean my projects and to update the SDK manager but nothing solved my problem. Kindly tell a better solution to solve this problem. And tell me why these kind of errors are happening.
Thanks a lot in advance.
But for this kind of problems need more clarifications. Here is my few tips to resolve it. It may or may not work! But better give a try.
In each class or java file which place exactly it showing the error? For example for few it will sow error in R. file and the error will be R cannot be resolved into type. If you are getting this error try to import you package R. file (Like import com.example.R) will resolve issue. If you couldn't import then try to check the package name in manifest file and other layout files. Try to resolve all errors one by one in res folder then clean will help it.
Next check whether Eclipse issue or ADT issue. You said few things are broken in ADT i don't know what exactly it means but try to uninstall and re-install them again.
Try to update eclipse. You can do it by Help->Check for updates
If nothing helps follow the error which are displayed in Problems tab which present near console tab. Otherwise open it here Windows->Show View -> Problems.
Hope anyone will help you if not please follow the errors and edit your question with error. So you might get better answers!
I had the same trouble.
I completely remove Eclipse and SDK bundle; then, i re-install everything.
This worked for me.
Do check this, Lint Error Checking will slow your ADT also seems to be occur error like what you got in a often situation..
so Disable lint from Windows-> Preferences -> Android-> Lint Error Checking, Under
Uncheck the two option in right hand side.
Be aware of what all your projects have JDK compliance.. set common JDK level.. mostly 1.6 based on need change to 1.7 for all projects..
set JDk compliance level in properties of your project -> java compiler and select in right hand side..
Always Check when importing any projects after import if its came up with a compatibility library or external library to be added like appcompat_v7
Check in properties of project under android tab in library section if there is any missing files..
From all the above suggestions are not fulfilled your problem, then go ahead with a new fresh latest ADT Bundle with a fresh download of platforms of SDK.. it will solve most of the ADT problems..
Finally the problem solved
This problem occurred due to missing target SDK in project properties and because of the broken files in SDK manager.
What I did is:
1) I deleted all the broken images and Google api packages from the SDK manager and I re installed all the packages again,
2) Then I selected android 4.2 as the Android Build Target in the project properties.
Thanks all for the time and help.

Android Hello World in IntelliJ 12 - Cannot find android.app.Activity class

Please see below. I have a feeling I've got the SDKs configured incorrectly, but I'm not sure how to solve it. I tried Googling for answers but no one had this exact problem.
Do I have the wrong Java version maybe? It seems like the two SDKs might be conflicting with each other.
I made this project via:
Create New Project
Android > Application Module
Defaults and Finish
Edit: See screenshot. I got it working. All I did was create a new project and re-select the Android SDK. I'm still thinking it was because I added too many SDKs/JDKs the first time. I think all you need is the Android SDK and don't need to add the normal Java one too.
I tried what for3st suggested to no avail at first, but i've heard other places that you should use JDK 1.6 for IntelliJ IDEA in other places, so you can do that here. Also, you set the SDK by going 'File'->"Project Structure" -> "Platform SettingS" -> "SDKs"
In the end, I also switched from Android 2.2 to 2.3.3 (api 10) and that got it to work. Don't have a good idea why it didn't work for 2.2, but since I just want a beginner's tutorial, I'm fine with that.
I had exactly the same problem, but the conditions leading up to it are quite unusual.
I downloaded the Android SDK as a zipfile and unextracted it into /opt.
However, the permissions did not allow normal users to enter all directories or execute all files... so when IntelliJ indexed the SDK it only picked up the res jar... and never added the sources to the library path!
Deleting the SDK, fixing the permissions problem in the SDK, and creating a new reference in IntelliJ fixed it.

Android error in eclipse: Unable to resolve target 'android-xx'

I know there are some sort-of duplicates of this, but none of the answers have been able to help me so far.
In a project shared with some friends over SVN, I always get the following error:
Unable to resolve target 'android-10'
When I change project.properties to alter the target version, the error message will remain, unless I use android-16.
I have checked my project's Android sessions to see if I could change the target there, but it only gives me 16 and 17 as options.
In my SDK Manager, I have the entire "SDK 10" branch installed, as well as several others.
Does anybody know what may be the problem here?
Another method is not use the same SDK, but use the SDK in your computer.
Right click project and select Android ,check target name, click 'apply' and 'ok'.
Then Right click project -> Android Tools -> Fix Project Properties.
Clean and build the project.
This answer is way too late but for anyone experiencing the same problem, try installing API 10 from the SDK Manager. Then run everything as you did before.
Or if you're on a Windows OS, this might also help: http://sagistech.blogspot.ca/2010/05/android-sdk-error-unable-to-resolve.html
If you're not getting android-10 as an option in the properties view, then clearly there is something wrong with your installation.
Well, the obvious thing to do is to doublecheck that the SDK location in Window >> Preferences >> Android is set up correctly and pointing to the right installation of the ADT. If so, the view in preferences should also include SDK10 as one of the installed platforms (in which case, there really shouldn't be any problem).
If it doesn't, something has gone wrong - either in Eclipse or the ADT installation. I would check - just to be sure - that you have the right Java SDK - I've had problems with Eclipse/ADT myself when this is the case.
If those two things seem in order, though, the best advice I can give is to reinstall eclipse and the ADT both. If you only use the installation for Android, then I'd suggest using the "official" Google Eclipse package from developers.android.com.
Unless you have a lot of stuff set up in your eclipse environment that would be pain to change, I wouldn't recommend spending time on trying to identify whatever variable is messed up (speaking from painful experience here ;) ).
While importing project tick the checkbox "Copy Project into workspace" after selecting projct. Hope this help you, as this option fixed for me.

Eclipse ADT Plugin Not working

I just updated eclipse and the Android Developer Tools plugin and now when I make a new project and try to run as android application, I get an error: "Your project contains error(s), please fix them before running your application". There is no visual errors (red x on the file name ). I have made several simple projects in the past with success. So I uninstalled eclipse and followed a couple tutorials step by step on setting up an Android developer environment with Eclipse Helios, Ganymede, Indigo with no success.
Does anyone have any idea what the problem could be?
thanks in advance.
EDIT
Thanks for the quick response. I did figure out the problem. Before the problem occurred, I had re-downloaded the android SDK changed the path. But then forgot to install a platform in the new environment.
A common error is that there is a space in the Android toolkit filepath. Make sure it is in a location like "C:/android/android-sdk" rather than something with spaces in it.
Give this a try, and if it doesn't work, please post the actual errors you are receiving.
EDIT:
This has apparently been fixed since r13 of the SDK tools, though it may still be an issue for older versions.

Categories

Resources