Odroid N2+板程序打不开
我正在为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Logcat 错误显示“您需要在此活动中使用 Theme.AppCompat 主题(或后代)”。所以我改变了主题如下
它到目前为止工作
The Logcat error said "You need to use a Theme.AppCompat theme (or descendant) with this activity". So I changed the theme as below
Its working so far