Questions tagged [roboguice]

Roboguice brings the power and testability of using the Google Guice dependency injection framework to Android application development.

RoboGuice is a framework that brings the simplicity and ease of Dependency Injection to Android, using Google's own Guice library.

Useful links

329 questions
0
votes
1 answer

Eclipse and Android application development

I am trying to use Roboguice in my app, but no matter how i try to add the jars they don't seem to be added to the apk doesn't include the roboguice/guice jars. What do I do? using eclipse 3.5 and adt .9.9
arinte
  • 3,660
  • 10
  • 45
  • 65
0
votes
2 answers

org.roboguice.shaded.goole.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: android/os/PersistableBundle

Hi i am gett the error below when i run my app on a kitKat device only Any suggestion? org.roboguice.shaded.goole.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: android/os/PersistableBundle …
Jono
  • 17,341
  • 48
  • 135
  • 217
0
votes
1 answer

Conflict with dependency 'com.google.inject:guice'

I am getting the following error : Error:Conflict with dependency 'com.google.inject:guice'. Resolved versions for app (3.0) and test app (4.0) differ. See http://g.co/androidstudio/app-test-app-conflict for details. Following is my Gradle file : …
Pratik Naik
  • 410
  • 4
  • 13
0
votes
1 answer

Roboguice throws ClassNotFoundException: AnnotationDatabaseImpl

I have a multi module project which has a class derived from RoboActivity with some injected pojo fields. Those fields' classes also have injected fields which in turn also have injected fields. Some of those classes live in different modules so…
Abi
  • 1
  • 3
0
votes
1 answer

Roboguice view injection : Injecting custom view in RecyclerView Adapter fails

First of all I should mention I am using Roboguice. I have an Activity with a RecyclerView. I am trying to inflate a custom view inside my RecyclerView's adapter. I am using Roboguice in my project.…
0
votes
1 answer

Android Toolbar change

I got an activity , where i set a toolbar. MainActivity.class @ContentView(R.layout.activity_main) public class MainActivity extends RoboActionBarActivity { @InjectView(R.id.tool_bar) Toolbar toolbar; @Override protected void…
test
  • 177
  • 1
  • 3
  • 9
0
votes
1 answer

Mimic RoboGuice injection in Dagger 2

I started learning Dagger 2 and one thing hit me hard: mechanism of injection. I was using RoboGuice earlier and my projects look like MVP mechanism Views (Activity/Fragment), Controllers (all logic), and Models (simple objects) So Controllers are…
masztalski
  • 152
  • 2
  • 15
0
votes
1 answer

Failed to initialize an instance of org.apache.velocity.runtime.log.CommonsLogLogChute with the current runtime configuration

Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.CommonsLogLogChute with the current…
Manza
  • 3,427
  • 4
  • 36
  • 57
0
votes
2 answers

Issue with @Inject for Constructor

I am new to robojuice, but i need to work on a piece of code which was already built by someone else. I am facing issue if I add an extra parameter to the constructor of a class which already has @Inject. My android application crashes giving the…
user2234
  • 1,282
  • 1
  • 21
  • 44
0
votes
1 answer

Implementation of Google guice does not work

I am a beginner lerner of Google guice. I have programmed like below to insert in Oracle and postgres db, I have posted a very simple coede here but, when I run this I am getting an error as Exception in thread "main"…
New Bee
  • 390
  • 3
  • 10
0
votes
1 answer

RoboGuice Proguard CreationException

I'm using Roboguice 3.0.1 with RoboBlender 3.0.1. I've read the wiki. This application has been working perfectly since 3.0.1 has been GA (almost a year), and I just added proguard to my project. I've seemingly setup the proguard configuration…
Eliezer
  • 7,209
  • 12
  • 56
  • 103
0
votes
2 answers

Roboguice NoClassDefFoundError

I just started using Roboguice today, following the Wiki https://github.com/roboguice/roboguice/wiki/Your-First-View-Injection, the examples are working fine when I create a new App, but when trying to Integrate Roboguice on my existing App, Its…
Tosin Onikute
  • 3,883
  • 6
  • 38
  • 61
0
votes
1 answer

referring Android project to another android project

I have a Android project A which is not a library project. I have another Android Project Main with refers project A (by:Project properties -> Java build path -> projects tab -> Add). So I can access all the classes (Fragments, Activity) of Project…
0
votes
1 answer

Should I Use RoboGuice or other Dependency Injection Frameworks?

I heard from a friend that Coading gets a lot Easier and simpler with RoboGuice. But I found Official document of Android when I was reading this. In its 2nd Point the Author said: Official document of Android suggests to avoid dependency…
Syed Ali Naqi
  • 701
  • 7
  • 15
0
votes
1 answer

RoboGuice @Inject annotation works, but getInjector(this).getInstance() throws ConfigurationException

On an Activity that derives from RoboActivity, I am able to add a member with an @Inject annotation that is populated after the call to super.onCreate() inside onCreate(); however, if I remove that field and attempt to retrieve the same type object…
Dave T.
  • 1,368
  • 1
  • 12
  • 17