Google Guice on Android, version 3.0 [RETIRED]

Overview

As of August 2016, RoboGuice is no longer supported. For nearly 5 years it was the #1 dependency injection framework on Android due to its ease-of-use, but other responsibilities have kept it from getting the attention it needed and over time it hasn't kept up with the needs of the community. There are now many other excellent DI frameworks for Android, please consider migrating to one of them.

Thank you for your many years of support.


### ~~Google Guice on Android, version 3.0~~ [![Build Status on Travis:](https://travis-ci.org/roboguice/roboguice.svg?branch=master)](https://travis-ci.org/roboguice/roboguice) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.roboguice/roboguice/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.roboguice/roboguice)

RoboGuice 3 smoothes out some of the wrinkles in your Android development experience and makes things simple and fun. Do you always forget to check for null when you getIntent().getExtras()? RoboGuice 3 will help you. Think casting findViewById() to a TextView shouldn’t be necessary? RoboGuice 3 is on it.

RoboGuice 3 takes the guesswork out of development. Inject your View, Resource, System Service, or any other object, and let RoboGuice 3 take care of the details.

RoboGuice 3 slims down your application code. Less code means fewer opportunities for bugs. It also makes your code easier to follow -- no longer is your code littered with the mechanics of the Android platform, but now it can focus on the actual logic unique to your application.

There’s no “magic”. Everything you need is configured explicitly for you by RoboGuice 3 or can be overridden by you.

RoboGuice 3 applications have been Featured on the Android Market for years. It leverages the award-winning and production-ready Google Guice library to bring you simple dependency injection lightweight enough to use in a mobile application.

It works, and people are using it. Why not give it a spin?

Get Started with RoboGuice 3!


Related projects:



