The project cannot be built until build path errors are resolved - android

i dowloaded from here:
http://sourceforge.net/projects/redpin/files/release-3.1/RedpinAndroid.zip/download
i am using win8, ECLİPSE eclipse-standard-kepler-SR1-win32
i imported project and googled this problem. I tried project > clean section , it didnt work.
and also i tried properties > java build path > add library > jre system library for adding redpind library , it didnt work either. how can i solve this problem? thank you.
errors is:
The project cannot be built until build path errors are resolved
Project 'RedpinAndroid' is missing required Java project: 'RedpinCore'
these are classes
this is properties>buildpath
this is error page

This project depends another project named RedpinCore, so in order to build this, you need to reference the place where RedpinCore project resides, so that your project can find needed class definitions. Instead of this, you can remove this dependency, and add this jar to your classpath. The same classes can also be found in this.
Right click on your project Build Path/Configure Build Path...
Under Projects tab, right click on this project dependency and remove it.
Then copy the jar to your project and add it to your classpath.

Related

Project library not getting added to android project

Iam trying to reference a Android project library to my application. I do this:-
1)File->Import->General->Existing project into workspace->Select project library->check copy to workspace.
2)Right click on project->Properties->Android-> Add-> Select project library-> Apply-> ok.
But when I again check if the library is added I get the following:-
How do I resolve this?
Make sure that your library has the same location with your project source files.
It means that if your source is on your workspace , then your library should add into workspace. If not, you should copy your lib into same folder with source then mount it again.
Make sure the library project is checked as a library.
Go to the library projects BuildConfig -> Android -> Check "is library"
Make sure your project and the library project have the same target/min SDK versions.
It's also a good idea to clean your workspace and Build the library project - Right click on library project -> "Build Project"
Try this answer:
The project name needs match the folder name on the file system. What you are seeing in the Project Properties->Android->Library Reference is a relative file system path.
Reference:
In eclipse, unable to reference an android library project in another android project
Thanks to archie-bpgc for comment
i am also facing this problem i have solve this problem like
when import lib in to workspace tick mark as show in picture (basically library project and your project both are in same workspace)
now add lib to your project and clean project
you need to import the project to workspace and the library file into the same workspace.
Then you will not face this error. Kindly the root cause is not known. But this method works.
After all this .. one more way is you can alter the project properties last line where the library file path is specified.
Thank you.

Cannot compile CastCompanionLibrary in Eclipse

I want to use CastComponaionLibrary but I'm using Eclipse and not Android Studio.
So I created a new project and copied all CastCompanionLibrary sources into it.
I also added references to:
android-support-v7-appcompat
android-support-v7-mediarouter
google-play-services_lib
In this new project I get these compilation errors:
The project was not built since its build path is incomplete. Cannot find the class file for android.support.v4.app.ActionBarDrawerToggle$DelegateProvider. Fix the build path then try building this project
The type android.support.v4.app.ActionBarDrawerToggle$DelegateProvider cannot be resolved. It is indirectly referenced from required .class files VideoCastControllerActivity.java
any ideas?
Thanks!
First, you don't need to include v4 library since that is part of the v7 libraries, so remove that. Then follow the instructions in this G+ community post
I don't know why but I solved this problem:
In android.support.vX -> Properties -> Java Build Path -> Projects -> Add
Choose the related project/s to the android.support.vX
Press OK
Do the same and remove the project/s added

Type The container 'Android Dependencies' references non existing library android-support-v7-appcompat/bin/android-support-v7-appcompat.jar

