android:screenOrientation=“portrait“ 一直警告报红

简介: android:screenOrientation=“portrait“ 一直警告报红

升级了新版本的gradle以后会好多问题,其中一个AndroidManifest.xml配置文件也有编译问题。

image.png

鼠标放上去就提示这个

image.png

解决方法:

application标签下加入:

xmlns:tool="http://schemas.android.com/tools"

tool:ignore="LockedOrientationActivity"


如图:

image.png


相关文章
|
8月前
|
Android开发
Android 中AlertDialog警告对话框的使用
Android 中AlertDialog警告对话框的使用
72 0
|
Java Android开发
【错误记录】Android 编译时技术版本警告 ( 注解处理器与主应用支持的 Java 版本不匹配 )
【错误记录】Android 编译时技术版本警告 ( 注解处理器与主应用支持的 Java 版本不匹配 )
311 0
【错误记录】Android 编译时技术版本警告 ( 注解处理器与主应用支持的 Java 版本不匹配 )
|
Android开发
Android studio更新后出现警告:Warning:The `android.dexOptions.incremental` property is deprecated and it has
Android studio更新后出现警告:Warning:The `android.dexOptions.incremental` property is deprecated and it has
|
开发工具 Android开发
如何解决Android 5.0中出现的警告:Service Intent must be explicit
如何解决Android 5.0中出现的警告:Service Intent must be explicit
|
消息中间件 Android开发
Android应用开发—如何解决handler的警告:Handler Class Should be Static or Leaks Occur
转自android handler的警告Handler Class Should be Static or Leaks Occur 在使用Handler更新UI的时候,我是这样写的: public class...
1419 0
|
Web App开发 Android开发
去掉 Android工程中让人很不爽的“黄色警告”
一:问题       二:解决方法 (1)选择android工程,右键Android Tools —> Clear Lint Markers 这种方式能够清除android工程里面的所有警告信息,但很遗憾,下一次打开eclipse的时候还会继续提示,非常不爽! (2)使用@SuppressLint标注忽略指定的警告 要使用该标注,需要引入annotations.jar,默认新建工程的时候都会有这个jar包。
1419 0
|
Java Android开发
我的Android进阶之旅------>如何解决Android 5.0中出现的警告: Service Intent must be explicit:
我的Android进阶之旅——>如何解决Android 5.0中出现的警告: java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.
1501 0
|
存储 定位技术 Android开发
我的Android进阶之旅------>Android使用百度地图时,关于android.permission.BAIDU_LOCATION_SERVICE的声明警告。
【重要提醒】 定位SDKv3.1版本之后,以下权限已不需要,请取消声明,否则将由于Android 5.0多帐户系统加强权限管理而导致应用安装失败。 声明和使用以下权限 来源于百度:http://developer.
1331 0
|
20天前
|
Java Android开发
Android 开发获取通知栏权限时会出现两个应用图标
Android 开发获取通知栏权限时会出现两个应用图标
12 0