Agit (Android Git) Android Shuffle Bartab Bento CallerID
Cars.com CardStar ChessMates Crossfit Travel Crunchyroll
Digg GeoBeagle Getaways by Groupon Groupon Gymglish
LinkedIn Pulse Moola MOTOACTV MyEpisodes Manager Nike+
OpenTable TripIt! Skype Starbucks SwiftKey
TaskBomb Video to Facebook Wifi Syncr WorkTime Zynk
Comments
  • java.lang.ClassNotFoundException: AnnotationDatabaseImpl

    java.lang.ClassNotFoundException: AnnotationDatabaseImpl

    With RoboGuice 3.0 launch this exception:

    10-28 11:48:51.601: W/dalvikvm(24040): threadid=1: thread exiting with uncaught exception (group=0x417e8c08) 10-28 11:48:51.606: E/AndroidRuntime(24040): FATAL EXCEPTION: main 10-28 11:48:51.606: E/AndroidRuntime(24040): Process: com.bytesw.perfil, PID: 24040 10-28 11:48:51.606: E/AndroidRuntime(24040): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bytesw.perfil/com.bytesw.perfil.view.activity.AutenticacionActivity}: java.lang.IllegalStateException: Unable to use annotation database(s) 10-28 11:48:51.606: E/AndroidRuntime(24040): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305) 10-28 11:48:51.606: E/AndroidRuntime(24040): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363) 10-28 11:48:51.606: E/AndroidRuntime(24040): at android.app.ActivityThread.access$900(ActivityThread.java:161) 10-28 11:48:51.606: E/AndroidRuntime(24040): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265) 10-28 11:48:51.606: E/AndroidRuntime(24040): at android.os.Handler.dispatchMessage(Handler.java:102) 10-28 11:48:51.606: E/AndroidRuntime(24040): at android.os.Looper.loop(Looper.java:157) 10-28 11:48:51.606: E/AndroidRuntime(24040): at android.app.ActivityThread.main(ActivityThread.java:5356) 10-28 11:48:51.606: E/AndroidRuntime(24040): at java.lang.reflect.Method.invokeNative(Native Method) 10-28 11:48:51.606: E/AndroidRuntime(24040): at java.lang.reflect.Method.invoke(Method.java:515) 10-28 11:48:51.606: E/AndroidRuntime(24040): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) 10-28 11:48:51.606: E/AndroidRuntime(24040): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) 10-28 11:48:51.606: E/AndroidRuntime(24040): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:126) 10-28 11:48:51.606: E/AndroidRuntime(24040): at dalvik.system.NativeStart.main(Native Method) 10-28 11:48:51.606: E/AndroidRuntime(24040): Caused by: java.lang.IllegalStateException: Unable to use annotation database(s) 10-28 11:48:51.606: E/AndroidRuntime(24040): at roboguice.RoboGuice.initializeAnnotationDatabaseFinderAndHierarchyTraversalFilterFactory(RoboGuice.java:292) 10-28 11:48:51.606: E/AndroidRuntime(24040): at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:149) 10-28 11:48:51.606: E/AndroidRuntime(24040): at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:90) 10-28 11:48:51.606: E/AndroidRuntime(24040): at roboguice.RoboGuice.getInjector(RoboGuice.java:197) 10-28 11:48:51.606: E/AndroidRuntime(24040): at roboguice.activity.RoboActionBarActivity.onCreate(RoboActionBarActivity.java:85) 10-28 11:48:51.606: E/AndroidRuntime(24040): at com.bytesw.perfil.view.activity.AutenticacionActivity.onCreate(AutenticacionActivity.java:26) 10-28 11:48:51.606: E/AndroidRuntime(24040): at android.app.Activity.performCreate(Activity.java:5426) 10-28 11:48:51.606: E/AndroidRuntime(24040): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) 10-28 11:48:51.606: E/AndroidRuntime(24040): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269) 10-28 11:48:51.606: E/AndroidRuntime(24040): ... 12 more 10-28 11:48:51.606: E/AndroidRuntime(24040): Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: AnnotationDatabaseImpl 10-28 11:48:51.606: E/AndroidRuntime(24040): at com.google.inject.AnnotationDatabaseFinder.(AnnotationDatabaseFinder.java:47) 10-28 11:48:51.606: E/AndroidRuntime(24040): at com.google.inject.Guice.setAnnotationDatabasePackageNames(Guice.java:133) 10-28 11:48:51.606: E/AndroidRuntime(24040): at roboguice.RoboGuice.initializeAnnotationDatabaseFinderAndHierarchyTraversalFilterFactory(RoboGuice.java:288) 10-28 11:48:51.606: E/AndroidRuntime(24040): ... 20 more 10-28 11:48:51.606: E/AndroidRuntime(24040): Caused by: java.lang.ClassNotFoundException: AnnotationDatabaseImpl 10-28 11:48:51.606: E/AndroidRuntime(24040): at java.lang.Class.classForName(Native Method) 10-28 11:48:51.606: E/AndroidRuntime(24040): at java.lang.Class.forName(Class.java:251) 10-28 11:48:51.606: E/AndroidRuntime(24040): at java.lang.Class.forName(Class.java:216) 10-28 11:48:51.606: E/AndroidRuntime(24040): at com.google.inject.AnnotationDatabaseFinder.getAnnotationDatabaseInstance(AnnotationDatabaseFinder.java:73) 10-28 11:48:51.606: E/AndroidRuntime(24040): at com.google.inject.AnnotationDatabaseFinder.(AnnotationDatabaseFinder.java:36) 10-28 11:48:51.606: E/AndroidRuntime(24040): ... 22 more 10-28 11:48:51.606: E/AndroidRuntime(24040): Caused by: java.lang.NoClassDefFoundError: AnnotationDatabaseImpl 10-28 11:48:51.606: E/AndroidRuntime(24040): ... 27 more 10-28 11:48:51.606: E/AndroidRuntime(24040): Caused by: java.lang.ClassNotFoundException: Didn't find class "AnnotationDatabaseImpl" on path: DexPathList[[zip file "/data/app/com.bytesw.perfil-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.bytesw.perfil-1, /vendor/lib, /system/lib]] 10-28 11:48:51.606: E/AndroidRuntime(24040): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67) 10-28 11:48:51.606: E/AndroidRuntime(24040): at java.lang.ClassLoader.loadClass(ClassLoader.java:497) 10-28 11:48:51.606: E/AndroidRuntime(24040): at java.lang.ClassLoader.loadClass(ClassLoader.java:457) 10-28 11:48:51.606: E/AndroidRuntime(24040): ... 27 more

    Activity @ContentView(R.layout.activity_autenticacion)
    public class AutenticacionActivity extends AbstractActivity {
    @InjectView(R.id.edit_username) private EditText userTextView;
    @InjectView (R.id.edit_password) private EditText passwordTextView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    }
    }
    Abstract: import roboguice.activity.RoboActionBarActivity;
    public abstract class AbstractActivity extends RoboActionBarActivity{
    public abstract void show(final String message);
    public abstract void handleException(final Exception e);
    }

    enhancement 
    opened by elioth010 45
  • Additional startup improvements based off of stephane's #179

    Additional startup improvements based off of stephane's #179

    EXPERIMENTAL … Additional startup improvements based off of stephane's #179. This is a more generalized implementation of his same performance improvement.

    The idea is to not execute any bindings that are not used by the application. Only works for Class bindings. There are a couple of hacks in there right now.

    Performance improvement goes from 39.5% using #182 to 44.7% using this version.

    opened by emmby 20
  • @InjectFragment doesn't support android.app.Fragment

    @InjectFragment doesn't support android.app.Fragment

    android.support.v4.app.Fragment is for supporting pre honeycomb android. Most of the handsets have android 4.0 now. Please support android.app.Fragment instead. Also, wiring up document should state that it requires android.support.v4 jar for Fragment support. I had to dig hard in the source code to find out.

    opened by stevenao 16
  • Mburton/exp/annotationprocessing nonsilver plus optional binding

    Mburton/exp/annotationprocessing nonsilver plus optional binding

    @stephanenicolas I created this PR to help me review the code.

    NOTE: this PR contains a number of changes that are unrelated to the annotationprocessing stuff, eg. github.com/roboguice/roboguice/issues/174

    opened by emmby 15
  • Events Not Firing

    Events Not Firing

    I have just upgraded to Roboguice 3.0. Great work, it seems super fast and fixes the performance problems we were having with ART. Unfortunately none of the events are working. Both custom events that I am firing and standard events such as onStopEvent and onStartEvent.

    I looked into the upgrade docs and it doesn't mention that I should change anything. Is this a known issue or do I need to change something?

    wontfix 
    opened by sdoward 14
  • Clean pom, use checkstyle, findbugs and PMD

    Clean pom, use checkstyle, findbugs and PMD

    https://github.com/roboguice/roboguice/issues/165

    @emmby, what do you think of such a setup. The builds by defaults check for checkstyle, pmd and findbugs.

    I tried to stick to your coding standards as much as possible. I corrected a few bugs found by findbugs and added a few exceptions when I was not sure.

    What do you think of it ?

    BTW, did you receive my question on G+ ?

    opened by stephanenicolas 14
  • Native fragments can now be injected.

    Native fragments can now be injected.

    I would like to make some breaking changes to the API, but I'd like to gather feedback first. Specifically, I'd like to move all classes that depend on the support package to roboguice.fragments.support, and all packages that depend on native fragments to roboguice.fragments.provided. I'd then deprecate all the classes in roboguice.fragments.*, and replace them with empty classes that extend the moved support-based classes. For example, the current RoboFragment would be replaced with:

    package roboguice.fragments;
    @Deprecated
    public class RoboFragment extends roboguice.fragments.support.RoboFragment {}
    

    Someone with more Maven skills than I could later make the support library fragment classes a seperate POM, so people wishing to use Roboguice don't have to mess with optional dependencies.

    Also, I'd love any feedback on how to improve my code. It's a fairly major change, and I replaced a lot of hackery with stuff that's a bit more type safe, but when doing dynamic classloading and casting there's always a potential for dragons.

    Fixes #20

    opened by charlesmunger 14
  • RoboDialogFragment doesn't work - onViewCreated never fired

    RoboDialogFragment doesn't work - onViewCreated never fired

    Hi,

    It looks to me like the RoboDialogFragment cant work as the injection appears to happen onViewCreated, but this never fires in a DialogFragment (as far as I can see)

    opened by mattwhetton 14
  • Need to clean to make it work

    Need to clean to make it work

    Hi,

    I don't know where to check but I have a strange behavior, I need to clean the project everytime I change a piece of java code or I end with an NPE in my App.java because injection isn't working.

    Hope we can find what's going on, very annoying :(

    opened by mgohin 10
  • RoboAsyncTask example

    RoboAsyncTask example

    Where can I find a good example to build a RoboAsyncTask that is recent? How to return values, etc. All I can find so far is for RoboGuice V1.x. Thanks!

    question 
    opened by Alexwijn 8
  • RoboSherlockFragmentActivity

    RoboSherlockFragmentActivity

    can you merge it to the current build so that people can use it too ? It feels a bit weird to use the roboguice sherlock, because it is 2 years old, and you keep updating roboguice but not roboguice sherlock

    opened by pikaboo 8
  • SafeAsyncTask is strange when run in another SafeAsyncTask

    SafeAsyncTask is strange when run in another SafeAsyncTask

    I have SafeAsyncTask1 and SafeAsyncTask2, SafeAsyncTask2 running in the SafeAsyncTask1.onPreExecute(). During the SafeAsyncTask2 executing, SafeAsyncTask1.onPreExecute() will run again. Do not expect this issue will get fixed. Just tell someone meet the same situation as me.

    opened by ninjachen 0
  • java.lang.IllegalStateException: Unable to use annotation database(s)

    java.lang.IllegalStateException: Unable to use annotation database(s)

    Hi, when I install verson 3.0.1 ,it giving this exception.

    FATAL EXCEPTION: main Process: com.example.mmy_pc.qrcode, PID: 3413 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mmy_pc.qrcode/com.example.mmy_pc.qrcode.MainActivity}: java.lang.IllegalStateException: Unable to use annotation database(s) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalStateException: Unable to use annotation database(s) at roboguice.RoboGuice.initializeAnnotationDatabaseFinderAndHierarchyTraversalFilterFactory(RoboGuice.java:292) at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:149) at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:90) at roboguice.RoboGuice.getInjector(RoboGuice.java:197) at roboguice.activity.RoboActivity.onCreate(RoboActivity.java:90) at com.example.mmy_pc.qrcode.MainActivity.onCreate(MainActivity.java:11) at android.app.Activity.performCreate(Activity.java:5231) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)  at android.app.ActivityThread.access$800(ActivityThread.java:135)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5017)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)  at dalvik.system.NativeStart.main(Native Method)  Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: AnnotationDatabaseImpl at com.google.inject.AnnotationDatabaseFinder.(AnnotationDatabaseFinder.java:47) at com.google.inject.Guice.setAnnotationDatabasePackageNames(Guice.java:133) at roboguice.RoboGuice.initializeAnnotationDatabaseFinderAndHierarchyTraversalFilterFactory(RoboGuice.java:288) at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:149)  at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:90)  at roboguice.RoboGuice.getInjector(RoboGuice.java:197)  at roboguice.activity.RoboActivity.onCreate(RoboActivity.java:90)  at com.example.mmy_pc.qrcode.MainActivity.onCreate(MainActivity.java:11)  at android.app.Activity.performCreate(Activity.java:5231)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)  at android.app.ActivityThread.access$800(ActivityThread.java:135)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5017)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)  at dalvik.system.NativeStart.main(Native Method)  Caused by: java.lang.ClassNotFoundException: AnnotationDatabaseImpl at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:251) at java.lang.Class.forName(Class.java:216) at com.google.inject.AnnotationDatabaseFinder.getAnnotationDatabaseInstance(AnnotationDatabaseFinder.java:73) at com.google.inject.AnnotationDatabaseFinder.(AnnotationDatabaseFinder.java:36) at com.google.inject.Guice.setAnnotationDatabasePackageNames(Guice.java:133)  at roboguice.RoboGuice.initializeAnnotationDatabaseFinderAndHierarchyTraversalFilterFactory(RoboGuice.java:288)  at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:149)  at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:90)  at roboguice.RoboGuice.getInjector(RoboGuice.java:197)  at roboguice.activity.RoboActivity.onCreate(RoboActivity.java:90)  at com.example.mmy_pc.qrcode.MainActivity.onCreate(MainActivity.java:11)  at android.app.Activity.performCreate(Activity.java:5231)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)  at android.app.ActivityThread.access$800(ActivityThread.java:135)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5017)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)  at dalvik.system.NativeStart.main(Native Method)  Caused by: java.lang.NoClassDefFoundError: AnnotationDatabaseImpl at java.lang.Class.classForName(Native Method)  at java.lang.Class.forName(Class.java:251)  at java.lang.Class.forName(Class.java:216)  at com.google.inject.AnnotationDatabaseFinder.getAnnotationDatabaseInstance(AnnotationDatabaseFinder.java:73)  at com.google.inject.AnnotationDatabaseFinder.(AnnotationDatabaseFinder.java:36)  at com.google.inject.Guice.setAnnotationDatabasePackageNames(Guice.java:133)  at roboguice.RoboGuice.initializeAnnotationDatabaseFinderAndHierarchyTraversalFilterFactory(RoboGuice.java:288)  at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:149)  at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:90)  at roboguice.RoboGuice.getInjector(RoboGuice.java:197)  at roboguice.activity.RoboActivity.onCreate(RoboActivity.java:90)  at com.example.mmy_pc.qrcode.MainActivity.onCreate(MainActivity.java:11)  at android.app.Activity.performCreate(Activity.java:5231)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)  at android.app.ActivityThread.access$800(ActivityThread.java:135)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5017)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)  at dalvik.system.NativeStart.main(Native Method)  Caused by: java.lang.ClassNotFoundException: Didn't find class "AnnotationDatabaseImpl" on path: DexPathList[[zip file "/data/app/com.example.mmy_pc.qrcode-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.mmy_pc.qrcode-2, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:497) at java.lang.ClassLoader.loadClass(ClassLoader.java:457) at java.lang.Class.classForName(Native Method)  at java.lang.Class.forName(Class.java:251)  at java.lang.Class.forName(Class.java:216)  at com.google.inject.AnnotationDatabaseFinder.getAnnotationDatabaseInstance(AnnotationDatabaseFinder.java:73)  at com.google.inject.AnnotationDatabaseFinder.(AnnotationDatabaseFinder.java:36)  at com.google.inject.Guice.setAnnotationDatabasePackageNames(Guice.java:133)  at roboguice.RoboGuice.initializeAnnotationDatabaseFinderAndHierarchyTraversalFilterFactory(RoboGuice.java:288)  at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:149)  at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:90)  at roboguice.RoboGuice.getInjector(RoboGuice.java:197)  at roboguice.activity.RoboActivity.onCreate(RoboActivity.java:90)  at com.example.mmy_pc.qrcode.MainActivity.onCreate(MainActivity.java:11)  at android.app.Activity.performCreate(Activity.java:5231)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)  at android.app.ActivityThread.access$800(ActivityThread.java:135)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5017)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)  at dalvik.system.NativeStart.main(Native Method)

    Thank you for your help. 

    opened by micsay 4
  • 4.0.0?

    4.0.0?

    Is there a 4.0.0 release? I use com.github.ben-manes.versions and it reports that there is a new milestone release. I can see that roboguice-aggregator-4.0.0 is there but there is nothing about roboguice itself. If you go to http://mvnrepository.com/artifact/org.roboguice/roboguice it shows there as 4.0.0 but it certainly does not seem to work and there does not seem to be any documentation or changelog or anything. Am I missing something?

    opened by evilDave 3
  • java.lang.ClassNotFoundException: Didn't find class

    java.lang.ClassNotFoundException: Didn't find class "AnnotationDatabaseImpl"

    Hello All, When I install debug version of android app, its working fine. But with release version its giving this exception.

    Any solution for this? Thanks in advance.

    FATAL EXCEPTION: main Process: com.cheezburger.icanhas, PID: 9460 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cheezburger.icanhas/com.cheezburger.icanhas.builder.activities.BuilderActivity}: java.lang.IllegalStateException: Unable to use annotation database(s) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3256) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3352) at android.app.ActivityThread.access$1100(ActivityThread.java:223) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1797) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7231) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: java.lang.IllegalStateException: Unable to use annotation database(s) at roboguice.RoboGuice.initializeAnnotationDatabaseFinderAndHierarchyTraversalFilterFactory(RoboGuice.java:292) at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:149) at roboguice.RoboGuice.getOrCreateBaseApplicationInjector(RoboGuice.java:90) at roboguice.RoboGuice.getInjector(RoboGuice.java:197) at com.cheezburger.icanhas.builder.activities.RoboActivity.onCreate(RoboActivity.java:90) at com.cheezburger.icanhas.builder.activities.BuilderActivity.onCreate(BuilderActivity.java:88) at android.app.Activity.performCreate(Activity.java:6877) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3209) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3352)  at android.app.ActivityThread.access$1100(ActivityThread.java:223)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1797)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:158)  at android.app.ActivityThread.main(ActivityThread.java:7231)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 

    opened by SunilMuttepawar 1
