I have no idea about how to install roboguice 3.0 in my eclipse,I searched a lot but none of the links didn't give me a clear desc about this..any help would be appreciated.
If you don't want to use a dependency manager like Maven then I think these instructions are what you can use with eclipse https://github.com/roboguice/roboguice/wiki/InstallationNonMaven Once you have the jars downloaded just follow these instructions for Eclipse How to import a jar in Eclipse
But I would highly suggest configuring something like Maven to manage your dependencies for you. Eclipse has good integration with them so you'll never have to worry about dependencies again.
Related
I'm trying to include in my project GreenDAO ORM, useless to say that there is no good tutorial that makes it work from scratch and there is ridiculous documentation on the official site. I used this greendao tutorial and made all intermediary steps to generating classes with gradle task. But now I'm stuck, Android Studio gives me an error for every generated class like:
Cannot resolve symbol 'AbstractDaoMaster'. All imports are actually in place but there is no way to make it work.
Things I tried:
invalidating caches
updating AS to 1.2.1.1
I have iMac OS X Yosemite 10.10.2
I have no clue what to do next.
The documentation on the official site it's a bit old, for Eclipse projects. Using Android Studio I always follow this tutorial, it worked always like charm.
I am sorry I didn't find your question in time - the answer was already in the 2nd part of the tutorial you mentioned:
compile files('libs/greendao-1.3.7.jar')
For the future, I really recommend adding Gradle dependency for greenDAO, instead of a jar file. It's more flexible and easy this way. Just add compile 'de.greenrobot:greendao-generator:2.1.0' to build.gradle and sync it. You can always check the last version here.
See this blog post for a step by step tutorial with explanation.
I actually had to update build.gradle in the app module with:
compile files('libs/greendao.jar')
and manually sync gradle scripts with project files. After that, all dependencies are met.
I am using combination of Maven and IntelliJ Idea.
Although javadoc and sources are shown using Android Module in Idea, I can not see any of them using Android maven.
Any help, how to show sources also with Maven in Idea? Should I set it in pom.xml or somewhere in Idea preferences?
Please check the related issue for the workaround:
manually attach the sources to "Maven: com.google.android..." project library
See the Module Dependencies for details how to do it.
First of all make sure you downloaded the sources from the Android SDK for the target that you are using in your project.
Now in IntelliJ, under Project Structure (CMD+;) => Modules => Dependencies you should be seeing "Maven: com.google.android:android:4.1.1.4" and also "Android X.X Platform (java version... )". Select the "Android X.X" and press the up arrow at the bottom to move it up so it's at the top.
Now you should be running with the SDK module which include the sources
i have a maven-based android project which uses the ActionbarSherlock as an apklib-dependency and Gson as an jar-dependency. Building the application with maven works just fine, but i cant start/run the application using eclipse as long as the ActionbarSherlock dependency is added.
Is it possible that eclipse can´t handle the apklib-dependency? I also had to add the lib as a library project to my eclipse workspace and add the dependency to maven. otherwise i can´t access the actionbarsherlock from my code...
Thank you :)
Support for apklib dependencies in ADT Eclipse is part of ongoing work for the m2e-android project. Please comment on this issue to stay updated:
https://github.com/rgladwell/m2e-android/issues/8
The current workaround is to add the complete source code of apklib to your workspace.
I'm writing a program which must download documents from google docs. I have downloaded this example , but its haven't attached jar files. So I havent found any jar, which contains com.google.api.services.docs.DocsClient class. Could anybody tell me the jar , which contains this class.
Thank you .
Your DocsClient class is here. Check if it's the correct one.
I have found the answer. The solution is that you need to install maven plugin for Eclipse IDE , and it will download all dependency libraries.
Here you can find the instructions for installing Maven plugin , and this is instructions for downloading libraries.
Thank you.
I have a question that I want to make an apklib file for an facebook sdk. But I don't know how to create that but I need to use Facebook Sdk via Maven Repository, how this can be achieved? Please help me out about this problem.
If you are familiar with Maven and want to use it, maven-android-plugin has a sample project you can start with, check out LibraryProjects at here, you need download the 2.9.0-beta one.