Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo app fails to run on 2.3.4 #7

Closed
4ntoine opened this issue Jul 4, 2014 · 3 comments
Closed

Demo app fails to run on 2.3.4 #7

4ntoine opened this issue Jul 4, 2014 · 3 comments

Comments

@4ntoine
Copy link

4ntoine commented Jul 4, 2014

01-14 21:41:21.336 6953-6953/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.NoSuchMethodError: com.google.android.exoplayer.demo.SampleChooserActivity$SampleAdapter.addAll
at com.google.android.exoplayer.demo.SampleChooserActivity.onCreate(SampleChooserActivity.java:52)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1660)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716)
at android.app.ActivityThread.access$1500(ActivityThread.java:124)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:968)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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)

@ojw28 ojw28 added duplicate and removed duplicate labels Jul 4, 2014
@ojw28
Copy link
Contributor

ojw28 commented Jul 4, 2014

Duplicate of #8

@ojw28 ojw28 closed this as completed Jul 4, 2014
@4ntoine
Copy link
Author

4ntoine commented Jul 4, 2014

it's not a duplicate but it can be solved easily by replacing addAll to adding for each item. Please modify your Demo app to remove such silly errors

@ojw28
Copy link
Contributor

ojw28 commented Jul 4, 2014

It's a duplicate because addAll is fine for API levels >= 16. This crash only occurs on API levels < 11, so once the correct minSdkVersion (16) is enforced, this wont be an issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants