diff --git a/src/main/java/com/jayway/maven/plugins/android/phase09package/AarMojo.java b/src/main/java/com/jayway/maven/plugins/android/phase09package/AarMojo.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/jayway/maven/plugins/android/phase09package/AarMojo.java
+++ b/src/main/java/com/jayway/maven/plugins/android/phase09package/AarMojo.java
@@ -167,6 +167,8 @@ public class AarMojo extends AbstractAndroidMojo
 
             addJavaResources( jarArchiver, project.getBuild().getResources(), "src" );
 
+            addRClass( jarArchiver );
+
             // Lastly, add any native libraries
             addNativeLibraries( jarArchiver );
 
@@ -184,6 +186,15 @@ public class AarMojo extends AbstractAndroidMojo
         return apklibrary;
     }
 
+    private void addRClass( JarArchiver jarArchiver ) throws MojoExecutionException
+    {
+        //TODO: convert R.java into R.txt
+        File rFile = new File( project.getBuild().getDirectory() + "/generated-sources/r/"
+                + extractPackageNameFromAndroidManifest( androidManifestFile )
+                .replace( ".", File.separator ) + "/R.java" );
+        jarArchiver.addFile( rFile, "R.txt" );
+    }
+
     private void addNativeLibraries( final JarArchiver jarArchiver ) throws MojoExecutionException
     {
Prepare R.txt (still need to convert the java into what is supposed to be in txt)