简体   繁体   English

Android Studio无法识别Oreo的最新版本代码或新窗口类型

[英]Android studio not recognizing Latest version code or new window type for Oreo

I have an ionic project that I've been able to build for some time. 我有一个已经建立了一段时间的离子项目。 Somehow the build configuration got screwed up and now I am left in this state. 不知何故,构建配置搞砸了,现在我处于这种状态。 The IDE (and the build process) don't recognize the lastest version code Build.VERSION_CODES.O or a window type that was added in Oreo WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY . IDE(以及构建过程)无法识别最新版本的代码Build.VERSION_CODES.O或在Oreo WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY中添加的窗口类型。 在此处输入图片说明

in my AndroidManifest.xml file I have: <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="26" /> 在我的AndroidManifest.xml文件中,我具有: <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="26" />

I also have all of the latest SDK versions installed in android studio: 我还在android studio中安装了所有最新的SDK版本: 在此处输入图片说明

It turns out that the latest version of cordova only supports android api version 25 . 事实证明, 最新版本的cordova仅支持android api版本25 Somehow in working in the android files within android studio I had modified it and it was working targetting api version 26, but after rebuilding from source that is no longer. 我以某种方式在android studio内的android文件中进行了修改,并且它的工作目标是api版本26,但是从源代码重建后,它不再可用了。 Build.VERSION_CODES.O or a window type that was added in Oreo WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY are only recognized in api version 26 & up. 只能在api版本26及更高版本中识别Build.VERSION_CODES.O或在Oreo WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY中添加的窗口类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 FCM通知无法在Android最新版本OREO中使用 - FCM notifications not working in Android latest version OREO Android studio 无法识别新模块 - Android studio not recognizing new module 如何在最新版本的Android Studio中导入Actionbar Sherlock库 - How to import Actionbar Sherlock library in new latest version of Android Studio Android Studio 无法识别运行时权限代码 - Android Studio is not recognizing runtime permission code Android Studio不执行最新代码 - Android studio not executing latest code 我的 MainActivity 在使用 android 旧版本(例如奥利奥)时滞后,但在最新版本中运行流畅,如何解决? - My MainActivity lags while using android older versions (oreo for example) but works smoothly in the latest version , how to fix it? 通过代码android检查设备中的应用是最新版本还是不是最新版本 - Check app in device is latest version or not latest version by code android 哪个gradle版本与最新的Android Studio一起使用? - Which gradle version to use with the latest Android Studio? 如何在 Android Studio 中使用最新的 gradle 版本 - How to use the latest gradle version in Android Studio Android Studio 支持的最新 JDK 版本是哪个? - Which JDK version is the latest supported by Android Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM