Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Add custom font for application using Calligraphy #59

Closed
srikanthnama opened this issue Jun 3, 2015 · 1 comment
Closed

Add custom font for application using Calligraphy #59

srikanthnama opened this issue Jun 3, 2015 · 1 comment

Comments

@srikanthnama
Copy link

I am getting this issue when trying to apply custom font for my application. I am using Calligraphy.

I have mentioned the below lines in my theme, still getting this error. I tried without the Calligraphy, it is working fine. Problem when i added Calligraphy only.
name="windowActionBar" false
name="windowNoTitle" true

06-03 09:16:47.812 2100-2100/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.github.florent37.materialviewpager.sample, PID: 2100
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.github.florent37.materialviewpager.sample/com.github.florent37.materialviewpager.sample.MainActivity}: java.lang.IllegalArgumentException: AppCompat does not support the current theme features
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:360)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:246)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106)
at com.github.florent37.materialviewpager.sample.MainActivity.onCreate(MainActivity.java:52)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
            at android.app.ActivityThread.access$800(ActivityThread.java:151)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5254)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

@florent37
Copy link
Owner

you should post this in the Calligraphy issue tracker too. I don't know why it's not working, I never used Calligraphy

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

No branches or pull requests

2 participants