minSdkVersion Error when uploading APK to Android Market - android

When I try uploading the APK to the Android Market, I get this message:
Market requires the minSdkVersion to
be set to a positive 32-bit integer in
AndroidManifest.xml.
But I have defined android:minSdkVersion in my Manifest...
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mkainc.tabwidget"
android:versionCode="7"
android:minSdkVersion="7"
android:versionName="2.1">
...

Your SDK information needs to be contained in a uses-sdk tag:
<uses-sdk android:minSdkVersion="integer"
android:targetSdkVersion="integer"
android:maxSdkVersion="integer" />
See the documentation for details.

Related

Android app runs on Marshmallow and above API versions, but doesn't run below it

I am making one Android app. The app is working fine in android M and above, but my API's are not working in android below M
Here is my android manifest file. What is wrong with that?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tool="http://schemas.android.com/apk/res-auto"
package="com.milestonestudioz.adaalo"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="25"/>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
You need to give the min SDK version in the Gradle file of your Android folder. When you give there the min Sdk, I think it should work. In case of any more clarification do ask...

Google Play Uploading new APK file

I uploaded an APK for alpha which is version 1.0 and published as alpha. I made some changes in application and want to change the previous apk but it says 1.0 already exists. I tried to upload 1.0.1 but it says the same. What should I do?
old manifist file
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.urlconnectionclass"
android:versionCode="1"
android:versionName="1.0.0" >
new manifest file
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.urlconnectionclass"
android:versionCode="2"
android:versionName="1.1.0" >
always increse the value of versioncode and versionname while uploding apk of same production
Two important rules from Google:
The Version Code needs to be greater than that current version. Learn more about versioning your applications.
Example:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.package.name"
android:versionCode="2"
android:versionName="1.1">
<application android:icon="#drawable/icon" android:label="#string/app_name">
...
</application>
</manifest>
The updated APK needs to be signed with the same signature as the
current version.
All rules and requirements: Update your apps
You change version in android manifest?

Android: installLocation

I'm new in Android, I was trying to set installLocation in manifest, I found here that my minsdk should be Ver2.2(froyo) and above.
here in my mainfest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ir.royalplus.guessyourcar"
android:versionCode="1"
android:installLocation="auto"
android:versionName="3.0" >
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17" />
but I still have this error:
error: No resource identifier found for attribute 'installLocation' in package 'android'
what is wrong with my code?!
android:installLocation was introduced with API level 8. Since your minSdkVersion="7" is lower than 8 it is not supported. To solve this issue set your minSdkVersion to 8 or higher.
Source
From the documentation - installLocation, Introduced in: API Level 8. Your current min is 7, so it'll throw an error. To fix this, just change your min to 8.

Is versionCode/versionName required in library manifest?

Below is a manifest of one of my library projects. Currently I increase the versionCode and versionName with every change. Is that required?
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="preferExternal"
android:versionCode="14"
android:versionName="1.1.7"
package="com.tubala.android" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="11" />
</manifest>
Thanks in advance.
Currently AndroidManifest.xml of Android Library is completely ignored when building application that uses this library. The only thing that is used by aapt tool is package attribute (to generate R class into correct package).
This might be changed in next releases. But I'd say you should keep your versioning anyway. This is a good practice (even if build tools are ignoring it).
android:versionName attribute is not necessary. It's just a version users see when they open your application information in the application manager.
android:versionCode is more important. You must increase it every time you publish your application on the Android Market.

Android Error - Market requires the minSdkVersion to be set to a positive 32-bit integer in AndroidManifest.xml

I'm trying to upload an App onto the Market Place and i'm getting the following error "Market requires the minSdkVersion to be set to a positive 32-bit integer in AndroidManifest.xml." after i export the signed Application Package using Eclipse. My Manifest File looks like the following:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.recipes"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk minSdkVersion="7"
android:targetSdkVersion="8"/>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
Anyone know why i'm getting this error?
Thanks,
O

Categories

Resources