Could not find class 'com.lowagie.text.pdf.PdfReader' [duplicate] - android

My project ran well until I clicked "Help->Check for updates" and installed some components in Android SDK Manager.
In general, there is no error announced in my project. But when I run my project, it causes an error
could not find class com.androiquery.AQuery
I checked out again, I still can see the AQuery library in libs folder and also the reference to this library.
I also tried to clean the project and its dependencies, quite the eclipse, restart the computer, but it doesn't solve.
Do you know how to fix it?

I have had the same issue as you and have fixed it this way.
Go to Properties > Java Build Path > Order and Export and check the Android Private Libraries box.
See the screenshot below:

It may be one of the following reasons:
Setup problems: adding the jar files manually as well as setting the project type to use Google APIs. This cause problems for some reason.
You are calling activity may be inheriting some class that causes this problem.

I assume your are using ADT? if you are, you can download a .zip with all files in it. From the android developer site

Thanks #Raghunandan. The solution is right click on project. goto java build path. choose order export tab. make sure android private libraries is check. Clean and build. Also make sure you have android sdk build tools from the sdk manager

Related

Could not find class

My project ran well until I clicked "Help->Check for updates" and installed some components in Android SDK Manager.
In general, there is no error announced in my project. But when I run my project, it causes an error
could not find class com.androiquery.AQuery
I checked out again, I still can see the AQuery library in libs folder and also the reference to this library.
I also tried to clean the project and its dependencies, quite the eclipse, restart the computer, but it doesn't solve.
Do you know how to fix it?
I have had the same issue as you and have fixed it this way.
Go to Properties > Java Build Path > Order and Export and check the Android Private Libraries box.
See the screenshot below:
It may be one of the following reasons:
Setup problems: adding the jar files manually as well as setting the project type to use Google APIs. This cause problems for some reason.
You are calling activity may be inheriting some class that causes this problem.
I assume your are using ADT? if you are, you can download a .zip with all files in it. From the android developer site
Thanks #Raghunandan. The solution is right click on project. goto java build path. choose order export tab. make sure android private libraries is check. Clean and build. Also make sure you have android sdk build tools from the sdk manager

Cleaning ActionBarSherlock creates R cannot be resolved error

I've recently (this morning) updated a bunch of android plugins in my eclipse environment (so I could switch over to Android Studio), however, I decided to return to Eclipse to finish something up. I had to re-import the actionbarsherlock project (4.2.0 library). After I imported, made sure it was running on Android 4.2 and as a library, I cleaned the actionbarsherlock 'library' project. Which resulted in over 200 'R cannot be resolved to a variable' problem.
I've tried all the usual suspects: couldn't find any errors in the res file, tried cleaning, refreshing, closing eclipse in various different orders.
I'm also noticing a new dependency entitled "Android Private Libraries" -- I am not positive it is new from this update, but it could be.
Other information that might be useful:
- there are no gen files (nothing is being generated)
- I also linked it to my Android Project as a library (set to the same API level)
- I've done separate cleans and a clean at once
Any help would be great, I'm stuck on this one and it's driving me nuts.
You have to check the Android Private Libraries in the java build path of the project:
Resolved by updating the API's as well as the tools and everything else I updated this morning. Very weird situation.
In my case I had the wrong Android target. To solve it:
Right click on your project, then Properties, then click on Android and select the correct Project Build Target.
I had Android 2.3.3 and I changed it to Android 4.2.2
I hope this helps to someone.
This problem was stupid(I mean this situation)... and I was using a stupid way to solve it.
update android API & SDK & anything else you can.
Open your library project's Properties window, go to [Java Build Path], [Order and Export]
Use [Up] [Down] button to make sort sequence like this:
After this, it still shows same error, so you have to re-build this single library project again.
Check top menu, [Project], [Clean...]
Clean that single library project, make it auto re-build.
That's how I solve all my library porject's same problem. (ActionBarSherlock, FacebookSDK, SlidingMenu, ViewPagerIndicator)
Sounds like a stupid solution, but just match this stupid situation.
Google, what the hell are you doing ?
In my case I am running 64 bit Linux (Linux Mint) and I had to install 32 bit libraries using sudo apt-get install ia32-libs
After installing the 32 bit libraries I restarted eclipse and cleaned the ActionBarSherlock library and all is good
Are you using the Android support library?
I had this error because I had a different version of the Android support library jar in ABS vs. the rest of my project. Make sure the support library jars you are using are identical in every project.
Strangely enough, this issue gets fixed when I add old flavors of Android SDK build tools: 18.x and 17.x
(For some reason, I uninstalled some of those)

