Error upon compilation: Could not 'android.support.v4.app.FragmentManager'

318 views
Skip to first unread message

Zak

unread,
Feb 11, 2012, 11:10:33 AM2/11/12
to roboguice
When I run my app (target Android 4.0.3), the compiler gives me this
error:

E/dalvikvm(560): Could not find class
'android.support.v4.app.FragmentManager', referenced from method
roboguice.inject.ViewListener
$ViewMembersInjector.reallyInjectMemberFragments

When I tried to include "import
android.support.v4.app.FragmentManager" in my main package, I get the
error "The import 'android.support' could not be resolved."

Anyone know how to fix this?

Zak

unread,
Feb 11, 2012, 11:20:30 AM2/11/12
to roboguice
And if it helps, these are the versions I'm using:

guice-3.0-no_aop.jar
roboguice-2.0b3.jar

Toshi Kurauchi

unread,
Feb 11, 2012, 11:58:19 AM2/11/12
to robo...@googlegroups.com
Have you added the Compatibility Library to your project?

Toshi Kurauchi


--
You received this message because you are subscribed to the Google Groups "roboguice" group.
To post to this group, send email to robo...@googlegroups.com.
To unsubscribe from this group, send email to roboguice+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/roboguice?hl=en.


Manfred Moser

unread,
Feb 11, 2012, 12:31:40 PM2/11/12
to robo...@googlegroups.com
Add the compatibility library like Toshi said. It is in the central repo now

http://www.simpligility.com/2012/01/android-compatibility-library-following-lint/

Make sure it is NOT scope provided..

Michael Burton

unread,
Feb 11, 2012, 7:24:21 PM2/11/12
to robo...@googlegroups.com

The latest snapshot should no longer have this dependency

Zak

unread,
Feb 11, 2012, 11:14:28 PM2/11/12
to roboguice
Where can I download the latest snapshot?

On Feb 11, 4:24 pm, Michael Burton <m...@niskala.org> wrote:
> The latest snapshot should no longer have this dependency
>  On Feb 11, 2012 9:31 AM, "Manfred Moser" <mosa...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Add the compatibility library like Toshi said. It is in the central repo
> > now
>
> >http://www.simpligility.com/2012/01/android-compatibility-library-fol...
>
> > Make sure it is NOT scope provided..
>
> > On Sat, Feb 11, 2012 at 8:58 AM, Toshi Kurauchi
> > <andrew.kurau...@gmail.com> wrote:
> > > Have you added the Compatibility Library to your project?
>
> > > Toshi Kurauchi
>

Michael Burton

unread,
Feb 12, 2012, 1:36:03 PM2/12/12
to robo...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages