【问题标题】:no resource identifier found for attribute supportsRtl in Cordova在 Cordova 中找不到属性 supportsRtl 的资源标识符
【发布时间】:2015-06-07 10:36:38
【问题描述】:

我使用 Cordova 构建 Android 应用程序。我执行cordova build android --release 命令后,显示此错误:

D:\xampp\htdocs\shie_cordova\shia\platforms\android\build\intermediates\manifests\full\release\AndroidManifest.xml:22:错误:在 android 包中找不到属性 supportsRtl 的资源标识符。

AndroidManifest.xml 文件:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.shia.main"
    android:hardwareAccelerated="true"
    android:versionCode="10"
    android:versionName="0.0.1" >

    <uses-sdk
        android:minSdkVersion="10"
        android:targetSdkVersion="15" />

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:resizeable="true"
        android:smallScreens="true"
        android:xlargeScreens="true" />

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application
        android:hardwareAccelerated="true"
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        android:supportsRtl="true">
        <activity
            android:name="com.shia.main.MainActivity"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
            android:label="@string/activity_name"
            android:launchMode="singleTop"
            android:theme="@android:style/Theme.Black.NoTitleBar"
            android:windowSoftInputMode="adjustResize" >
            <intent-filter android:label="@string/launcher_name" >
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

请帮帮我。

【问题讨论】:

  • 请详细了解您的 Manifest 文件
  • 您需要了解哪些信息?
  • 问题 android:supportsRtl="true",你需要从右到左的支持吗?
  • 是的,我项目的语言是波斯语及其 RTL!
  • 我从 AndroidManifest.xml 中删除了android:supportsRtl="true",并且 apk 已成功构建,但 apk 文件未安装在我的手机中(我的手机 android 版本是 4.4.2,我的项目目标是 15)。

标签: android cordova


【解决方案1】:

当你使用 android:supportsRtl="true" 那么你的 targetSdk 必须是 17

【讨论】:

    猜你喜欢
    • 2014-04-22
    • 2015-05-03
    • 2015-12-26
    • 2017-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-05
    • 2011-07-12
    相关资源
    最近更新 更多