fbconnect in android to publish comments on user wall - java

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

Related

Having trouble setting up Eclipse for android development

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!

Cannot resolve corresponding jni function

i read a lot of posts but cannot resolve this yet.
There is my error lines and structure of project:
Some libraries and configs I take from another project... And don't know where I went wrong.
I will give you source code of files if needed
Thank you for any help.
I've also been getting this error since upgrading from Android Studio 2 to 3. The code compiles, but the IDE isn't recognizing the native functions. (This may be due to a preprocessor macro I've created that simplifies JNI function names.)
I've suppressed this error in Java by adding #SuppressWarnings("JniMissingFunction") before my class declaration.
Ok, so this missing 'JNI function' isn't a big deal. I know it's highlighted red, but the function is being linked, just not in a way that the IDE can determine.
First, here's the relevant source code: https://github.com/koreader/crengine/blob/master/android/jni/cr3engine.cpp#L770
CrEngine is linking the functions at run time. The reason why your IDE isn't picking them up is because the CrEngine functions start with Java_org_ instead of Java_com_. If you were relying on the engine to automatically link, this would be an issue, but as stated before, they are being explicitly linked at runtime with jniRegisterNativeMethods.
Do a clean and update your build tools to 25.0.3 (or better) in your gradle.build file. Update your SDKs and NDK. Then rebuild. Some of the errors I saw could be caused by older build tools.

The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files Error on Eclipse Mars Mac OS X El Capitan

please help me. I have a problem.
I am getting the following error:
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files.
This is coming up on my package declaration. I am developing an android app, I got this project off the internet... I tried restarting, changing build path, etc. Please help me!!!
BTW I have no experience with StackExchange... If I'm doing something wrong, please let me know so I can improve. Thanks!
Check that every entry in the project's Java Build Path is valid, especially the one for the JRE. You can open the Properties dialog using the project's context menu, or the Project menu in the menu bar, and use the Build Path property page to make changes.

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.

String cannot be resolved to a type - Java RAD

I've recently started developing in Java (coming from .Net). The IDE I am using is RAD 7.3.
After importing a project, which I need to do some enhancements on, I am receiving this error:
"String cannot be resolved to a type"
This applies to all variables of the String data type, as well as any methods that take string arguements. I'm very inexperienced with Java so I'm not sure how to go about fixing this. My guess is that it has something to do with the way RAD was installed, and that required libraries are missing. Again, not sure how to address that.
Any help or guidance would be much appreciated! Thank you
My guess is you miss the JRE Runtime Library in your project. But this would cause all the java.* classes to generate this message! Can you post your code so we can see what might be the problem?
try doing :
right-click on your project.
->properites
->java Build Path
->tab Librairies
check if the JRE System Library is there.
i am a beginner. i am using Eclipse and got stuck at the Hello World code. Got same error description and also error stating can't resolve 'system'.
After staying frustrated for few hours, as I checked JRE library path and stuff, I just Capitalized 'S' of 'string' and 'system'.. and bang.. problem solved. I hope this helps.
I don't know if this helps anyone, but here I go.
I had the same problem just now in Visual Studio Code (I am on Linux). On my java.home, I had the options in my directory of:
/usr/lib/jvm/java-8-openjdk-amd64
/usr/lib/jvm/java-1.8.0-openjkd-amd64
I had the first one as default, but when I switched to the second one, it all started working properly.
You need to capitalize the "s" in the string.
Another way to solve this problem is in the following way.
Right click on the project-->properties-->Java build path-->go to the
library option
and delete or remove the library that is in error, after this you select add library and download the library that you deleted and ready.
error- string cannot be resolved to a type
Here in the declaring the method "string" in bold is lower case.
Change string to upper case.
Example:
public static string howManyPass(double grd1, double grd2) {
}

Categories