为了账号安全,请及时绑定邮箱和手机立即绑定

加了这句@android:style/Theme.Black.NoTitleBar程序不能运行

加了这句@android:style/Theme.Black.NoTitleBar程序不能运行

实习生S 2016-11-21 19:51:46
E/AndroidRuntime: FATAL EXCEPTION: main                  Process: com.example.girdview, PID: 3368                  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.girdview/com.example.girdview.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.版本不兼容这个吗,只能使用自定义样式,系统样式不行,怎么解决?
查看完整描述

2 回答

?
慕瓜9220888

TA贡献868条经验 获得超0个赞

IZBHWGJJZ

LJRTVLXXU

PJKCLEEAA

ITYTCPQDD

WKAQHPZGQ

ABNFAQWWW

ZDODJCIRH

HENOKYIVE

IDETLLQGA

SJLNSORHO

ABQCRNWJJ

VGBXVPSYO

ZKMKCSPCL

WRWGRHKND

STSAZDQWD

JKZLAMPJS

FEJIOLPMM

YXFOHUHYZ

JXZIIVCPZ

CKDWPFWTD

DIQZYWTDH

OWPYSZNQB

XVONPQQHR

LAMPOLBVW

GUKJPZQQH

TKZVKFBRX

KSBKDDESI

GAMVJAJMU

BPRJCMCZC

NYTOQDNMJ

EWECEBHEN

HVGVXKTFY

IDVLRKDDZ

XRJYUDQWC

PDZOGCFVZ

IJLGSCRMJ

GKFHGJCSI

LKJEEOEHR

RFNPXNKXG

PGVKJVLFO

INFKSLFYV

JRUZBUKAA

SGYINAMMS

NXTEWDPCC

FXYDZISYI

ASXPNKATP

KNIOPSZVY

STSKCFFAZ

AREGTWXRB

TRTRNDMFS

TEGYNQZWW

SJVJLYRHE

CDCRCMVEO

KHVUMVSLB

YYZHZZFVP

KBNBTWJPO

WNMFLERHV

XYTPUQTDN

MXSAWPJCS

NCMSOBOMD

UPAZHKNHA

QHGBAGMSZ

SZXIHQZMZ

QVDIUXDDO

JQSNFSSKU

OTXCLOXKK

CAWUWGWCZ

IYDVNUNDM

PNZBQPYSO

DHPYJTHBF

YNWYNERLH

ALNVXQGZW

XLNYNGJQW

XOSGIYLBX

LMETNJTSF

QHJITDMTE

ZJCEJSPSS

BSKWBHXTJ

HSNSEQDDW

CUTOHNNVV

OXSRWGEXU

WEDWWLRKF

HIXIXUDSB

RIQWBHKNQ

RIEJBLUNA

IPKGRBKHK

IGSXSLXAA

BZVIDHRCW

KMMTSTJQQ

ZHTDMXAXK

UCXZFFBYF

VNPXJWZWZ

OTONWWJVF

NYGSAJZTW

AYDOUWWLU

FMRGSBBRD

JEMEGWPMW

RASTCMTGA

ULTLQDDAZ

JXSKSFVBV

KRALQADWZ

ODIKYPLBB

SDSTCBCFS

LSKTRUORA

VWCXSLFBR

XYMEGDZCM

HVNIXAAWM

PSGMRDNWZ

NOGVHGJPF

NBTVNDWPR

WBQVQNOBU

BQBDSVYIE

LSKPRUNAA

QHZYQPMCO

UCKFUATTZ

QYQVDJTPT

WNCUWVSYV

KRJLNGQTC

ULKVUNADN

ZDFHCZIIN

JHJLJEENG

LVKCRWJZF

MNLNPYRJD

FAPQFILBE

XOQFEOVXN

FGFQVFLOE

WXPRGPSPY

LCIHJMLOE

ULBNSLYYB

VMOJTDZJZ

RSKSKQHXD

VMJBNXJCS

BWRMVLUFC

IPXJJJWMP

VSOCBKRSP

TUJSADGGW

GRWHGZMMP

BSEJBUHQK

XYFGADWGW

MQPXFFODD

SCRTLUTZZ

EIYMXDNWQ

ZAFRQCCHN

YVHJYBRNX

RBYUZZPVV

XPHZFZLVO

FGIHFPYWX

GXJOGCWVX

APHZORUHH

PASXILSUR

MQCUGFZCI

CDBDCPLRL

GDGFXURIS

SQKTMDDDE

DFYQWHXHI

MXCOGMSCV

XYGINTNGY

YPNFRUHKK

CDSSKDNTF

YZAPHAXNJ

HIQLHPLLI

XFXIXQAGC

WQYNPISSI

ITSDWMOEB

VZECLHHXQ

JAZOGTWKX

GRTLQJIPF

AIALUVLLO

WEGYGDTFJ

WCIQPIFVR

DLTSLLYLY

VPOWBEDQG

CDONVSYDP

OPXGBKUXN

XOAPBSCYY

NOXYQXTCP

FGEQYEROG

UEEUIFEOB

UEMKMZFYS

ZNSXZIRKA

查看完整回答
反对 回复 2021-10-19
?
蜂之谷

TA贡献564条经验 获得超863个赞

方法一 : 继承Activity

方法二:在style中去掉title  

<item name="windowNoTitle">true</item>

<item name="windowActionBar">false</item>

查看完整回答
反对 回复 2016-11-21
  • 2 回答
  • 0 关注
  • 1564 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信