accidentally removed android dependencies folder - android

I accidentally removed the library: "android dependencies". Is there a way to retrieve it or import/download? A person suggested me to "go to source and say order import export for all libraries you need except the android defualt libs.." but I don't understand exactly what it means. Any advice would be greatly appreciated!

Another stackoverflow post contains solution to this problem.And you do not have to restart eclipse.
Just right click project->Android Tools -> Fix Project Properties
and your Android Dependencies folder appears.

Look at project.properties file. You will see android sdk version(Example : target=android-4) which you used. And then Project -> Right Click -> Java Build Path -> (Your SDK folder -> platform -> android-x(your api version number) -> android.jar(Select this)). And clean your project. Try this.

Related

How to include GitHub library to your existing Android project in eclipse

I want to include this library from github to my existing project, I am using eclipse.
Is there any tutorial on how to do this? I am new to android and java development so any step by step help would be great!
note:
I have an Egit plugin installed in eclipse.
Image of the screen when I try to Import the library from the unziped file I have downloaded from the github page:
Also after importing the library as suggested below a library folder created in my Package Explorer but here is what I get:
I have now the library in the eclipse Package explorer, and now I want to add it to my project, so I Right-Click on the existing project and choose properties. Under Android liabrary i click ok and choose the library than ok, nothing happens!
Right click on your project -> properties -> Android -> Add. There you can hose a library.
I got the same problem as yours, please check my answer here , hope it helps.
Extract the zip,
Right click in your workspace -> Import -> Android -> Existing Android Code Into
Workspace -> give path of that project/library
Done.

ActionbarSherlock not working

