minSdkVersion positive 32-bit integer - android

I am trying to publish an application in the market and i am getting the following error.
Market requires the minSdkVersion to be set to a positive 32-bit
integer in AndroidManifest.xml.
this is my manifest file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.v3.scribeair.lite" android:versionCode="1"
android:versionName="1.0">
<uses-sdk minSdkVersion="6" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<application android:label="#string/app_name" android:icon="#drawable/icon">
<activity android:name=".ScribeAirActivity" android:label="#string/app_name"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".DeviceListActivity" android:label="#string/select_device"
android:theme="#android:style/Theme.Dialog" android:configChanges="orientation|keyboardHidden" />
<activity android:name=".AboutActivity" android:label=""
android:theme="#android:style/Theme.NoTitleBar" />
</application>
</manifest>

Instead of this <uses-sdk minSdkVersion="6" />
use this one
<uses-sdk android:minSdkVersion="6" />

Related

android:versioncode and android:versionname how to make my sdk compatible

I just decompiled an APK so that I can see the how the app works.
I imported the project but it's almost completely red for errors.
Do I have to change something in the Manifest?
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2" android:versionName="1.1" package="com.jesstech.bluetooth.bledemo"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<application android:theme="#*android:style/Theme.Holo.Light" android:label="#string/app_name" android:icon="#drawable/ic_launcher" android:allowBackup="false">
<activity android:label="#string/app_name" android:name="com.jesstech.bluetooth.bledemo.DeviceScanActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.jesstech.bluetooth.bledemo.DeviceControlActivity" />
<service android:name="com.jesstech.bluetooth.bledemo.BluetoothLeService" android:enabled="true" />
</application>
</manifest>
your Manifest should be this way
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jesstech.bluetooth.bledemo"
android:versionCode="2"
android:versionName="1.1" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="19" />
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<application android:theme="#*android:style/Theme.Holo.Light" android:label="#string/app_name" android:icon="#drawable/ic_launcher" android:allowBackup="false">
<activity android:label="#string/app_name" android:name="com.jesstech.bluetooth.bledemo.DeviceScanActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.jesstech.bluetooth.bledemo.DeviceControlActivity" />
<service android:name="com.jesstech.bluetooth.bledemo.BluetoothLeService" android:enabled="true" />
</application>
</manifest>
and for the sdk
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="19" /> depends on your SDK version

Use a broadcastreceiver implemented in another imported project

If i declare a broadcastreceiver in my Android app it's all alright. Now i am trying to use that receiver implemented in an imported project. In the main project i declare that receiver in the manifest with the correct path(from the imported project).
I don't understand if this can work, although i don't see why,but in debug mode the receiver is not reached.
This is in the manifest of the main project:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.main.project"
android:installLocation="internalOnly"
android:versionCode="1"
android:versionName="1.1" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application
android:allowBackup="true"
android:icon="#drawable/app_icon"
android:label="#string/app_name"
android:theme="#android:style/Theme.Black.NoTitleBar" >
<activity
android:name="com.main.project.SplashActivity"
android:label="#string/app_name"
android:theme="#android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.main.project.MainActivity"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="com.main.project.MainActivity"
android:scheme="oauth" />
</intent-filter>
</activity>
<receiver
android:name="importedproject.path.BBReceiver"
android:exported="true" >
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
</application>
</manifest>
And the manifest of the imported android library is:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="importedproject.path"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="importedproject.path.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Am i missing something? thank you.

No resource identifier found for attribute 'uiOptions' in package 'android'