Owner
null
:syringe: Transfuse - A Dependency Injection and Integration framework for Google Android

Transfuse Transfuse is a Java Dependency Injection (DI) and integration library geared specifically for the Google Android API. There are several key

John Ericksen 224 Nov 28, 2022
A fast dependency injector for Android and Java.

Dagger A fast dependency injector for Java and Android. Dagger is a compile-time framework for dependency injection. It uses no reflection or runtime

Google 16.9k Jan 5, 2023
Simple Android Library, that provides easy way to start the Activities with arguments.

Warning: Library is not maintained anymore. If you want to take care of this library, propose it via Pull Request. It needs adjustmensts for newer ver

Marcin Moskała 429 Dec 15, 2022
Fast Android Development. Easy maintainance.

Fast Android Development. Easy maintenance. AndroidAnnotations is an Open Source framework that speeds up Android development. It takes care of the pl

null 11.1k Dec 31, 2022
A scope tree based Dependency Injection (DI) library for Java / Kotlin / Android.

Toothpick (a.k.a T.P. like a teepee) Visit TP wiki ! What is Toothpick ? Toothpick is a scope tree based Dependency Injection (DI) library for Java. I

Stéphane Nicolas 1.1k Jan 1, 2023
Fast Android Development. Easy maintainance.

Fast Android Development. Easy maintenance. AndroidAnnotations is an Open Source framework that speeds up Android development. It takes care of the pl

