我使用 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/