I updated my Google App Engine SDK on Eclipse as soon as I restarted Eclipse, the application couldn't resolve all the references to javax.* and com.google.* packages.
by searching the internet, I found how to restore the javax api's (by including the relevant jar located in the apache library), but I can't find any similar explanation about how to restore the Google api's.
Any advice would be appreciated.
Does this happen for newly created projects too? You could try Doing "project"->"Clean" or close and re-open the project to make sure all new dependencies are loaded.
Related
I'm trying to do Firebase Admin SDK app (with Java). I have included all the code that is provided on Firebase website, have downloaded firebase-admin library, but the problem is that I'm always missing some other library too.
I've spent my all day so far just downloading libraries. I try to compile my code, and get an error that I'm missing a library, when I download it, I'm missing the next one, and so on.
I mean, shouldn't there be some list of libraries that you need to have in for Firebase Admin SDK app? Are we really expected to download libraries just one by one all day long? There is no such list in official docs, they've just provied dependency for firebase-admin library, and I'm missing a BUNCH of others.
So in beginning I've had just firebase-admin-4.0.3 library, and I had to download the rest of these that are on the External libraries list, all one by one, and not knowing its Maven dependency at first.
Okay, problem solved. The problem was that I was using any kind of dependency manager like Maven or Gradle. I mean I was using Maven but I in another project just to download dependencies and then manually include them in project(stupid).
I am trying to create an Android project and get the Bayeux Java Client library
working for it. I have the cometd library imported in my eclipse and I also added
the projects to the build path of my project.
My project builds fine, but on execution, I keep getting the NoClassDefFound error.
I am not sure, how to set my project up.
Are there any examples that I can refer to?
Any help is greatly appreciated.
Thanks,
I do the same thing and musst add some Other third party libraries. Check the NoClassDef Exception which class is needed and wasn't found. I Google the required class and add it to my libs folder. If i remember right it were some jetty client libs (3 or 4).
I implemented the current version of ActionBarSherlock to my Android Project.
Everything works fine and I don't get any errors.
But when I try to debug or export my project I don't get an .apk-file out of my project. Just a .jar-file with the name of my project.
I've read about some problems the SDK had with building projects that contain external libraries but this was at SDK version 14 and so I hope, this bug is fixed...
So there might be another cause for this problem.
Does anybody know a possible solution?
You cannot get *.jar file as the result of building Android project. This seems very strange to me. There must be something wrong with your project settings (if you changed them), or the project you build is of the wrong type (i.e. it is Java Application instead of Android Application).
You didn't mention which IDE do you use, but I assume you use Eclipse.
Make sure you have installed Android SDK and Eclipse ADT correctly (just in case).
Next thing to try is to create a new Android Application project from existing sources (there should be such option during the process of creation).
I've been tearing my hair out over this one, for the past 3 hours I've been trying to fix it but have been unable to. I've created an android app and I'm ready to put it on the android market but I get this error when trying to export to an apk.
Unable to execute dex: Multiple dex files define Lcom/google/ads/Ad;
I've read a bunch on the problem and tried quite a few solutions but nothing has seemed to help. I've cleaned and rebuilt, I've delete the bin folder, I've made sure that the bin folder is excluded build path. Nothing's worked. If anyone could help me I would really appreciate it.
Untick the admob jar file in the "order and export" part of the "configure build path".
On another post with a problem similar to yours the only thing mentioned that you have not already considered was updating Eclipse. I don't know how or what order that you have done these "fixes" but another poster mentioned that all at once he deleted the bin directory for his project, cleaned and rebuilt the project and restarted Eclipse. After that the error disappeared.
Good Luck- Lijap
For me the error was due to 2 different versions of AdMob SDK being included accidentally.
Removing one of them fixed it.
As other have noted, this problem should be due to multiple versions of Goodle's ad SDK classes being included in the app build. What I haven't seen yet is a note that the most recent Google Play Service lib includes classes that (at least) share the same names as some in the admob sdk-- for example, I came upon this error because I was trying to build with both admob sdk v.4.0.4 and the google-play-services_lib project as a referenced project; the latter contains google-play-services.jar which contains the package com.google.ads and many of the same classes as the admob sdk. Thus it appears that the google play services lib and the admob sdk cannot both be used in a given app. My solution was to remove the admob sdk entirely from the build.
I had the same or a similar problem. My problem was that my application imported a library which used a different version of AdMob SDK.
Details of my problem:
Library used AdMob SDK 6.3.0
Application used AdMob SDK 6.1.0
Fixed it by including the same version.
For me, I just have to take out the libs folder which contains android-support-v4.jar from build path and it worked.
Is anyone using netbeans 6.9 and Google AppEngine? If so do you have JavaDoc lookup working? Netbeans doesn't seem to be able to find the GAE JavaDoc even though I have tried adding the JavaDoc using the Java Platforms option, the libraries option and the server's option. I keep getting "JavaDoc not found" in the pop up window when doing a lookup. Hopefully someone knows how to resolve this issue.
PS I've also tried creating a new library and adding the JavaDoc but this did not work either.
Use Eclipse IDE with the GAE plugin . Google supports it is kinda official development platform for GAE
I uninstalled the Google AppEngine plugin I had downloaded for netbeans and now the javadoc lookup works properly. So I guess that plugin was causing this issue.