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

Example crashes when using AppCompat 22.1.0 #76

Closed
Iketaki opened this issue Apr 28, 2015 · 5 comments
Closed

Example crashes when using AppCompat 22.1.0 #76

Iketaki opened this issue Apr 28, 2015 · 5 comments

Comments

@Iketaki
Copy link

Iketaki commented Apr 28, 2015

I tried to run the example project but it crashed.
Stacktrace is below.

FATAL EXCEPTION: main
                        E  Process: com.tonicartos.superslim.example, PID: 1250
                        E  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tonicartos.superslim.example/com.tonicartos.superslimexample
                           .MainActivity}: java.lang.IllegalArgumentException: AppCompat does not support the current theme features
                        E      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
                        E      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
                        E      at android.app.ActivityThread.access$800(ActivityThread.java:135)
                        E      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
                        E      at android.os.Handler.dispatchMessage(Handler.java:102)
                        E      at android.os.Looper.loop(Looper.java:136)
                        E      at android.app.ActivityThread.main(ActivityThread.java:5001)
                        E      at java.lang.reflect.Method.invokeNative(Native Method)
                        E      at java.lang.reflect.Method.invoke(Method.java:515)
                        E      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
                        E      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
                        E      at dalvik.system.NativeStart.main(Native Method)
                        E  Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features
                        E      at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:360)
                        E      at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:246)
                        E      at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106)
                        E      at com.tonicartos.superslimexample.MainActivity.onCreate(MainActivity.java:115)
                        E      at android.app.Activity.performCreate(Activity.java:5231)
                        E      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
                        E      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
                        E      ... 11 more
@ThanosFisherman
Copy link

Yes, you just need to change your values > styles.xml from
<item name="android:windowNoTitle">true</item>
to
<item name="windowNoTitle">true</item>

@Iketaki
Copy link
Author

Iketaki commented Apr 30, 2015

It works. Thank you.
I hope this will be fixed in next version:)

@Iketaki Iketaki closed this as completed Apr 30, 2015
@TonicArtos
Copy link
Owner

I probably should update the example project. I am going to reopen this until then.

@TonicArtos TonicArtos reopened this Apr 30, 2015
@TonicArtos TonicArtos modified the milestone: 0.4.11 May 2, 2015
@jesielin
Copy link

jesielin commented May 4, 2015

Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find com.android.support:recyclerview-v7:22.1.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/recyclerview-v7/22.1.1/recyclerview-v7-22.1.1.pom
https://jcenter.bintray.com/com/android/support/recyclerview-v7/22.1.1/recyclerview-v7-22.1.1.jar
https://repo1.maven.org/maven2/com/android/support/recyclerview-v7/22.1.1/recyclerview-v7-22.1.1.pom
https://repo1.maven.org/maven2/com/android/support/recyclerview-v7/22.1.1/recyclerview-v7-22.1.1.jar
file:/Users/shawn/Documents/android-sdk/extras/android/m2repository/com/android/support/recyclerview-v7/22.1.1/recyclerview-v7-22.1.1.pom
file:/Users/shawn/Documents/android-sdk/extras/android/m2repository/com/android/support/recyclerview-v7/22.1.1/recyclerview-v7-22.1.1.jar
file:/Users/shawn/Documents/android-sdk/extras/google/m2repository/com/android/support/recyclerview-v7/22.1.1/recyclerview-v7-22.1.1.pom
file:/Users/shawn/Documents/android-sdk/extras/google/m2repository/com/android/support/recyclerview-v7/22.1.1/recyclerview-v7-22.1.1.jar
Required by:
cwapp:app:unspecified > com.tonicartos:superslim:0.4.12

@TonicArtos
Copy link
Owner

The Support Library v22.1.1 is available as an update through the Android SDK Manager.

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

4 participants