null 11.1k Dec 31, 2022
Bind Android views and callbacks to fields and methods.

Butter Knife Attention: This tool is now deprecated. Please switch to view binding. Existing versions will continue to work, obviously, but only criti

Jake Wharton 25.7k Jan 3, 2023
A fast dependency injector for Android and Java.

Dagger 1 A fast dependency injector for Android and Java. Deprecated – Please upgrade to Dagger 2 Square's Dagger 1.x is deprecated in favor of Google

Square 7.3k Jan 5, 2023
Bind Android views and callbacks to fields and methods.

Butter Knife Attention: This tool is now deprecated. Please switch to view binding. Existing versions will continue to work, obviously, but only criti

Jake Wharton 25.7k Mar 22, 2021
Lightweight, minimalistic dependency injection library for Kotlin & Android

‼️ This project is in maintenance mode and not actively developed anymore. For more information read this statement. ‼️ Katana Katana is a lightweight

REWE Digital GmbH 179 Nov 27, 2022
A multi-purpose library containing view injection and threading for Android using annotations

SwissKnife A multi-purpose Groovy library containing view injection and threading for Android using annotations. It's based on both ButterKnife and An

Jorge Martin Espinosa 251 Nov 25, 2022
A SharedPreference "injection" library for Android

PreferenceBinder A SharedPreferences binding library for Android. Using annotation processing, this library makes it easy to load SharedPreferences va

