Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding VPI to project with a lot of dependencies causes error on pre-3.0 devices
    primarykey
    data
    text
    <p>I recently switched from eclipse to intellij, it has been a great experience so far I am really loving it. However, I have run into a strange issue that I have been hitting my head against the wall with. I am trying to use ViewPagerIndicator, ActionBarSherlock, RoboSherlock, and RoboGuice as well as some other common frameworks in my application. It all works fine until I add VPI. </p> <p>Basically, when adding the ViewPagerIndicator dependency to my project it breaks the application for pre 3.0 devices (runs fine on 3.0+). </p> <p>The error is rather confusing because it seems to be something wrong with an ABS compatible theme not being picked up when the VPI apklib is present (please note that I am using an ABS compatible theme in my manifest). </p> <pre><code>&gt;09-18 10:33:15.986: ERROR/COM.IRIE.TASTEBUD/ObserverMethodListener.java:34(509): main java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at roboguice.event.eventListener.ObserverMethodListener.onEvent(ObserverMethodListener.java:32) at roboguice.event.EventManager.fire(EventManager.java:130) at com.github.rtyley.android.sherlock.roboguice.activity.RoboSherlockActivity.onCreate(RoboSherlockActivity.java:63) at com.irie.tastebud.view.activity.MainActivity.onCreate(MainActivity.java:38) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) </code></pre> <p>When I look deeper at the trace I see the below (even though I am using a sherlock theme):</p> <blockquote> <pre><code> Caused by: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative. at com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:1007) at com.actionbarsherlock.internal.ActionBarSherlockCompat.installDecor(ActionBarSherlockCompat.java:919) at com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:853) at com.actionbarsherlock.app.SherlockActivity.setContentView(SherlockActivity.java:218) at roboguice.inject.ContentViewListener.optionallySetContentView(ContentViewListener.java:21) ... 19 more** </code></pre> </blockquote> <p>See full exception stack trace and activity/manifest/pom.xml code @ <a href="https://gist.github.com/3743646" rel="nofollow">https://gist.github.com/3743646</a> .</p> <p>Once again - this only happens on pre-3.0 devices when adding the VPI project as a maven dependency. If I remove VPI - the app runs fine on 2.2+ devices. </p> <p>My Pom.xml is almost exactly like the Android Bootstrap application which works fine on 2.2+ as far as I know. </p> <p>My guess is that I have some kind of dependency configuration issue on my end. I am pretty green with maven and intellij so it has been quite difficult to trouble shoot. </p> <p>I am not sure if anyone else has seen this behavior, or if I am making a rookie mistake. Any help is appreciated - if I solve the issue, I will update this question with the answer. </p> <p>Thanks to everyone in advance and sorry if I broke any stackoverflow etiquette with this post. </p> <p>EDIT: Found potential related issue @ <a href="http://youtrack.jetbrains.com/issue/IDEA-90719" rel="nofollow">http://youtrack.jetbrains.com/issue/IDEA-90719</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload