Zero
Zero

Reputation: 367

AndroidManifest.xml does not declare a Java package: Build aborted

Getting this specific error over and over again, while building the project.

AndroidManifest.xml does not declare a Java package: Build aborted.

Upvotes: 0

Views: 1964

Answers (3)

devil in the detail
devil in the detail

Reputation: 3275

No answer worked for me. In my manifest file, attribute package was missing and hence it was giving this error.

I added this attribute using following code snippet and it worked after refreshing.

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
           package="com.example.myapp"  >

Upvotes: 0

Rohit5k2
Rohit5k2

Reputation: 18112

Does your manifest has package node? If no then add the package name to your manifest file like this

package="com.example.android"

othewise

see "AndroidManifest.xml does not declare a Java package" error or http://forum.processing.org/one/topic/androidmanifest-xml-does-not-declare-a-java-package-build-aborted.html

Upvotes: 1

mk72
mk72

Reputation: 1407

Right click on project and select "Refresh" . or if this is not work "clean" the project and rebuild it again. see below link : "AndroidManifest.xml does not declare a Java package" error

Upvotes: 2

Related Questions