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

You need to use a Theme.AppCompat theme #44

Closed
wzhsh90 opened this issue May 5, 2021 · 1 comment
Closed

You need to use a Theme.AppCompat theme #44

wzhsh90 opened this issue May 5, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@wzhsh90
Copy link

wzhsh90 commented May 5, 2021

{code: 2006, detailMsg: Code:2006, msg:查询失败:解析Json错误!(You need to use a Theme.AppCompat theme (or descendant) with this activity.), message: 查询失败:解析Json错误!(You need to use a Theme.AppCompat theme (or descendant) with this activity.)}

style 修改为下面

<style name="LaunchTheme" parent="Theme.AppCompat.Light.NoActionBar"> @drawable/launch_background false </style>

021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:843)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:806)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:684)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at androidx.appcompat.app.AppCompatDialog.setContentView(AppCompatDialog.java:100)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.widget.BaseDialog.init(BaseDialog.java:79)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.widget.BaseDialog.init(BaseDialog.java:75)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.widget.BaseDialog.(BaseDialog.java:64)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.widget.BaseDialog.(BaseDialog.java:51)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.widget.UpdateDialog.(UpdateDialog.java:128)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.widget.UpdateDialog.newInstance(UpdateDialog.java:119)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.flutter_xupdate.FlutterUpdatePrompter.showPrompt(FlutterUpdatePrompter.java:60)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.UpdateManager.findNewVersion(UpdateManager.java:344)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.utils.UpdateUtils.processUpdateEntity(UpdateUtils.java:92)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.proxy.impl.DefaultUpdateChecker.processCheckResult(DefaultUpdateChecker.java:137)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.proxy.impl.DefaultUpdateChecker.onCheckSuccess(DefaultUpdateChecker.java:102)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.proxy.impl.DefaultUpdateChecker.access$000(DefaultUpdateChecker.java:46)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.xupdate.proxy.impl.DefaultUpdateChecker$1.onSuccess(DefaultUpdateChecker.java:65)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.flutter_xupdate.OKHttpUpdateHttpService$1.onResponse(OKHttpUpdateHttpService.java:82)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.xuexiang.flutter_xupdate.OKHttpUpdateHttpService$1.onResponse(OKHttpUpdateHttpService.java:74)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at com.zhy.http.okhttp.OkHttpUtils$3.run(OkHttpUtils.java:186)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at android.os.Handler.handleCallback(Handler.java:888)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at android.os.Handler.dispatchMessage(Handler.java:100)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at android.os.Looper.loop(Looper.java:213)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8178)
2021-05-05 21:44:44.773 31453-31453/com.example.shzgej_web W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2021-05-05 21:44:44.774 31453-31453/com.example.shzgej_web W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)

@wzhsh90 wzhsh90 added the bug Something isn't working label May 5, 2021
@github-actions
Copy link

github-actions bot commented May 5, 2021

To support our project, please file the issue after you starred the repo. Thanks! 🙂

@github-actions github-actions bot closed this as completed May 5, 2021
@github-actions github-actions bot locked as spam and limited conversation to collaborators May 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants