diff --git a/thrifty-gradle-plugin/src/test/kotlin/com/microsoft/thrifty/gradle/ThriftyGradlePluginTest.kt b/thrifty-gradle-plugin/src/test/kotlin/com/microsoft/thrifty/gradle/ThriftyGradlePluginTest.kt
index f80f71aa5..cc19751e4 100644
--- a/thrifty-gradle-plugin/src/test/kotlin/com/microsoft/thrifty/gradle/ThriftyGradlePluginTest.kt
+++ b/thrifty-gradle-plugin/src/test/kotlin/com/microsoft/thrifty/gradle/ThriftyGradlePluginTest.kt
@@ -80,6 +80,10 @@ class ThriftyGradlePluginTest {
runner.buildFixture("kotlin_project_with_include_path") { build() }
}
+ @Test fun `android java project with java thrifts`() {
+ runner.buildFixture("android_java_project_java_thrifts") { build() }
+ }
+
private fun GradleRunner.buildFixture(fixtureName: String, buildAndAssert: GradleRunner.() -> BuildResult): BuildResult {
val fixture = File(fixturesDir, fixtureName)
val settings = File(fixture, "settings.gradle")
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/.gitignore b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/.gitignore
new file mode 100644
index 000000000..42afabfd2
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/build.gradle b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/build.gradle
new file mode 100644
index 000000000..984b1c19c
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/build.gradle
@@ -0,0 +1,40 @@
+apply plugin: 'com.android.application'
+
+thrifty {
+ kotlin {}
+}
+
+android {
+ compileSdkVersion 29
+ buildToolsVersion "29.0.3"
+
+ defaultConfig {
+ applicationId "com.microsoft.thrifty.droid"
+ minSdkVersion 23
+ targetSdkVersion 29
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: "libs", include: ["*.jar"])
+ implementation 'androidx.appcompat:appcompat:1.1.0'
+ implementation 'com.google.android.material:material:1.0.0'
+ implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
+ implementation 'androidx.navigation:navigation-fragment:2.1.0'
+ implementation 'androidx.navigation:navigation-ui:2.1.0'
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.1'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
+
+}
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/proguard-rules.pro b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/proguard-rules.pro
new file mode 100644
index 000000000..481bb4348
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/androidTest/java/com/microsoft/thrifty/ExampleInstrumentedTest.java b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/androidTest/java/com/microsoft/thrifty/ExampleInstrumentedTest.java
new file mode 100644
index 000000000..4302f3c61
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/androidTest/java/com/microsoft/thrifty/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.microsoft.thrifty;
+
+import android.content.Context;
+
+import androidx.test.platform.app.InstrumentationRegistry;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+ assertEquals("com.microsoft.thrifty.droid", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/AndroidManifest.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/AndroidManifest.xml
new file mode 100644
index 000000000..002cde3f7
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/AndroidManifest.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/java/com/microsoft/thrifty/FirstFragment.java b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/java/com/microsoft/thrifty/FirstFragment.java
new file mode 100644
index 000000000..cb4340693
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/java/com/microsoft/thrifty/FirstFragment.java
@@ -0,0 +1,34 @@
+package com.microsoft.thrifty;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.fragment.app.Fragment;
+import androidx.navigation.fragment.NavHostFragment;
+
+public class FirstFragment extends Fragment {
+
+ @Override
+ public View onCreateView(
+ LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState
+ ) {
+ // Inflate the layout for this fragment
+ return inflater.inflate(R.layout.fragment_first, container, false);
+ }
+
+ public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
+ super.onViewCreated(view, savedInstanceState);
+
+ view.findViewById(R.id.button_first).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ NavHostFragment.findNavController(FirstFragment.this)
+ .navigate(R.id.action_FirstFragment_to_SecondFragment);
+ }
+ });
+ }
+}
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/java/com/microsoft/thrifty/MainActivity.java b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/java/com/microsoft/thrifty/MainActivity.java
new file mode 100644
index 000000000..bb6793a76
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/java/com/microsoft/thrifty/MainActivity.java
@@ -0,0 +1,56 @@
+package com.microsoft.thrifty;
+
+import android.os.Bundle;
+
+import com.google.android.material.floatingactionbutton.FloatingActionButton;
+import com.google.android.material.snackbar.Snackbar;
+
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.appcompat.widget.Toolbar;
+
+import android.view.View;
+
+import android.view.Menu;
+import android.view.MenuItem;
+
+public class MainActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ Toolbar toolbar = findViewById(R.id.toolbar);
+ setSupportActionBar(toolbar);
+
+ FloatingActionButton fab = findViewById(R.id.fab);
+ fab.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
+ .setAction("Action", null).show();
+ }
+ });
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.menu_main, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+
+ //noinspection SimplifiableIfStatement
+ if (id == R.id.action_settings) {
+ return true;
+ }
+
+ return super.onOptionsItemSelected(item);
+ }
+}
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/java/com/microsoft/thrifty/SecondFragment.java b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/java/com/microsoft/thrifty/SecondFragment.java
new file mode 100644
index 000000000..72babfc2a
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/java/com/microsoft/thrifty/SecondFragment.java
@@ -0,0 +1,34 @@
+package com.microsoft.thrifty;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.fragment.app.Fragment;
+import androidx.navigation.fragment.NavHostFragment;
+
+public class SecondFragment extends Fragment {
+
+ @Override
+ public View onCreateView(
+ LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState
+ ) {
+ // Inflate the layout for this fragment
+ return inflater.inflate(R.layout.fragment_second, container, false);
+ }
+
+ public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
+ super.onViewCreated(view, savedInstanceState);
+
+ view.findViewById(R.id.button_second).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ NavHostFragment.findNavController(SecondFragment.this)
+ .navigate(R.id.action_SecondFragment_to_FirstFragment);
+ }
+ });
+ }
+}
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 000000000..2b068d114
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/drawable/ic_launcher_background.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 000000000..07d5da9cb
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/activity_main.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 000000000..e9fa90746
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/content_main.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/content_main.xml
new file mode 100644
index 000000000..c4e7db67a
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/content_main.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/fragment_first.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/fragment_first.xml
new file mode 100644
index 000000000..fb44a3d91
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/fragment_first.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/fragment_second.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/fragment_second.xml
new file mode 100644
index 000000000..bd9052422
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/layout/fragment_second.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/menu/menu_main.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/menu/menu_main.xml
new file mode 100644
index 000000000..277e88794
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/menu/menu_main.xml
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 000000000..eca70cfe5
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 000000000..eca70cfe5
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-hdpi/ic_launcher.png b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 000000000..a571e6009
Binary files /dev/null and b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 000000000..61da551c5
Binary files /dev/null and b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-mdpi/ic_launcher.png b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 000000000..c41dd2853
Binary files /dev/null and b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 000000000..db5080a75
Binary files /dev/null and b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 000000000..6dba46dab
Binary files /dev/null and b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 000000000..da31a871c
Binary files /dev/null and b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 000000000..15ac68172
Binary files /dev/null and b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 000000000..b216f2d31
Binary files /dev/null and b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 000000000..f25a41974
Binary files /dev/null and b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 000000000..e96783ccc
Binary files /dev/null and b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/navigation/nav_graph.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/navigation/nav_graph.xml
new file mode 100644
index 000000000..4a9ca757b
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/navigation/nav_graph.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/colors.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/colors.xml
new file mode 100644
index 000000000..4faecfa80
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #6200EE
+ #3700B3
+ #03DAC5
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/dimens.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/dimens.xml
new file mode 100644
index 000000000..125df8711
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/dimens.xml
@@ -0,0 +1,3 @@
+
+ 16dp
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/strings.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/strings.xml
new file mode 100644
index 000000000..7fd2a6521
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/strings.xml
@@ -0,0 +1,12 @@
+
+ Thrifty
+ Settings
+
+ First Fragment
+ Second Fragment
+ Next
+ Previous
+
+ Hello first fragment
+ Hello second fragment. Arg: %1$s
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/styles.xml b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/styles.xml
new file mode 100644
index 000000000..21d9ceddd
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/main/res/values/styles.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/test/java/com/microsoft/thrifty/ExampleUnitTest.java b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/test/java/com/microsoft/thrifty/ExampleUnitTest.java
new file mode 100644
index 000000000..03657d4ea
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/app/src/test/java/com/microsoft/thrifty/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.microsoft.thrifty;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/build.gradle b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/build.gradle
new file mode 100644
index 000000000..d2b14d252
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/build.gradle
@@ -0,0 +1,33 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildscript {
+ repositories {
+ google()
+ jcenter()
+ }
+ dependencies {
+ classpath "com.android.tools.build:gradle:4.0.0"\
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+plugins {
+ id 'com.microsoft.thrifty' apply false
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ jcenter()
+ }
+}
+
+subprojects {
+ apply plugin: 'com.microsoft.thrifty'
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/gradle.properties b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/gradle.properties
new file mode 100644
index 000000000..c52ac9b79
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/gradle.properties
@@ -0,0 +1,19 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app"s APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Automatically convert third-party libraries to use AndroidX
+android.enableJetifier=true
\ No newline at end of file
diff --git a/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/settings.gradle b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/settings.gradle
new file mode 100644
index 000000000..3eabe172e
--- /dev/null
+++ b/thrifty-gradle-plugin/src/test/projects/android_java_project_java_thrifts/settings.gradle
@@ -0,0 +1,2 @@
+rootProject.name = 'thrifty-parent'
+include ':app'
\ No newline at end of file