am 4a08d6f0: am 392f5321: am 5c117ae1: Merge "Fix dependency specs for data binding." into mnc-preview-docs

* commit '4a08d6f04248ef3ad7b15077d09fee25f928f085':
  Fix dependency specs for data binding.
This commit is contained in:
Dirk Dougherty
2015-06-05 02:30:48 +00:00
committed by Android Git Automerger

View File

@@ -141,7 +141,8 @@ page.tags="databinding", "layouts"
— it's a support library, so you can use it with all Android platform — it's a support library, so you can use it with all Android platform
versions back to <strong>Android 2.1</strong> (API level 7+).</p> versions back to <strong>Android 2.1</strong> (API level 7+).</p>
<p>Android Studio <strong>1.3.0-beta1</strong> or higher is required.</p> <p>To use data binding, Android Plugin for Gradle <strong>1.3.0-beta1</strong>
or higher is required.</p>
<h4>Beta release</h4> <h4>Beta release</h4>
@@ -186,16 +187,13 @@ versions back to <strong>Android 2.1</strong> (API level 7+).</p>
<p>To get started with Data Binding, download the library from the Support <p>To get started with Data Binding, download the library from the Support
repository in the Android SDK manager. </p> repository in the Android SDK manager. </p>
<p>Make sure you are using a compatible version of Android Studio. <p>The Data Binding plugin requires Android Plugin for Gradle <strong>1.3.0-beta1
The Data Binding plugin for Android Studio requires Android Studio <strong>1.3.0-beta1 or higher</strong>, so update your build dependencies (in
or higher</strong>.</p> <code>build.gradle</code>) as needed.</p>
<h2 id="build_environment">
Build Environment
</h2>
<p>To get started with Data Binding, download the library from the Support repository in the Android SDK manager. </p> <p>Also, make sure you are using a compatible version of Android Studio.
<strong>Android Studio 1.3</strong> adds the code-completion and layout-preview
<p>Make sure you are using a <strong>compatible version of Android Studio</strong>. The Data Binding plugin for Android Studio requires <strong>Android 1.3.0-beta1 or higher</strong>.</p> support for data binding.</p>
<p> <p>
<strong>Setting Up Work Environment:</strong> <strong>Setting Up Work Environment:</strong>
@@ -203,12 +201,12 @@ or higher</strong>.</p>
<p> <p>
To set up your application to use data binding, add data binding to the class To set up your application to use data binding, add data binding to the class
path of your build gradle file, right below "android". path of your <code>build.gradle</code> file, right below "android".
</p> </p>
<pre> <pre>
dependencies { dependencies {
classpath <strong>"com.android.tools.build:gradle:1.2.3" classpath <strong>"com.android.tools.build:gradle:1.3.0-beta1"
</strong>classpath <strong>"com.android.databinding:dataBinder:</strong>1.0-rc0" </strong>classpath <strong>"com.android.databinding:dataBinder:</strong>1.0-rc0"
} }
} }