Error in Eclipse Juno - java

Goodafternoon community! total beginner here. I am developing my first android app and have downloaded all what is required in running Eclipse Juno as well as files from SDK manager. But when I'm creating a new Android Application Project I encounter a couple of errors already.
It says,
Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
(^in red)
AND...
WARNING: unable to write jarlist cache file C:\Users\Nokia\thesis2\appcompat_v7\bin\jarlist.cache
(^ in black)
Can anyone help me. Thank you very much everyone! :-D more power to you guys!

You should add support v7 library in your project. If you are not installed it using SDK manager,
Android developer site will help you.
After that the AppCompat Can be found at
android-sdk/extras/android/support/v7/appcompat
You need to reference this AppCompat in your android project.
Import the library to eclipse.
Right click on your android project.
Goto Properties.
Select Android.
Click Add Library and reference the same.
Clean and Rebuild your project

Related

Android - Eclipse project making and R file error

I'm having issue with Eclipse and I work in android. This issue happens when I create a new project and when I click finish, It auto generates the project without R file and The project creating window doesn't closes and I have to close it. I have many old projects which work fine(Until now) and the issue is only coming when I make a new project. I also get a error in Styles.xml file saying that "Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'". When I press CTRL+RightClick onto R file then it takes me to a window which says "Source Not Found". If you have any solution for this, Please post your answer under this question. Thank you!
EDIT: Appcompat error was solved later.
To solve missing R in generated java files, make sure that Android SDK Tools and Android SDK Build-tools are installed and updated in SDK Manager. Then, make sure Eclipse is updated. After this, clean your project and rebuild.
To solve No resource found "...AppCompat...", make sure Android Support Library is installed and updated in SDK Manager. Then, the AppCompat library can be found at:
android-sdk/extras/android/support/v7/appcompat
You need to reference this AppCompat library in your Android project.
Import the library into Eclipse. To do so:
Right click on your Android project. Select properties. Click 'add...' at the bottom to add a library. Select the support library. Finally, Clean and rebuild your project.

Android: Eclipse : Project could not build due to cannot delete v-7appcompat

I have created an Android application API 21 using Eclipse luna. I have only API 21 installed on my pc. Initially I faced error of "could not find resource......" for which I found that I got to add support library v7-appcompat. Tried various ways to add the jar, nothing worked. So finally I added the appcompat project to my project. That solved that error.
Then on re-start Eclipse got new 3 errors - Unable to load API 19... (something like this) in appcompat project. In appcompat project int project.properties I changes the target API from 19 to 21. That solved 2 errors.
Now the 3rd error, that I am not able to solve :
Description Resource Path Location Type
The project was not built due to "Could not delete '/android-support-v7-appcompat/bin/classes/android'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent android-support-v7-appcompat Unknown Java Problem
I deleted v4-appcompat from my project/libs folder. But yet no results. The /libs & /Android Private Libraries in appcompat both contains v4-appcompat & v7-appcompat.
In my project, I found in /bin/dexedLibs their are 3 jars - android-support-v4-c7810708df94d8bfa4383f5149ab5d83.jar, android-support-v7-appcompat-892bfc35ccacd9325da1c2c80a3f3acb.jar, android-support-v7-appcompat-c13bc4563c36037596e53cd84b2614f2.jar
Can you let me know what is the problem and how should I solve it.
Any help is highly appreciated. I am in hurry to start working on the project.
Thanks
Try creating a new project: Eclipse Luna should create automatically (if not already there) a library project called appcompat_v7 when creating a new project. Also automatically a reference to the library project appcompat_v7 is added to the new project. At that point it is ready.

Android:Error an Exclamation mark in my project how to resolve it

