[英]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.