path: root/AndroidNative/HOWTOBUILD
diff options
authorStephane Delcroix <>2017-05-05 09:36:02 (GMT)
committerStephane Delcroix <>2017-05-05 09:37:28 (GMT)
commitd643d98593aeae0f7bbc8b1c8d59b4cdf60fbe18 (patch)
tree403e7d528f9cb30fa7934a456310a5bcc3883002 /AndroidNative/HOWTOBUILD
parente7aaae985768ff951c87e6f457ebb8ace242a2ca (diff)
[A] add building instructions
Diffstat (limited to 'AndroidNative/HOWTOBUILD')
1 files changed, 15 insertions, 0 deletions
diff --git a/AndroidNative/HOWTOBUILD b/AndroidNative/HOWTOBUILD
new file mode 100644
index 0000000..33ad468
--- /dev/null
+++ b/AndroidNative/HOWTOBUILD
@@ -0,0 +1,15 @@
+To build the FormsViewGroup.jar from the command line; no need to install Android Studio or Eclipse. It works on Windows and macOS. To build a new .jar just navigate to the AndroidNative folder and run:
+ - Windows PowerShell: .\gradlew createJar --rerun-tasks
+ - macOS Terminal: ./gradlew createJar --rerun-tasks
+The resulting formsviewgroup.jar will be put in Xamarin.Forms.Platform.Android.FormsViewGroup\Jars.
+Before the first time you run it, you'll need to create a file in the AndroidNative folder so Gradle can find your Android SDK. It needs one line to set the sdk.dir property. For example:
+ - Windows: sdk.dir=C\:\\Users\\cfinley\\AppData\\Local\\Android\\Sdk
+ - macOS: sdk.dir=/Users/cfinley/Library/Developer/Xamarin/android-sdk-macosx
+It may download a bunch of stuff the first time it runs; after that it'll be much faster.
+If you don't already have Gradle installed:
+- Windows: choco install gradle
+- macOS: brew install gradle