Uploading App to PlayStore failed - android

When am trying to upload the signed apk to PlayStore, I am getting following error :
Your APK cannot be analyzed using 'aapt dump badging'.
Error output: Failed to run aapt dump badging
Could not find entry resources.arsc
Zip: Could not find entry AndroidManifest
ERROR: dump failed because no AndroidManifest found
My manifest file is :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.aa"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<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"/>
<application
android:allowBackup="true"
android:label="#string/app_name"
android:theme="#style/AppTheme"
android:icon="#drawable/logo"
android:debuggable="false">
<meta-data android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version"/>
<activity
android:name="com.example.aa.xx"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.aa.bb"
android:theme="#android:style/Theme.Black.NoTitleBar"
android:screenOrientation="portrait"></activity>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application></manifest>
Where am I going wrong?
Thanks for your replies

Guys thanks for your replies. I was able to upload the App.
For people who might get similar issue here is the solution :
I just changed the package name from com.example.aa to com.zz.aa and the problem was resolved.
So i advise not to keep example in package name.

Related

Facebook sdk sample application FriendPickerSamplenot working

I have downloaded facebook sdk by registering my application on facebook developers. I got some sample applications .When i tried to run FriendPickerSample application i got the message in console as "installation failed due to invalid apk file".After that i followed the instructions in developers website,but still the problem exist.Can anyone help me know what the problem is?
the code in android manifest file is:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.facebook.samples.friendpicker"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />s
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application android:label="#string/app_name"
android:icon="#drawable/icon"
android:theme="#android:style/Theme.NoTitleBar"
android:name=".FriendPickerApplication"
>
<activity android:name="FriendPickerSampleActivity"
android:label="#string/app_name"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:name="PickFriendsActivity"
android:label="Pick Friends">
</activity>
<activity android:name="com.facebook.LoginActivity"
android:theme="#android:style/Theme.Translucent.NoTitleBar"
android:label="#string/app_name" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="#string/app_id"/>
</application>
</manifest>

Android Voice Recording

I'm trying to develop an android app that needs a user to record his voice.
I was following the Dev guide on http://developer.android.com/guide/topics/media/audio-capture.html
Eclipse gives me this error in my manifest file
The prefix "adroid" for attribute "adroid:name" associated with an element type "uses- permission" is not bound.`
This is my manifest file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.rectest"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.rectest.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>
Looks like you had a typo error when you first wrote the code.
`The prefix "adroid" for attribute "adroid:name" associated with an element type "uses- permission" is not bound`.`
As it should have been "android" and not "adroid".
The code you attached looks fine, so you should try to Clean and re-build your project.
Go to Project -> Clean -> Select your project. If this keeps, try to restart your eclipse.

Monkey says no activities found

This used to work fine before in my setting, and now its giving this error even for a test application
the default manifest file is shown below;
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.test"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.test.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>
the image of the monkey output
the project name and directory matches if i am not wrong as shown here
I have no clue what i am doing wrong here.. help please...
-p <allowed-package-name> in your case -p com.example.test
I have installed eclipse in a new clean PC and now strangely it works.. so something in this installation is creating this error.. so now, to find out why...

Android error: Application is not installed on your phone

I am getting this error when trying to install my exported unsigned application on tablet pc (running Android 4.04. version). App is normally installing and running in Android emulator in Eclipse. I tried removing and reinstalling it, but that didn't help either. Atached is my AndroidManifest.xml since problem is often there (but I can't see any duplicate code).
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="hr.punctum.LociranjePonudaProizvoda"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="16" />
<application
android:label="#string/app_name"
android:icon="#drawable/ic_launcher"
android:theme="#style/AppTheme">
<activity
android:label="#string/app_name"
android:name=".ListaProizvoda" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="DetaljiProizvoda"></activity>
<activity android:name="GMapsActivity"></activity>
<uses-library android:name="com.google.android.maps" />
</application>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
The only thing suspicious I see is the uses-library tag, do you have the Google Maps lib in your tablet? (if yes then you should have the following files in it)
/system/etc/permissions/com.google.android.maps.xml
/system/framework/com.google.android.maps.jar
Without the lib the apk installation will fail with INSTALL_FAILED_MISSING_SHARED_LIBRARY error.

Error in Android Manifest (sdk version)

I am getting an error in my manifest and I don't know why, please could you help
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.kaoticravers.djimmenze"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" android:testOnly="false" android:debuggable="false">
<activity
android:name=".startingmain"
android:screenOrientation="portrait"
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>
And in the console when I try run my app in my emulator I get this error:
[2012-04-03 23:10:31 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser exception for C:\Users\mark\workspace\KR Radio app\AndroidManifest.xml: Element type "manifest" must be followed by either attribute specifications, ">" or "/>".
[2012-04-03 23:10:31 - KR Radio app] Error in an XML file: aborting build.
I also had the same issue, there was previous error logs under Problems so I deleted those logs sorted the issue

Categories

Resources