Crazy issue with setting up eclipse for android development - android

I've really searched and could't find a solution for the problem, so i'm using eclipse, if i try to create a new android application project and choose full screen activity it tells me that the template depends on android support library which is either not installed or old, when i click the install/update button to solve the issue it says android support jar (android-support-v4.jar) not found, i've seen videos about modifying the build path... but i can't even create the project to change its build path, any ideas about how to solve the issue?!!

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 SDK missing in Intellij Idea Community After installation

I am not able to resolve the error of Android SDK missing in Intellij-idea i tried as instructions mentioned in the image also i searched it on google and also tried some methods of stack overflow but it's still not resolved so please if anyone know then suggest the solution for it...enter image description here
This post (How do I set up IntelliJ IDEA for Android applications?) helped me, but had to download Android Studio and install the tools through the wizard when first launching the program.
Then I started IntelliJ and created a new project (not Android) and went to File>Project Structure and added a new Android SDK under SDKs. You have to choose the path to the SDK int the finder. To do this make sure Library is visible (see here: http://www.macworld.com/article/2057221/how-to-view-the-library-folder-in-mavericks.html) and go to Libraries>Android and choose to open SDK. After that I no longer had the problem of not finding the SDK when creating a New Android Project.

Cannot create new Android Projects in Eclipse

Using 3.6.2. When I choose to create a new Android Project, I enter a name, 'FirstProject' but the Finish button remains hollow and I cannot get past creating the project.
I did a little Google research and found a common cause of this is that the support folder that exists in the SDK's extras folder needs to be duplicated and the duplicate named to compatibility. I've done this now, and restarted Eclipse, but this still hasn't fixed the issue.
I also read that Juno causes this problem, but I'm not using Juno.
Has anyone experienced this problem before? Very eager to start an Android App!!
EDIT: A screen of the error:
You need to choose a Build SDK. If there is nothing in that drop-down, please visit the SDK Manager (Window > Android SDK Manager) and download one or more SDK platforms and associated emulators.
Make sure you add the SDK in Eclipse otherwise you will download them all and scratch your head on why they are not working.If you launch SDK manager form SDK folder and not from Eclipse it does not seem to register in Eclipse that you have downloaded these files. Took me several hours for something that should have taken only one or so.

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