I am trying to create a MAVEN project with an Android application. I have this pom file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.myproject</groupId> <artifactId>userprofile</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>userprofile</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>com.google.android</groupId> <artifactId>android</artifactId> <version>4.1.1.4</version> <scope>provided</scope> </dependency> </dependencies> </project>
and during compilation of MAVEN I get this error (about 100 times, i.e. as many times as used in my methods)
[INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- src\main\java\com\myproject\userprofile\BaseActivity.java:[52,43] error: package R does not exist Process finished with exit code 1
Are there any ideas about this error? On the Internet, I either find unanswered questions about this error output. I have no experience at MAVEN, so I believe that something is missing here.
java android maven
geoak
source share