[英]android:minSdkVersion & android:icon
Why is there error at android:minSdkVersion? 为什么在android:minSdkVersion出现错误? And also how do I change the android:icon to default?
还有如何将android:icon更改为默认值? I've tried android:icon="true" but it is wrong.
我试过了android:icon =“ true”,但这是错误的。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.testing"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" /> //Error : <uses-sdk> tag should specify a
target API level (the highest verified version; when running on later versions,
compatibility behaviors may be enabled) with android:targetSdkVersion="?"
<application android:icon="true" android:label="@string/app_name"> //Error : Boolean
types not allowed (at 'icon' with value 'true').
<activity android:name=".LoginActivity"
android:label="Login to your Account">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Entry for RegisterActivity.class -->
<activity android:name=".RegisterActivity"
android:label="Register New Account"></activity>
</application>
</manifest>
android-icon
will be drawable type as it will be an image. android-icon
将是可绘制类型,因为它将是图像。 Its not a boolean. Supply a target sdk version too eg, 也提供目标SDK版本,例如,
android:minSdkVersion="14" android:targetSdkVersion="17" android:minSdkVersion =“ 14” android:targetSdkVersion =“ 17”
android:icon=@drawable/ic_launcher
add this code to your uses-sdk 将此代码添加到您的uses-sdk
android:targetSdkVersion="17"
then go to project->clean->ok. 然后去项目->清洁->确定。
If that doesn't work it must have some internal error, to remove this follow the following steps:- 如果这不起作用,则必须有一些内部错误,要删除此错误,请按照以下步骤操作:-
1.Delete the project.
2.Create new project.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.