android - 在 Cordova 中找不到属性 supportsRtl 的资源标识符

标签 android cordova

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

D:\xampp\htdocs\shie_cordova\shia\platforms\android\build\intermediates\manifests\full\release\AndroidManifest.xml:22: error: no resource identifier found for attribute supportsRtl in package android.

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>

请帮帮我。

最佳答案

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

关于android - 在 Cordova 中找不到属性 supportsRtl 的资源标识符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30692533/

相关文章:

Android 字体字距调整 : Nexus 7 vs. Galaxy Tab 2

java - 将项目动态添加到 List<Integer> 并转换为 Integer[] 数组

android - 从 ListView 中删除一个项目并在每行中单击按钮刷新它

javascript - jQuery.html() 在用 cordova 制作的 android 应用程序中不起作用

android - Apache Cordova 允许导航被允许 Intent 覆盖

javascript - FileReader 未在 Ionic 2 中触发 onloadend

android - IntentService 不会显示 Toast

android - 通知图标变灰

javascript - 无法使用 PhoneGap 的地理定位 API;总是使用 Safari。出现丑陋的地理位置提示

android - 我的 cordova webview 应用程序真的比同一部手机上的 android 浏览器慢