Having trouble setting up Eclipse for android development - java

I need to set up a workspace in eclipse to edit an APK so that I can mod it. I have the decompiled and deobfed java sources but I have never done this before, and I can't get eclipse working with android. I have installed the sdk and the software for eclipse, but I have some errors after creating a new basic project. Here are some of the many errors, Probably stemming from 1 problem that I just cant figure out.
XML:
Error in an XML file: aborting build.
\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
Among many, many more XML errors that look similair.
Java:
ActionBarActivity cannot be resolved to a type
R cannot be resolved to a variable
The import android.support cannot be resolved
The method getMenuInflater() is undefined for the type MainActivity
There are definitely some jars that should be in the build path that are not there, but I don't know why they aren't there and what is missing. I probably set it up wrong but I tried uninstalling and reinstalling and that did not help.
Sorry for the shitty formatting I have no idea how to format and this is my first question on here sorry!

Related

Android studio incorrect duplicate class error due to directory junctions?

Is there any way to make android studio stop giving incorrect duplicate class errors ?
Let's say I have A.java that lies inside com.bla.bla.appname (com/bla/bla/appname/A.java).
I created an android studio project that doesn't contain this hierarchy but contains a directory junction inside. So I have this app/main/src/(this is the junction)com => com/bla/bla/appname/A.java).
So the project actually builds just fine (despite of intellisense duplicate class errors), because the A.java file has the correct package hierarchy, but android studio seems simply stupid and not capable of seeing that there is actually no problem at all.
I just want to get rid of that red underlined error, because it highlights my entire root folder as containing errors (fake errors). I can't seem to find any way to supress the duplicate class error or telling android studio that there is no duplicate class.
Anyone has any clues ?

Error on Eclipse ADT while creating an Android Application

I've already tried everything I saw in the forum but it seems that doesn't work for me. I really need to finish this project until Nov. 25th but I'm stuck at the creation of the project.
Eclipse is full of errors, like this:
[2014-11-05 20:59:48 - TEXApp]
D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:190: error:
Error: No resource found that matches the given name: attr
'android:colorPrimary'.
[2014-11-05 20:59:48 - TEXApp]
D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:191:
error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
There's a lot of them, I don't know what's wrong since I installed all the libraries.
Here's how I set up the project:
http://i.imgur.com/Ps6JtBU.png
And this is what I get:
http://i.imgur.com/XhMSWo1.png
Some times I delete the components which have errors, but I still get the themes_base.xml errors and my R.java is not generated.
Sorry for the long text but, I don't know what to do, hope you can help me, thanks!
if your application has the reference of the library appcompat_v7, Delete the android-support-v4.jarlibrary of your project under /libs folder, that is already defined into the appcompat_v7 library.
Having two android-support-v4.jar libraries defined into the same project are causing that problem.
Install the last version of the SDK, the problem was solved.

Android Java compiler error (compiling old files?!)

I refactored some packages in my IDE and everything seems to be ok. But when I compile my app I get an error that file x.java can't be read in x.java.
Both files are located in the old packages which do not exist anymore.
The package definition is fine in all classes. Also the Manifest is fine.
I'm using IntelliJ IDEA from JetBrains.
java: error reading K:\APP\src\com\renemaas\android\APP\About.java; K:\APP\src\com\renemaas\android\APP\About.java (The system can't find this path)
I hope someone can help me with this problem.
Note: Yeah I have search for nearly 1 hour to solve this problem on my own. I'm new to Android development.

Error after creating an android project in Eclipse

Each time I create a project and add, for example, a TextView, Eclipse gives me the error:
Type Error executing aapt: Return code -1073741816 test3 line 1
Android ADT Problem.
Tried to solve the problem by:
deleting the SDK bundle and then downloading it again;
cleaned C drive (as it also used to give an error that res.bin could not be created or something like that);
Plus says 'R cannot be resolved to a variable' when I open the MainActivity.java file.
Any help will be much appretiated
I would suggest you to move your project(eclipse.exe and re install sdk) folder along with Eclipse and sdk to a new directory and since the old one will always reference back to the paths that might contain errors. Once the new directory is up with no errors u can direct the eclipse to your older workspace.

fbconnect in android to publish comments on user wall

I followed the steps in http://www.mobisoftinfotech.com/blog/android/845/ but fbconnect API is a Java project but using Android package so its throwing error. So can anyone help me to complete this?
java.lang.enum
Description The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files
Resource FBLoginButton.java
Path /fbconnect-android/src/com/codecarpet/fbconnect
Location line 1
Type Java Problem
There still doesn't seem to be enough information but it seems like your problem might be related to your configuration in Eclipse (if you're using Eclipse of course).
These answers might help figure it out:
Can not compile enums in Eclipse
Android: The type java.lang.Enum cannot be resolved

Categories