Unable to configure Facebook SDK in eclipse

I did all the steps according to the facebook tutorial on how to configure the facebook SDK, and without any luck, also tried the github configuration as shown Android Facebook SDK configuration on Eclipse
And I'm still getting in the eclipse environment a "!" sign by the side of the project I included Facebook to it. and when trying to run, it says I have errors.
Without the Facebook SDK I managed to work great on my project and run it, so it is not a problem with my project..
What can I do?
I was trying to get started using Facebook's SDK for Android with Eclipse and couldn't get it to work. After trying different things here is the solution that consistently works:
1) Import (File->Import->Existing Android Code Into Workspace) just the Facebook SDK folder alone (PATH\facebook-android-sdk-3.0.1). (Do not check the copy to workplace)
2) Import (i.e. PATH\facebook-android-sdk-3.0.1\samples\ProfilePictureSample) just one of the sample projects (for now). I will be using ProfilePictureSample as an example
As you can see, Eclipse throws errors saying that it doesn't know what FragmentActivity in ProfilePictureSampleActivity. FragmentActivity is part of the android support library. If you take a look at the package explorer, there is not a libs folder or any reference to the android support lirbary; It is on the FacebookSDK library. We need to tell Eclipse to export it.
4) Right-Click on the FacebookSDK library then click on properties. On the left menu go to Java Build Path. Then under the Order and Export tab check Android Private Libraries (you can also click on the android-supportv4-jar instead).
5) Project->Clean
Now for some reason (maybe somebody can elaborate on this), the sample project also needs to export the android support library.
6) Right-Click on the sample project (i.e. ProfilePictureSample) then click on properties. On the left menu go to Java Build Path. Then under the Order and Export tab check Android Private Libraries.
7) Project->Clean
Hopefully this helps!!
please set the Android Api for this project by this steps below
Rightclick on project->properties->android->set android Target version
Also remove Facebook library project once and again add it.
The problem was that the path to the android-supprort-v4.jar wasn't correct..
Fixed it by setting the correct path.
Import the sdk without copying the project to workspace. this solution has worked for me and does not present any errors

Eclipse: Java Build Path is missing

I'm trying to use Google's SDK Tutorial for Android using Eclipse. I was able to get the first two projects to work, but when running the third R.java disappeared so I gave up on that.
I made a brand new package out of the solution set for exercise 3. It was full of errors, like files being in src/com/android... instead of com/android. I fixed that, but it still wouldn't build.
I went to the project -> properties -> Java Build Path, but Eclipse throws an error: "The currently displayed page contains invalid values." It then doesn't load up that window at all.
What am I doing wrong? How can I import this project properly?
Please check your Window>Preference>Android>sdk location --- is set to be the path of android sdk and if it not works then please go with new eclipse software delete previous check jdk is install and after that set correct android sdk location to above path.
Thanks
If the first two projects still work, then your studio is probably deployed properly.
You might want to check if you have a build target set.
Right click on project->android->target name.
Otherwise, might make sense to re-download eclipse and reinstall the google adt plugin.

LicenseCheckerCallback cannot be resolved into a type

I've just started playing around with Android Licensing and I ran into this problem.
I have created the library project and linked my application project to the library project. It was working fine for some time, but after I installed Google APIs package from the Android SDK and AVD Manager, my projects were rebuilt and I came across this error. Nothing in my code was changed whatsoever and I was just wondering if anyone knows what happened or how to fix it?
Thanks!
EDIT: When I chose the option "Fix project setup..." and "Add project 'licensing_proj' to build path", it adds the library project as a project in the build path and gives me this error when running the emulator: Could not find licensing_proj.apk!
I had same issue, but after I removed all the same libiary referenced, and added the library in project properties->android page, and recompile, works.
http://developer.android.com/guide/developing/projects/projects-eclipse.html
Not exactly sure what happened but removing and adding the library as a new project worked.

Categories

Resources