I just got some kind of error when trying to using Action Bar Compat support library to my project, I don't know what's wrong, because I have followed the instructions from this link > http://developer.android.com/tools/support-library/setup.html
So, this is the screen shot of the error ..
I also encountered such problem. My error was:
The container 'Android Dependencies' references non existing library 'C:\development\adt-bundle-windows-x86-20140702\workspace\appcompat_v7\bin\appcompat_v7.jar'
To solve this, I went project>properties>java build path>libraries>add jars>appcompat_v7>libs>, then I selected android-support-v7-appcompat.jar. After this, I went to project>clean. This fixed the problem. Hope you find my hint helpful.
As in the instructions you mentioned, please make sure to follow this step to add .jar files instead of directly go to Properties > Java Build Path > Libraries to add them.
In the new library project, expand the libs/ folder, right-click each
.jar file and select Build Path > Add to Build Path. For example, when
creating the the v7 appcompat project, add both the
android-support-v4.jar and android-support-v7-appcompat.jar files to
the build path.
I just had this issue, when creating a new project. After following the instructions from the link you provided, close your project, then close Eclipse, restart Eclipse, open your project then clean and build your project. This did the trick for me.
These days I used the latest android support library 21 and got the same issue.
I followed the answer of #dazilli,but do not work.
Just now,I updated the JDK from 6 to 7,then it solved the problem.
First of all cleanup a library project and build project check library project has bin files after that clean your project its work for me
andriod platform must be android 5.0 and set 'target=21'
make sure download Extras
In my case the files were in appcombat_v7/lib folder, so what i did is right-click the .jar files (there will be two files select android-support-v4.jar) and then select Build Path>Add to Build Path. What it does is that it adds this file to the Build Path (i.e it will add this file to the "bin folder") which will solve the problem.

java.lang.NoClassDefFoundError when trying to run tasks-android-sample

I have been trying to run the sample code available at http://samples.google-api-java-client.googlecode.com/hg/tasks-android-sample/instructions.html
I have included all jar file needed to resolve the dependencies. My project doesn't contain any error but when i try to the program it give me following error:
java.lang.NoClassDefFoundError:
com.google.api.client.googleapis.auth.oauth2.GoogleCredential
I can see that the above class file is present in my reference libraries still the code is not running. Trying to solve this from 2 days. Please help
I think you should drop these jars in a folder named /libs at the root of your project. See this SO question: How can I use external JARs in an Android project?
Have you included your libs in the java build path and checked it in the Order and Export Tab?
i.e
Project > Properties > Java Build Path > Order and Export > and finally, checkmark your imported library.

VerifyError in android test-project build tools v17

Since installing v17 of the android build tools I am getting a VerifyError in my test project.
A short description of my project structure:
All jar files exist in my main projects libs folder
The test-project is a project that resides inside my main project
All Instrumentation tests exist in the same package as my activities.
I have one jar that is only needed for the test projects in my libs folder in the test project
Has anyone seen this? Its happening on all my projects since updating. Running the test produces an InstrumentationException: java.lang.VerifyError
x...#android.com made a temporary fix for an issue I reported: http://code.google.com/p/android/issues/detail?id=27608.
You can try to see if the new anttasks.jar file can fix your problem.
It fixed mine. NoClassDefFoundError when running Instrumentation test with ant
In my case, I have a test project using the library of "robotium".
I'd had the same problem, and soleved by following steps,
"Properties > Java Build Path > Libraries", delete "Android Dependencies" in my test project.
"Properties > Java Build Path > Libraries", delete two robotium jar and click "Add JARs" to re-import robotium jar in my test project.
"Properties > Java Build Path > Order and Export", check two checkbok of robotium jar (and othera you want exported.)
Clean my test project.
I think you also solve the problem, Good Luck!
more information
How to fix the “NoClassDefFoundError” with ADT 17
Dealing with dependencies in Android projects
in my case, first, add robotium-solo-2.5 in properties->build path->Libraries,and then move robotium-solo-2.5.jar to the top in properties->build path->Order and export, finally i solve this funny problem easily...
“Properties > Java Build Path > Order and Export”, and check all the references you want exported.
The way Android deals with dependencies has recently changed. If you are using eclipse, then just remove your jar imports and place them in a "libs"-folder in the project root, and everything will be imported automatically.

Categories

Resources