<?xml version="1.0" ?>
<manifest android:screenOrientation="landscape" android:versionCode="3"
android:versionName="3" package="com.tablet3" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="11" />
<!-- TI_MANIFEST -->
<application android:debuggable="false" android:icon="#drawable/appicon"
android:label="actiobar" android:name="actiobarApplication">
<!-- TI_APPLICATION -->a
<activity android:configChanges="keyboardHidden" android:screenOrientation="landscape"
android:label="mob" android:name=".actiobarActivity" android:theme="#style/Theme.Titanium">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboardHidden" android:name="org.appcelerator.titanium.TiActivity"
android:screenOrientation="landscape" />
<activity android:configChanges="keyboardHidden" android:name="org.appcelerator.titanium.TiTranslucentActivity"
android:screenOrientation="landscape" />
<activity android:configChanges="keyboardHidden" android:name="org.appcelerator.titanium.TiModalActivity"
android:screenOrientation="landscape" />
<activity android:configChanges="keyboardHidden" android:name="ti.modules.titanium.ui.TiTabActivity"
android:uiOptions="splitActionBarWhenNarrow" android:screenOrientation="landscape"
/>
<activity android:name="ti.modules.titanium.ui.android.TiPreferencesActivity"
android:screenOrientation="landscape" />
<service android:exported="false" android:name="org.appcelerator.titanium.analytics.TiAnalyticsService"
/>
</application>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
/>
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
I get this error when i add uiOptions to my activity.
AndroidManifest.xml:22: error: No resource identifier found for attribute 'uiOptions' in package 'android'
I want the ActionBar to come down, so i am actually trying to uiOptions in my Activity.
This attribute was added in API 14, but you have specified targetSdkVersion 11

Android changes to be made in Manifest working with different packages

I have two packages and within them are multiple activities. After seeing the replies in stackoverflow, i have made necessary changes in manifest file, still the apk doesnt runs.
Here is my sample manifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xyz.user.login"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".SplashActivity"
android:label="#string/title_activity_splash" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".SucessRetrieveCredActivity" >
</activity>
<activity android:name=".ResetPasswordMessageActivity" >
</activity>
<activity android:name=".ResetPasswordActivity" >
</activity>
<activity android:name="com.xyz.stylist.search.ServiceMap" >
</activity>
<uses-library
android:name="com.google.android.maps"
android:required="true" />
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
I have to import import com.hairologie.user.login.R; in ServiceMap activity, still it doesnt works. Earlier when ServiceMap and other activities were in same package, it worked just fine.
try this:
manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xyz"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".user.login.SplashActivity"
android:label="#string/title_activity_splash" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".user.login.SucessRetrieveCredActivity" >
</activity>
<activity android:name=".user.login.ResetPasswordMessageActivity" >
</activity>
<activity android:name=".user.login.ResetPasswordActivity" >
</activity>
<activity android:name=".stylist.search.ServiceMap" >
</activity>
<uses-library
android:name="com.google.android.maps"
android:required="true" />
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Write
android:name="com.yourpackage.activityName" in ManifestFile instead of
android:name = ".ActivityName"
it will solve the issue.
Change your package name in manifest to com.xyz
declare all the activities like
android:name=".stylist.search.ServiceMap"
android:name=".user.login.SplashActivity"
After that clean and build your project and run

Android Market Place App Upload Error

I'm having trouble uploading an app to the market place. When the app is uploaded an error is displayed stating that the apk is not valid. But no reason is given.
I believe I have everything correct in the manifest file and I went through the process in eclipse to obtain a valid key (Export-Create a new key store- etc.)
The manifest file is posted below. Any help is appreciated, thanks.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.totaltodolist2"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8"></uses-sdk>
<uses-permission android:name="android.permission.SEND_SMS"></uses-permission>
<application android:icon="#drawable/newglobe" android:label="Total to Do List">
<activity android:name="AddNewContact"></activity>
<activity android:name="contactLookUp"></activity>
<activity android:name="EditContact"></activity>
<activity android:name="SevenListEntryActivity">
</activity>
<activity android:name="ItemOptions"></activity>
<activity android:name="MakeCallActivity" android:noHistory="true"></activity>
<activity android:name="PickDateActivity"></activity>
<activity android:name="SevenListActivity"></activity>
<activity android:name="SevenListDisplayActivity"></activity>
<activity android:name="TextActivity" android:noHistory="true"></activity>
<activity android:name="WebActivity" android:noHistory="true"></activity>
<activity android:name="Begin"> </activity>
<activity android:name="StartPage">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="SettingsActivity"></activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
</manifest>
If that is your whole manifest, you are missing some key elements.
For example:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mypackage.name.appname"
android:versionName="#string/version" android:versionCode="15">
<uses-sdk android:targetSdkVersion="7" android:minSdkVersion="7" />
<application android:label="#string/app_name" android:icon="#drawable/icon">
<activity spam here>
</application>
<define permissions here>
</manifest>

Categories

Resources