Weird Eclipse error on demo project - android

I just imported a demo project and it contains one error. The error is underlining the "p" of package on the header of one class. See image below. I have run project clean, etc. Nothing gets rid of this weird erroneous error:
This project demo was download from here.

Right click on your project > Properties > Android > Select an Android version.
OR
If above solution is not eligible, you have most probably not added Google Map Api to your demo project, It can found here

Related

Noclassdeffound exception com.parse.Parse in android

I am using parse-1.9.3.jar file in my eclipse tool for android development, but i am facing the noclassdeffoundexception while am running my app and my app is crashed. How to fix this issue, i am very much struggle in this point.
I followed some points
I download the parse-1.9.3.jar, copy and paste in lib folder then right click on that parse-1.9.3.jar file then i clicked add to build, this way is not working
Right click project--> project properties--> order and export tab --> checked android private libraries and parse-1.9.3.jar file, this way not worked
java.lang.NoClassDefFoundError: com.parse.Parse --> no use
Libraries do not get added to APK anymore after upgrade to ADT 22 --> NO use
NoClassDefFoundError with parse -->no use
https://en.wikipedia.org/wiki/Classpath_%28Java%29 this is also no use
Please help for how to fix this error and run my app successfully
Thanks in advance

App compact v7 error

I am trying to modify my code to include the latest nav drawer as seen in Google play stand. For this the first step is to add the app compact v7 to my project. I first updated my SDK and then imported the library project. It threw some errors, I gooogled and set the version to 21 in Project properties. The errors were resolved.
Now when I try to add this to my project by importing the library I get all sort of resource not found errors. I am clueless as only after adding the app compact v7 to my project as a lib I get these errors what can be possibly wrong here?
I am following steps exactly as defined here
Here is the screen shot without any errors on app compact v7:
Right click on project --> Go to properties --> Go to Android --> Set Project Build Target as Android 5.0 or 5.0.1 --> Apply......Hope this will solve your problem

Android: Google Map V2 not working as expected using eclipse

I'm integrating google map v2 to my android app, I'm using Eclipse with minimum SDK Version version 10. I'm using a Samsung Galaxy Ace as a test device.
I've read and done the necessary steps in this site:
http://developer.android.com/google/play-services/setup.html
https://developers.google.com/maps/documentation/android/start
I've also consult this tutorials:
http://www.vogella.com/articles/AndroidGoogleMaps/article.html
http://www.androidhive.info/2013/08/android-working-with-google-maps-v2/
The problem is that the google-play-service_lib seems to be not included although I have done the step Project > Properties > Android > Add: google-play-service_lib
Here is a screenshot:
I've tried solving this problem by doing Project > Properties > Java Build Path and adding the google-play-service_lib, but this will cause a runtime error java.lang.noclassdeffounderror: com.google.android.gms.R$styleable
Has anyone encounter this problem, and how did you solve this?
Make sure that your project code and google-play-service_lib's code are at same place otherwise it will keep fireing import error.
As you said
I add the library project, it is green. But when I visit the Project > Properties > Android part again, it will be red.
Just copy your project into your workspace or if its already copied into the workspace make sure you have also copied your Google-play-services library into your workspace otherwise it will always give you library error as it will not get the library available into your workspace.
The problem is because when you are importing lib project at that time you haven't copy that project in to workspace.
So finally when import it enable "Copy to Workspace" checkbox.
And after that give a reference to your project like below image.

Project 'HelloFacebookSample' is missing required Java project 'facebook'

I have been following the instructions for integrating the facebook SDK into my apps. I have succeeded in getting all the given sample apps to compile and run except for "helloFacebookSample". For this I get a compilation error:
Project 'HelloFacebookSample' is missing required Java project 'facebook'
My understanding of projects/libraries/build paths etc is a little hazy, but I can not work out why this should fail where all the others succeeded.
Here's a screen grab of my properties window for HelloFacebookSample:
I can confirm that the directory:
c:\android stuff\facebook\facebook-android-sdk-3.0\facebook\bin
contains a file facebooksdk.jar
Any ideas?
EDIT: Thrashing around some more, I just clicked on the "projects" tab that you see in the screen grab above, and saw that it says "facebook (missing)". I'm a bit confused because I thought that projects may need to rely on libraries rather than other projects... but still I have no idea how to resolve the problem. I don't seem to have a project called simply "facebook"...
Edit: thrashing around some more, I just experimentally deleted the "facebook (missing)" from the java build path and then did an "add" of "FacebookSDK"... I thought this was cluttching at straws, but to my surprise it worked!!! HelloFacebookSample compiled and ran!!! - I have no idea what's going on though and would still like an explanation.
The previous version of the Android Facebook SDK referred to the project as 'facebook'. It looks like this sample was not updated to delete the old reference, and add the new one to 'FacebookSDK'. You took the corrective steps to resolve this yourself already by modifying the Java Build Path of the project.
The problem will easily be removed by simply going to the properties of your project and right clicking it, then go to project tab, select the project which prompts missing and remove it.
Now click on project->build project->clean
Now run your project and it will surely do fine

ViewPagerExtension example Android github

I am trying to use viewpager Extension from android github https://github.com/astuetz/ViewPagerExtensions
I imported the example in eclipse and started getting many errors one if which is below.
for the activity_fixed_icon_tabs.xml layout.
The following classes could not be found:
- com.astuetz.viewpager.extensions.FixedTabsView
Can someone please guide me to use this ViewPagerExtension in eclipse?
ViewPagerExtensions is a library and need for run example project
right click on example project > prpoerties > android
then click add button and then select ViewPagerExtensions as library
clean and build your project

Categories

Resources