Denley Bihari 232 Dec 30, 2022
lite your android ! the code is on the way~

android-lite-auto lite your android, the code is on the way~ ! LiteAuto是一个代码生成框架,思路参考 JakeWharton 的开源项目 ButterKnife,在它的思路基础添加了一些自己的想法,从0到1设计并实现的。 Lite

马天宇 32 Nov 2, 2022
Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 6 and above, brought to you by Google.

Guice Latest release: 5.0.1 Documentation: User Guide, 5.0.1 javadocs, Latest javadocs Continuous Integration: Mailing Lists: User Mailing List Licens

Google 11.7k Jan 1, 2023
HockeyApp was retired and the SDKs are deprecated. Please use App Center instead.

Version 5.2.0 HockeySDK-Android implements support for using HockeyApp in your Android applications. The following features are currently supported: C

Bit Stadium GmbH 280 Dec 13, 2022
Kotlin dropwizard app running on Java 11. With Guice injection loaded.

hello world How to start the hello world application Run mvn clean install to build your application Start application with java -jar target/dropwizar

null 0 Nov 24, 2021
Kotlin Multiplatform Mobile version of Tisdagsgolfen... yet another version.

TheCube in Kotlin Multiplatform Experimenting with KMM, and Kotlin, Jetpack, SwiftUI, and all the other new stuff... https://kotlinlang.org/docs/kmm-g

Kim Fransman 0 Dec 25, 2022
🔓 Kotlin version of the popular google/easypermissions wrapper library to simplify basic system permissions logic on Android M or higher.

EasyPermissions-ktx Kotlin version of the popular googlesample/easypermissions wrapper library to simplify basic system permissions logic on Android M

Madalin Valceleanu 326 Dec 23, 2022