Reputation: 367
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
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
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
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