Odroid N2+板程序打不开

发布于 2025-01-18 09:07:22 字数 423 浏览 1 评论 0原文

我正在为 Android 编写简单的测试应用程序。我正在使用 Odroid N2+ 板。 我尚未对代码进行任何更改,当我从 Android Studio 将应用程序下载到 Odroid Board 时,应用程序会自行崩溃/关闭。

首先,我将最小SDK设置为28(Android Pie 9.0),将targetSDK和compileSDK设置为31。同样从sdk 31开始,我设置了

       android:exported="true"/"false"

当它不起作用时,我将compileSDK和targetSDK设置为28,还有一个更改是

implementation 'androidx.appcompat:appcompat:1.3.0'

除此之外,没有变化。为什么它不工作?

I am writing simple test app for Android things. I am using Odroid N2+ board.
I have not made any changes in the code yet when I download app to Odroid Board from Android Studio, the app crashes/closes itself.

Firstly I set minimum SDK to 28 (Android Pie 9.0)and targetSDK and compileSDK to 31. Also from sdk 31 , I set

       android:exported="true"/"false"

When it did not work, I set compileSDK and targetSDK to 28 and one more change was

implementation 'androidx.appcompat:appcompat:1.3.0'

Besides there, there is no changes. Why is it not working ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月隐月明月朦胧 2025-01-25 09:07:22

Logcat 错误显示“您需要在此活动中使用 Theme.AppCompat 主题(或后代)”。所以我改变了主题如下

<application android:label="@string/app_name"
    android:theme="@style/Theme.AppCompat.Light">

它到目前为止工作

The Logcat error said "You need to use a Theme.AppCompat theme (or descendant) with this activity". So I changed the theme as below

<application android:label="@string/app_name"
    android:theme="@style/Theme.AppCompat.Light">

Its working so far

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文