首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Android Studio Manifest错误

Android Studio Manifest错误
EN

Stack Overflow用户
提问于 2017-03-15 22:40:51
回答 2查看 451关注 0票数 1

我已经导入了一个项目,我在Android Manifest文件中发现错误。由于我是Android Studio的新手,请帮助我纠正这个错误。这些是我遇到的错误代码行。这是我的Manifest文件,在前5行我有错误。请帮我纠正这个错误

代码语言:javascript
运行
复制
 <manifest xmlns:"http://schemas.android.com/apk/res/android"
android:theme="@android:style/Theme.NoTitleBar"
android:versionCode="16" android:versionName="2.18"
android:installLocation="preferExternal" package="com.Vinformax.VinformaxAR"
platformBuildVersionCode="24" platformBuildVersionName="7.0">
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22" />
<uses-feature android:name="android.hardware.camera" />
<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="0x7f030000" android:icon="0x7f020000" android:debuggable="false" android:isGame="false">
    <activity android:label="0x7f030000" android:name="com.unity3d.player.UnityPlayerNativeActivity" android:launchMode="singleTask" android:screenOrientation="portrait" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
        <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
    </activity>
    <activity android:label="0x7f030000" android:name="com.unity3d.player.VideoPlayer" android:screenOrientation="portrait" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale" />
    <uses-library android:name="com.ti.s3d" android:required="false" />
    <uses-library android:name="com.osterhoutgroup.api.ext" android:required="false" />
</application>
<uses-feature android:glEsVersion="20000" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />
EN

回答 2

Stack Overflow用户

发布于 2017-03-15 22:44:28

首先是manifest does not have an android:theme attribute

其次,任何android:theme属性的值中都没有*

最有可能的情况是,您的android:theme应该在<application>元素上,或者可能是一个特定的<activity>元素,并且值应该是"@android:style/Theme.NoTitleBar"

票数 1
EN

Stack Overflow用户

发布于 2017-03-15 22:50:09

更改行:

代码语言:javascript
运行
复制
android:theme="@*android:style/Theme.NoTitleBar"

代码语言:javascript
运行
复制
android:theme="@android:style/Theme.NoTitleBar"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42812912

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档