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
Related
I finished of developing my app but when a try to generate a singned APK Android Studio shows:
Error:(11) No resource identifier found for attribute 'depurables' in package 'android'
I remove de android:depurables="true" (I know that I should let the identifier there but I whanna try) but Android Studio put it again in the AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mosaicogeek.skintigth.learning.vochostest"
android:versionCode="5"
android:versionName="Beta 2" >
<uses-sdk
android:minSdkVersion="21"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:depurables="false"
android:icon="#mipmap/ic_launcher"
android:label="Vochos"
android:supportsRtl="true"
android:theme="#style/AppTheme" >
<activity android:name="mosaicogeek.skintigth.learning.vochostest.MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="android.support.v7.widget.TestActivity"
android:label="RecyclerViewTestActivity" />
</application>
</manifest>
There isn't an attribute called depurables, which is why you get that error. I doubt Android Studio would be auto adding that back in the manifest. Find all occurrences of "depurables" in your project to see if you get a hint of what is going on. Edit-->Find-->Find In Path
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.
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.
Getting this error:
Parser exception for C:\Users\Richy\workspace\Networking\AndroidManifest.xml: The element type "application" must be terminated by the matching end-tag "</application>".
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.learn2develop.Networking"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/icon"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.Networking.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>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
</manifest>
It's getting me mad because I cannot figure it out. I've read other questions on here regarding the same error but I don't see that I've made the same mistake as them.
Try rebuilding the project from scratch via the "Project" tab.
Typically "Build Automatically" is checked, but try "Clean..." and then "OK".
I've had this exact problem when placing a <uses-permission> tag below the <application> tag. Lint is supposed to throw a warning:
<uses-permission> tag appears after <application> tag
But in my case it didn't, and simply refused to generate R.java. Try moving it to just after the <uses-sdk> tag and recleaning your project.
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...