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

Crash when saving. Can't find PutInt #7

Closed
kjeremy opened this issue Apr 14, 2015 · 5 comments
Closed

Crash when saving. Can't find PutInt #7

kjeremy opened this issue Apr 14, 2015 · 5 comments

Comments

@kjeremy
Copy link

kjeremy commented Apr 14, 2015

I just upgraded to to 1.0.9 and the app crashes in ActionbarActivity.OnSaveInstanceState.

It looks like Android.OS.BaseBundle is only present on API 21+

04-14 14:19:49.762 W/        (27117): Missing method PutInt in assembly Refractored.PagerSlidingTabStrip.dll, type Android.OS.BaseBundle
04-14 14:19:49.762 W/Mono    (27117): The class Android.OS.BaseBundle could not be loaded, used in Refractored.PagerSlidingTabStrip
Unhandled Exception:

System.TypeLoadException: Could not load type 'Android.OS.BaseBundle' from assembly 'Refractored.PagerSlidingTabStrip'.
@kjeremy
Copy link
Author

kjeremy commented Apr 14, 2015

Deleting my bin and obj directories seems to have fixed this.

@kjeremy kjeremy closed this as completed Apr 14, 2015
@kjeremy kjeremy reopened this Apr 14, 2015
@kjeremy
Copy link
Author

kjeremy commented Apr 14, 2015

This still occurs when I transition to another activity.

@kjeremy
Copy link
Author

kjeremy commented Apr 14, 2015

Note that I am compiling against 17 but targetting 21.

<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="21" />

@kjeremy
Copy link
Author

kjeremy commented Apr 14, 2015

Bah. I had to set my app's target framework version to 21 and now the problem has gone away. Maybe that should be specified in the README.md?

@kjeremy kjeremy closed this as completed Apr 14, 2015
@jamesmontemagno
Copy link
Owner

Added! Sorry about that, you must compile against 21 as I am using API 21 specific things. This is also just best practice to compile against your target. Here is a great breakdown: http://redth.codes/such-android-api-levels-much-confuse-wow/

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

No branches or pull requests

2 participants