Updated ADT, updated API, getting crazy

84 views
Skip to first unread message

Marco Zanetti

unread,
May 17, 2013, 6:06:10 PM5/17/13
to actionba...@googlegroups.com
Hello,
I have three Android projects with ActionBarSherlock. After last update to SDK 22 and tools 17 nothing seems to work properly anymore. By playing with settings I was able to make two of my three project run, but one of them is still broken. Also, I have the same issue on the ActionBarSherlock demo project, therefore I'm pretty sure it's not my project's fault, but it was the Android update that broke something.

What I get is that in my main Activity I see the red X next to the "package" word. If I go there with the mouse the message is "The type android.support.v4.app.FragmentTransaction cannot be resolved. It is indirectly referenced from required .class files". I don't extend SherlockFragmentActivity, just SherlockActivity, but have Fragments around because I implement TabListener.

The same happens to TabNavigationCollapsed in the example project, I have the same error in the first line, and also there I see TabNavigation is extended, so this issue deals with tabs but I don't know how.

Could you please try and help me out?

Thank you very very very much
--
Marco

Jonathan Steele

unread,
May 18, 2013, 1:48:19 AM5/18/13
to actionba...@googlegroups.com
You supposed to use SherlockFragmentActivity for Fragments related API.

Fabio Cingolani

unread,
May 18, 2013, 4:46:26 AM5/18/13
to actionba...@googlegroups.com

If you re using eclipse...Try removing jars from libs folder. And then re-fill it wit the jars.

--
You received this message because you are subscribed to the Google Groups "ActionBarSherlock" group.
To unsubscribe from this group and stop receiving emails from it, send an email to actionbarsherl...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Marco Zanetti

unread,
May 18, 2013, 7:28:24 AM5/18/13
to actionba...@googlegroups.com
What I wonder is that, until yesterday, I didn't need to implement SherlockFragmentActivity, it just worked the way it is.

I have public class MainActivity extends SherlockActivity implements ActionBar.TabListener and

    @Override
    public void onTabSelected(Tab tab, FragmentTransaction ft)

Why did it work until yesterday? What I'm wondering is that maybe the newest version of the support library does not support anymore something I've been using here, for example an Activity which is not a FragmentActivity using FragmentTransactions. Do you think this does make sense?

Thank you

Marco Zanetti

unread,
May 18, 2013, 7:29:39 AM5/18/13
to actionba...@googlegroups.com
Already tried... many, many times.
Do you, anyway, keep the support library in both ActionBarSherlock project and your project? Because, if I do, the project goes on runtime error. I keep the support library just in ActionBarSherlock and then add this as library into my project.

Grazie, ciao

Nikolay Elenkov

unread,
May 18, 2013, 7:48:15 AM5/18/13
to actionba...@googlegroups.com
On Sat, May 18, 2013 at 8:29 PM, Marco Zanetti
<ilsecondo...@gmail.com> wrote:
> Already tried... many, many times.
> Do you, anyway, keep the support library in both ActionBarSherlock project
> and your project? Because, if I do, the project goes on runtime error. I
> keep the support library just in ActionBarSherlock and then add this as
> library into my project.

You are probably hitting this:

https://code.google.com/p/android/issues/detail?id=55304

Make sure all projects export their 'Android Private Libraries', so that
the final app project gets all jars compiled in.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages