Reputation:
How can I change my application's target sdk from api 10 to api 17 in android studio ? my application is not receiving data from internet in 4.1 version of android mobile but working fine with 2.3.3
This is my mainifest.xml code
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.national.nhl"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="10" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.national.nhl.Splash"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.national.nhl.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.national.nhl.MAINACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Upvotes: 1
Views: 560
Reputation: 5302
Now in the latest Android studio version android:targetSdkVersion
is no more defined in manifest file. Use build.gradle under your application folder to change.
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
defaultConfig {
minSdkVersion 9
targetSdkVersion 17
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
Upvotes: 1
Reputation: 4930
Look into your build.gradle
file of your app, there you find the defaultConfig where you can change the targetSDK to 17:
defaultConfig {
minSdkVersion 9
targetSdkVersion 17
}
Upvotes: 0
Reputation: 1017
What exactly is your question? Do you want to change target sdk version to 17? Then just change
android:targetSdkVersion="10"
to
android:targetSdkVersion="17"
and save your changed manifest.
Upvotes: 0