Android options disappeared after switching SDK and workspace folder - android

Hello everyone i have got a strange error, actually it s not even an error.
I have just switched my workspace folder and changed the sdk path and now i haven't the android options in my eclipse. For examples if i press import or new i have just java project, java class ecc. Not more android project, export to android app or stuff like that.
I have no idea what happened android sdk seems loaded theres no error linked to missing libraries or anything strange.
What's happened?
Already tried to delete android support library and re-installed but doesn't work

Related

The most basic Android app on Eclipse is not building

I am trying to make the a default android application project build and run. This is even less than a hello world.
I am using eclipse neon 3, android 8.0, and my SDK Manager says everything is up to date.
When I create a new Android application project, it immediately has errors, which is crazy to me.
The first error is here: import android.support.v7.app.ActionBarActivity; android.support is squiggled and unrecognized.
The error message is: "ActionBarActivity cannot be resolved to a type".
I have spent all day on here reading about similar problems and tried the following:
-Using the SDK Manger to add "Android Support Library".
This is not shown in my SDK, even when clicking on obsolete.
-RMB Project > Android Tools > Add Support library. This failed:
[2017-06-24 16:07:08 - Android Support Jar not found:] C:\WINDOWS\system32\v4\android-support-v4.jar
So I went and found this file somewhere and put it there. Then it stopped failing but didn't fix my problem.
-Project > Properties > Java Build Path > Add External Jars > android-support-v4.jar. This did nothing.
-Many suggestions have me navigating to C:\Program Files (x86)\Android\android-sdk\extras\android where I am supposed to find all kinds of folders but all I have is m2repository.
Any help would be appreciated, but I would also like to know why this is so difficult. I have been developing in other languages for a while and have never seen a default project be so difficult to get running.
Should I be using a different IDE or something?
Android Support Jar not found:] C:\WINDOWS\system32\v4\android-support-v4.jar
Why is your Android home directory pointed at System32?
Found it and put it there.
That was the wrong solution to the problem. You needed to fix the environment variables for PATH and ANDROID_HOME
have never seen a default project be so difficult to get running.
Because the main development efforts for stability and ease of Android development are focused elsewhere
Should I be using a different IDE or something?
Yes. When you downloaded the SDK, did you skip over all the Android Studio links?

Android ADT is not recognized in Eclipse Neon.2

I have downloaded ADT Plugin for Eclipse. I don't see Android anywhere either when creating a new project, Preferences or "Customize perspective"
I have searched for the answer but I couldn't find it. The only thing that I didn't try is opening "command group availability" tab mentioned in forum not showing Android And AVD manager in eclipse because I can't see it at my setup.
I'm using Eclipse Neon.2 with JDK jdk1.8.0_121. I didn't add a PATH variable in my system. Not sure if I have to or not.
Android ADT doesn't seem to work for me in Neon too (same errors and long time search on startup without results)
There is a new Eclipse Android dedicated IDE now at https://eclipse.org/downloads/packages/eclipse-android-developers-includes-incubating-components/neon2 Must be installed in a separate folder with separate workspace (and renamed if needed) and all existing Android projects can be moved there. Afterwards i uninstalled ADT from the original Eclipse folder.
There is Installation Instructions for Google Plugin for Eclipse 4.6 (Neon)
https://developers.google.com/eclipse/docs/install-eclipse-4.6
It appears that either Eclipse Neon.2 stopped supporting ADT or that it has issues with it. I went back to Eclipse Neon.1 and I can find Android references all over, so I think the issue is something to do with Eclipse Neon.2.
Thanks to all of you who tried to help.
UPDATE:
It appears that for Neon.2 there is a separate package for Android that you can find here:
http://www.eclipse.org/downloads/packages/eclipse-android-developers-includes-incubating-components/neon2

Android : R class stopped getting generated

I am a newbie to android programming .I was doing tutorial from Commsware tutorial , to be precise T3 tutorial during which I cleaned the project.After that R class file has stopped generating.
I deleted that project,looks like the same error is getting propagated to other new projects I am creating.
This error is coming for the newly created project also.
I tried all the solutions in stackoverflow like : cleaning project,selecting android version in build path , deleting my workspace,freshly install eclipse etc..
The other intimidating thing is my res folder does not show any errors and my xml file does not contain any capital letters.
It must be some silly error which is causing this?
Perhaps you should take a look at this if you've recently updated SDK tools.
After updating to SDK Tools to rev. 22 for the first time, you may need to relaunch Android SDK Manager again and install a new item: Android SDK Build-tools.
After installing this, clean your projects and rebuild.
this happened to me after updating the android dev kit and esclipse.
couple of things you should try.
if you updated ADT, you must restart ADB server. you probably haven't read the message that says after update. or maybe restart whole pc.
if you're using external jar files, rename the libs folder to lib and revert it back to libs (from eclipse, f2)
There seems to be a problem with the target build settings within your projects.
The R file will not be autogenerated if there is the slightest error in your project. E.g if you use elements in a layout xml file that are available only in Android 2.2 but your project targets android 2.0. Sometimes the offending elements don't show up as errors because, syntax-wise, they are correct.
I advice you look at your target builds in android manifest.
Or target a higher android build (Get the latest one via SDK manager)

Error found after importing archive file in eclipse

I am a very beginner in android development using eclipse..
I have given an assignment to modify the android application made by a professor..
so I downloaded the file and imported it to eclipse.
My professor can normally run the program..
however, when I tried to test it before modication using simulator, " the application is forced to stop unexpectedly" is shown..
Moreover, I found that all .java file in src contained "x" ...and the codes in the .java file, like "import android.graphics" or "private class xxx" all contained error..which i have been told that "import andorid.graphics" cannot be resolved..
Could anyone tell me what's wrong with the codes...
and kindly provide me the procedures to fix this problem?
is it possible for me to send the zip file to someone..so that he/she can help me find out the problem??
Make sure the Android sdk and ADT are configured properly in Eclipse and you have updated the relevant packages using SDK Manager. Best way to test this is to create a HelloWorld Android app
http://developer.android.com/sdk/installing.html
Assuming that you have correctly installed the same Android SDK that your professor is using, the first thing to try is to right click on the project name, then select Android > Fix Project Properties.
I've often found that importing existing Android projects into a workspace can be problematic, especially when the project comes from a different machine. A work-around is to create a new Android project, then copy all the sources and resource files into the new project. It's a pain, but it avoids many problems that arise due to different development configurations.

Not able to create new android project in android

eclipse is working fine with importing a project which already exist. But i am facing problem while am creating a new project in the android.
And then am trying to change the path in the properties of the project which i have created then it is showing some kind of error and screen shot of it is
Can any one help me in this.
Assuming your d: drive is an actual hard drive you have the android-sdk in, and not some DVD/CD drive you tried installing the android-sdk from.
You should click on your new android project folder, right-click and click on "close unrelated projects", then the right files will get generated correctly (re-initiate a manual rebuild if you have to).
The problem was that Eclipse was trying to rebuild all the projects you had in your workspace, a number of which already contained errors in them. Not only those other projects were clogging up your error log, but when an error is detected by the packager/builder, the building process gets stopped entirely.
Now just in case this wasn't your only problem, do Help > Check updates
After that, click on the menu Window > AVD Manager and something
and make sure that you have the latest SDKs and AVD updates already installed.
Also be aware that Pulsar is not the recommended version of Eclipse for doing Android development, although this probably wasn't what was causing your problem.

Categories

Resources