I am having problems getting start with the ActionBarSherlock. I downloaded the 4.1.0 version and followed the following tutorial for installing it.
http://www.youtube.com/watch?v=4GJ6yY1lNNY
The Problem I am facing is whenever I make a new project and add the library project of ActionbarSherlock to it. I get the following error.
Description Resource Path Location Type
The container 'Android Dependencies' references non existing library 'C:\Work\JakeWharton-ActionBarSherlock-4.1.0-0-g9598f2b\JakeWharton-ActionBarSherlock-88fc341\library\bin\com_actionbarsherlock.jar' myapp Build path Build Path Problem
Please anybody help me with it.
I just had the same problem: A .jar file is requested, but non-existing. Also, it is okay that the file doesn't exist, because we want to use a Android-Library Project and not an included jar-library.
The steps described by Aqif Hamid are perfectly fine, if the missing import (.jar or library project) would be the root of the problem. But i figured out that the reason for this error is that you have to set both projects (AndroidBar Sherlock and your own Android project) to Java Compliance Level 1.6
To do so go into Project Properties => Java Compiler and set the level to 1.6
Of course, you have to install JDK 1.6 on your computer...
Hope this helps you too!
The only thing that it works for me was selecting at Properties at Java Compiler Tab Compilance Level --> 1.7 (It was 1.6).
After that Android Tools, Fix Project Properties
DO the followings:
just like you have bin, res folders. right click on your project and
add a folder named 'libs' (if libs folder is not already there).
Then copy paste your com_actionbarsherlock.jar file in this libs folder.
Right-click on your com_actionbarsherlock.jar file and click Add to Build Path.
Now clean and build your project. You should be good to go.
Edit:
To add project as a library do this:
Make sure you have your library project in your projects list and it
is open.
Right click on your project in which you want to add your library
project and select Porperties.
Click Android in properties windows, now scroll down, you will see
library section at the bottom. There press Add button.
Now a window will open in which you will see list of library
porjects. Select your required project and press Ok. Now that library
project must be there with a green tick mark.
Press Apply and Ok button.
You should be good to go now.
regards,
Aqif Hamid
I am of the understanding that you cannot include ActionBarSherlock into your project by adding a jar to your lib directory (or just including the jar at all). You will have to create an android project for ActionBarSherlock then link to it as a library:
Create ActionBarSherlock project in Eclipse
Right-click your project and go to Properties
Select Android in the left pane
Then in the right pane, towards the bottom you can Add... the ActionBarSherlock project you created in step 1.
If you are curious why the jar approach doesn't work, I give you Jake's reply in this thread
(although that's a month and a half old at this point).
1 - create a libs folder (parallel to manifest) and put the jar in that
Your Project -> right click -> Properties -> Java Build Path -> Libraries -> Add Jar ->
yourjar.jar
This video might be useful in case you are having some issues.
http://mobile.tutsplus.com/tutorials/android/jar-for-android/
Clean your actionbarsherlock project. It will generate the .jar file for you when it re-builds.
Using the Android Tools option to Add compatible libraries fixed the problem for me.

Import existing Android project in Eclipse: no gen source folder?

I'm trying to import an android project into Eclipse (from Git, but I don't think it's relevant), and I can't run or compile it because I get these errors:
Android requires compiler compliance level 5.0. Please fix project properties. Serval-Video-Discovery line 1 Android ADT Problem
Project 'Serval-Video-Discovery' is missing required source folder: 'gen' Serval-Video-Discovery Build path Build Path Problem
I think the first one isn't really a big problem, even if I don't really understand the warning.
The funny thing is that the "gen" folder exists on the filesystem; furthermore, I can't try to create it because it already exists !
What should I do to solve this issue?
Here is the GitHub repo I'm trying to import from: https://github.com/rbochet/Serval-Video-Discovery
Package Explorer -> Right click the project -> "Android Tools" -> "Fix Project Properties"
Project -> Clean
Fixes without having to restart eclipse
Android requires compiler compliance level 5.0. Please fix project properties.
I had the same problem but non of these answers helped me. I found my solution here:
Package Explorer -> Right click the
project -> "Android Tools" -> "Fix
Project Properties"
I had the same problem but solved in the following way
Package Explorer -> Right click the project -> Properties -> Java Build Path -> Source -> your project name/gen -> click on Remove -> Click on Add Folder -> check gen -> Ok -> Ok
Just right click and delete the gen directory from eclipse. If not, try the fix project properties above.
If gen folder is missing under project after importing an existing project into workplace, just create a gen folder under project and that will fix the above error.

Problem importing Android project archives into Eclipse

My apologies if this is a stupid newbie question...
I'm using Eclipse (Helios release) and have the Android SDK all configured as per the developer.android.com recommendations. I can create and run new projects without any problem but I can't import archived project code samples (found on the web etc.) using Import > Existing Projects Into Workspace.
Importing a zip creates a project but it doesn't create it as an Android project and the console displays the error: "Project has no default.properties file! Edit the project properties to set one."
I've tried going into the project Properties but as soon as I click on 'Android' in the properties tree a pop-up appears saying "Could Not Accept Changes: The currently displayed page contains invalid values"
See: http://screencast.com/t/ZmY3ZWQ4
But if I do this on one of my own projects I have no such error, and I'm able to change things such as the Android Platform/API level. I'm also able to archive my own projects (using export) and import them again without any problems... nut not other people's archives! Am I being really stupid?
Any help would be really appreciated!
All the baseline default.properties needs is a line like:
target=android-8
You can most likely copy another projects' default.properties into this project. A (not-so-)quick restart of Eclipse, a rebuilding of the workspace, and you're off to the races.
It's really lame that this is needed -- it should happen as part of the import process, I would think.
just change your
project.properties file to default.properties
and restart your eclipse
it's done..
Right click on the project in navigator window, go to android tools and click on fix project properties. It might work, as it did for me ;-)
You can look at this section, it works for me:
Project has no default.properties file!
If you want to change the library of your project, do that :
- right click on the project name
- Build Path
- Configure build path
- click Android on the left, and select the library you need.
I had the same problem.
What you are trying is little difficult.Just unzip the files ,copy res and src folders
to ur existing project.The problem is the files starting with "." which have settings for their android and eclipse.
So you need to modify all that,so simply create new project or to ur existing one copy res, src and AndroidManifest.xml file.
It worked for me .
In the project right click Android Tools -> Fix Project Properties

Basic android error (Beginner)

Sudoko Android requires .class compatibility set to 5.0. Please fix project properties.
What this error mean?
Please let me know if i need to paste some code..
This is not a problem with the Android projet property, but with the Java Compiler Level. Go in Projet ->Properties -> JDK Compiler and make sure you are using Java 1.5 or Java 1.6.
Source:
Problems importing existing project into eclipse
Does this help?
If you are using Eclipse SDK than
perform following steps to fix your
problem:
Right click on your application name
(within Package Explorer view) ->
Android Tools -> Fix Project
Properties
Source:
http://groups.google.com/group/android-developers/browse_thread/thread/9580edf1ed579e4c/a29027e8ea268fa0?lnk=raot
Here is the solution ...this helps you...
Solution: 1. Fix project: Package Explorer -> Right click the project -> "Android Tools" -> "Fix Project Properties"
2. Restart Eclipse: "File" -> "Restart"

Categories

Resources