amlcurran / ShowcaseView

[Archived] Highlight the best bits of your app to users quickly, simply, and cool...ly
5.6k stars 1.29k forks source link

Not compatible with API level < 11 #201

Closed GirishBhutiya closed 9 years ago

GirishBhutiya commented 10 years ago

Hello

I have download latest version of library in eclipse. when I try to run below code on emulator with API level 10 its crashed with below error.

showcaseView = new ShowcaseView.Builder(this).setTarget(new ViewTarget(findViewById(R.id.tvgirish1))).setOnClickListener(this).build();

I get below error.

FATAL EXCEPTION: main java.lang.NoClassDefFoundError: android.animation.ObjectAnimator at com.github.amlcurran.showcaseview.AnimatorAnimationFactory.fadeInView(AnimatorAnimationFactory.java:24) at com.github.amlcurran.showcaseview.ShowcaseView.fadeInShowcase(ShowcaseView.java:297) at com.github.amlcurran.showcaseview.ShowcaseView.show(ShowcaseView.java:293) at com.github.amlcurran.showcaseview.ShowcaseView.insertShowcaseView(ShowcaseView.java:326) at com.github.amlcurran.showcaseview.ShowcaseView.access$0(ShowcaseView.java:323) at com.github.amlcurran.showcaseview.ShowcaseView$Builder.build(ShowcaseView.java:388) at com.github.amlcurran.showcaseview.sample.SampleActivity.onCreate(SampleActivity.java:62) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) at android.app.ActivityThread.access$1500(ActivityThread.java:117) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3683) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method)

I have not added NineOldAndroids

Thanks

amlcurran commented 10 years ago

Yup, this branch doesn't support below Honeycomb. If you'd like to use ShowcaseView on lower APIs, please use either the legacy branch, or wait for this feature, which should be available in 5.1 or 5.2

timrae commented 10 years ago

I posted a workaround in #234 to use 5.0 with Android 2.1+, looking forward to official support in the future. Thanks for your great work with this library.