diff --git a/.gitignore b/.gitignore
index c4a6bf0f..6d847cab 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
+.idea/
+*.iml
+local.properties
.DS_STORE
/buck-cache/
diff --git a/android/sample/BUCK b/android/sample/BUCK
index 0989fcd6..f248059e 100644
--- a/android/sample/BUCK
+++ b/android/sample/BUCK
@@ -10,7 +10,7 @@ load("//tools/build_defs/oss:yoga_defs.bzl", "ANDROID_RES_TARGET", "ANDROID_SAMP
yoga_android_binary(
name = "sample",
keystore = ":debug_keystore",
- manifest = "AndroidManifest.xml",
+ manifest = "src/main/AndroidManifest.xml",
deps = [
ANDROID_SAMPLE_JAVA_TARGET,
ANDROID_SAMPLE_RES_TARGET,
diff --git a/android/sample/build.gradle b/android/sample/build.gradle
new file mode 100644
index 00000000..cffb4165
--- /dev/null
+++ b/android/sample/build.gradle
@@ -0,0 +1,30 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion rootProject.compileSdkVersion
+ buildToolsVersion rootProject.buildToolsVersion
+
+ defaultConfig {
+ applicationId "com.facebook.samples.yoga"
+ minSdkVersion rootProject.minSdkVersion
+ targetSdkVersion rootProject.targetSdkVersion
+ }
+
+ compileOptions {
+ targetCompatibility rootProject.targetCompatibilityVersion
+ sourceCompatibility rootProject.sourceCompatibilityVersion
+ }
+}
+
+dependencies {
+ implementation project(':yoga-layout')
+ implementation "com.android.support:appcompat-v7:28.0.0"
+ implementation "com.facebook.soloader:soloader:0.6.0"
+}
diff --git a/android/sample/AndroidManifest.xml b/android/sample/src/main/AndroidManifest.xml
similarity index 85%
rename from android/sample/AndroidManifest.xml
rename to android/sample/src/main/AndroidManifest.xml
index a47e1e0d..3775d73f 100644
--- a/android/sample/AndroidManifest.xml
+++ b/android/sample/src/main/AndroidManifest.xml
@@ -14,14 +14,6 @@
android:versionName="1.0"
>
-
-
-
-
-