تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
الإصدار 2.1.0 من المكوّن الإضافي لنظام Gradle المتوافق مع Android (أبريل 2016)
2.1.3 (أغسطس 2016)
يتطلّب هذا التحديث الإصدار 2.14.1 من Gradle والإصدارات الأحدث. يتضمّن الإصدار 2.14.1 من Gradle
تحسينات في الأداء وميزات جديدة وإصلاحًا مهمًا للأمان. لمزيد من التفاصيل، اطّلِع على
ملاحظات إصدار Gradle.
- الاعتماديات:
|
الحد الأدنى للإصدار |
الإصدار التلقائي |
الملاحظات |
Gradle |
2.10 |
2.10 |
لمزيد من المعلومات، اطّلِع على تحديث Gradle. |
أدوات تصميم حزمة تطوير البرامج (SDK) |
23.0.2 |
23.0.2 |
ثبِّت أو اضبط أدوات تصميم حزمة تطوير البرامج (SDK). |
- جديد:
-
- تمت إضافة إمكانية استخدام الإصدار التجريبي من نظام التشغيل N للمطوّرين وJDK 8 وميزات لغة Java 8 باستخدام مجموعة أدوات Jack. لمزيد من المعلومات، يُرجى قراءة دليل معاينة الإصدار N.
ملاحظة: لا تتوافق ميزة التشغيل الفوري حاليًا مع Jack، وسيتم إيقافها أثناء استخدام سلسلة الأدوات الجديدة. ولا تحتاج إلى استخدام Jack إلا إذا كنت بصدد تطوير تطبيق
لإصدار N Preview وأردت استخدام ميزات لغة Java 8 المتوافقة.
- تمت إضافة إمكانية تجميع Java المتزايد تلقائيًا لتقليل وقت التجميع أثناء التطوير. ويتم ذلك من خلال إعادة تجميع أجزاء المصدر التي تم تغييرها أو التي تحتاج إلى إعادة تجميع فقط. لإيقاف هذه الميزة، أضِف الرمز التالي إلى ملف
build.gradle
على مستوى الوحدة:
Groovy
android {
...
compileOptions {
incremental false
}
}
Kotlin
android {
...
compileOptions {
incremental = false
}
}
-
تمت إضافة إمكانية تنفيذ عملية تحويل الرمز البرمجي إلى DEX أثناء عملية الإنشاء، بدلاً من تنفيذها في عمليات منفصلة على جهاز افتراضي خارجي. لا يؤدي ذلك إلى تسريع عمليات الإنشاء المتزايدة فحسب، بل يؤدي أيضًا إلى تسريع عمليات الإنشاء الكاملة. يتم تفعيل الميزة تلقائيًا للمشاريع التي تم ضبط الحد الأقصى لحجم الذاكرة المؤقتة لبرنامج Gradle الخفي على 2048 ميغابايت على الأقل. يمكنك إجراء ذلك من خلال تضمين ما يلي في ملف gradle.properties
الخاص بمشروعك:
```none
org.gradle.jvmargs = -Xmx2048m
```
إذا كنت قد حدّدت قيمة
javaMaxHeapSize
في ملف build.gradle
على مستوى الوحدة، عليك ضبط org.gradle.jvmargs
على قيمة
javaMaxHeapSize
+ 1024 ميغابايت. على سبيل المثال، إذا ضبطت
javaMaxHeapSize
على "2048m"، عليك إضافة ما يلي إلى ملف
gradle.properties
الخاص بمشروعك:
```none
org.gradle.jvmargs = -Xmx3072m
```
لإيقاف dexing-in-process، أضِف الرمز التالي إلى ملف build.gradle
على مستوى الوحدة:
Groovy
android {
...
dexOptions {
dexInProcess false
}
}
Kotlin
android {
...
dexOptions {
dexInProcess = false
}
}
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-08-27 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["\u003cbr /\u003e\n\nAndroid Gradle Plugin 2.1.0 (April 2016)\n\n\u003cbr /\u003e\n\n\n**2.1.3 (August 2016)**\n\nThis update requires Gradle 2.14.1 and higher. Gradle 2.14.1 includes\nperformance improvements, new features, and an important [security fix](https://docs.gradle.org/2.14/release-notes#local-privilege-escalation-when-using-the-daemon). For more details, see the\n[Gradle release notes](https://docs.gradle.org/2.14.1/release-notes).\n\nDependencies:\nNew:\n:\n - Added support for the N Developer Preview, JDK 8, and [Java 8 language features](/preview/j8-jack) using the Jack toolchain. To find out more, read the [N Preview guide](/about/versions/nougat).\n\n\n **Note:** [Instant\n Run](/tools/building/building-studio#instant-run) does not currently work with Jack and will be disabled while\n using the new toolchain. You only need to use Jack if you are developing\n for the N Preview and want to use the supported Java 8 language features.\n - Added default support for incremental Java compilation to reduce compilation time during development. It does this by only recompiling portions of the source that have changed or need to be recompiled. To disable this feature, add the following code to your module-level `build.gradle` file: \n\n Groovy \n\n ```groovy\n android {\n ...\n compileOptions {\n incremental false\n }\n }\n ```\n\n Kotlin \n\n ```kotlin\n android {\n ...\n compileOptions {\n incremental = false\n }\n }\n ```\n -\n Added support for dexing-in-process which performs dexing within the build\n process rather than in a separate, external VM processes. This not only makes\n incremental builds faster, but also speeds up full builds. The feature is\n enabled by default for projects that have set the Gradle daemon's maximum heap\n size to at least 2048 MB. You can do this by including the following in your\n project's `gradle.properties` file:\n\n \\`\\`\\`none org.gradle.jvmargs = -Xmx2048m \\`\\`\\`\n\n\n If you have defined a value for [`javaMaxHeapSize`](https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:javaMaxHeapSize) in your module-level `build.gradle`\n file, you need to set `org.gradle.jvmargs` to the value of\n `javaMaxHeapSize` + 1024 MB. For example, if you have set\n `javaMaxHeapSize` to \"2048m\", you need to add the following to your\n project's `gradle.properties` file:\n \\`\\`\\`none org.gradle.jvmargs = -Xmx3072m \\`\\`\\`\n\n\n To disable dexing-in-process, add the following code to your module-level `build.gradle` file: \n\n Groovy \n\n ```groovy\n android {\n ...\n dexOptions {\n dexInProcess false\n }\n }\n ```\n\n Kotlin \n\n ```kotlin\n android {\n ...\n dexOptions {\n dexInProcess = false\n }\n }\n ```"]]