i got a pop up when i started my android eclipse stating that there is a new version which has to be upgraded for 22.6.2 version but your sdk is in 22.3 version even i had error that sdk is not installed in your eclipse so i went to help-> install software added repository then restarted my eclipse.
after that i added my code as usual to start coding my project but i got an exclamatory mark near my project when i compile dialog box appears as you have error in your project
Exclamatory mark shown in image
Next i went to show view -> problems . to check the problems i got an error stating about Android dependencies
next i went to quick fix the project but dialog box appeared
after fixing i got an error in jar file itself as shown below
in this we can check the errors
i am not able to resolve the error in the jar file can anyone help to resolve it
thanks for your time and help in advance
You need to reference AppCompat.
Download the support library under extras from Android sdk Manager.
AppCompat is located # android sdk/extras/android/support/v7/appcompat/
Import the library project into workspace.
Select File > Import.
Select Existing Android Code Into Workspace and click Next. Browse ( android sdk/extras/android/support/v7/appcompat/) and click finish
Right click on your project. Goto properties. Android. Add. Browse and Reference AppCOmpat.
Done.
Snaps
Library project imported to eclipse
Referenced AppCompat
You can try thus. Such as
You have updated the android sdk but not updated the adt to match with it.
You can update the adt from here
You might need to update the software source for your adt update
Go to eclipse > help > Check for updates.
It should list the latest update of adt. If it is not working try this
go to eclipse > help > Install new software
Click on add
add this url : update adt dynamically
give it any name.
It will list the updates available- which should ideally be adt 20.xx
Eclipse will restart and hopefully everything should work fine for you.

In-App Billing Android and bug

Good evening, everybody.
I'm trying to debug the In-App Billing project. The sourse which I use, is
https://github.com/blundell/SimpleInAppPurchaseV3
I'm facing the problem from time to time:
Suddenly the project in file Log.java gives two errors:
1. The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
The error shows near the first symbol of the file.
R.java cannit be resolved! And gen-folder doesn't recreate! No errors in xml-files.
IabHelper.java shows the error: The import com.android.vending.billing.IMarketBillingService cannot be resolved
So if delete com.android.vending.billing/IInAppBillingService.aidl file and recreate it (by copy-paste) nothing happens.
What am I doing wrong?
I think your problem is just the latest update of the SDK.
Test the following operations on two projects :
In the project properties (eclipse) -> java build path -> order and export make sure that all your jars in the libs folder are checked.
And "Android Tools -> Fix Project Properties"
And "Project -> Clean"
If your problem persists try this:
Remove your project
Close eclipse
Import your project again
I hope you have helped!
Try this one.
1) project properties-> java build path-> order and export
make sure you have checked true all files that I have listed below:
Android Private Libraries,
Android Dependencies,
your all jar and libraries you have added.
2) check your SDK manager you have updated all required versions for
--> Tools: SDK Tools, SDK platform tools, SDK build tools.
--> Android 4.2 or what ever you are using, Google Map and SDK Platform should be updated latest.
--> Extras: Google Play Services,Google play billing libraries
also make sure you have not imported wrong variables or any class.
Hope it will help you.
Simple solution.
Rename your package name from com.android.vending.billing to com.android.vending.billing2.
Refresh project.
And after that again rename to com.android.vending.billing. And it will work.
In Android Studio click "Make Project" after adding "IInAppBillingService.aidl" file to your project. Then Android Studio can import "IInAppBillingService" class after press Alt+Enter on IInAppBillingService class.

No Android Project option in Eclipse with ADT Plugin

I'm an experienced programmer and android user. I'm following a guide for creating the android project in eclipse from the android developer site, and I've followed every step up to creating the project, and the ADT plugin has been correctly installed and configured. The problem: Under the android tab in the new project wizard there is no option for android project. There are various other android options like Android Activity, Android Application Project, Android Icon Set, etc. Does anybody know how I can enable the option for Android Project? I have searched this site, along with various others, and nobody seems to have the same problem. Here is a link to an XDA post I made about this problem: http://forum.xda-developers.com/showthread.php?t=1747568. I attached a picture of the problem. Thank you! Here is a picture of the problem: http://i.stack.imgur.com/8mRFi.png
With the latest ADT (20) a few changes were made to the UI and the tutorials in the Android Training section are a bit out of date. You are probably looking for 'Android Application Project'.
An Android Application Project is an Android Project.

Categories