HELP! - Cannot publish app on Android Market

MCP

Member
Licensed User
Longtime User
Hi folks,
I've just finished my first B4A app and I've digitally signed it correctly with a private key but when I come to upload it to the Android Market I get an error that says:-

The file is invalid: ERROR getting 'android:name' attribute:

The app installs and runs on my hardware and emulators no problem but the Android Market rejects the apk every time.

Please can someone offer any advice/help here?

EDIT: I know it's something to do with the AndroidManifest file and all I can say that I haven't modified it in any way or set it to read only. Is this a Bug?
 
Last edited:

MCP

Member
Licensed User
Longtime User
Hi Erel,

I've managed to locate the problem with the AndroidManifest file.
For some reason the last Uses-Permission field was an empty string.
I've removed it and set AndroidManifest.xml file to read only.
That has cured the problem.

The original offending AndroidManifest.xml file:-

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="lcw.SaxonRuneQuest"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="internalOnly">
<uses-sdk android:minSdkVersion="4" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
<application android:icon="@drawable/icon" android:label="Saxon Rune Quest">

<activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name=".main"
android:label="Saxon Rune Quest" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>


</application>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name=""/>

</manifest>

Now fixed...

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="lcw.SaxonRuneQuest"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="internalOnly">
<uses-sdk android:minSdkVersion="4" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
<application android:icon="@drawable/icon" android:label="Saxon Rune Quest">

<activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name=".main"
android:label="Saxon Rune Quest" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>


</application>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>


</manifest>


Thanks
 
Top