সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
অ্যান্ড্রয়েড গ্রেডল প্লাগইন 2.0.0 (এপ্রিল 2016)
- নির্ভরতা:
- নতুন:
- বাইটকোড ইনজেকশন সমর্থন করে এবং এমুলেটর বা একটি ফিজিক্যাল ডিভাইসে চলমান অ্যাপে কোড ও রিসোর্স আপডেট পুশ করে তাত্ক্ষণিক রান সক্ষম করে।
- ক্রমবর্ধমান বিল্ডগুলির জন্য সমর্থন যোগ করা হয়েছে, এমনকি যখন অ্যাপটি চলছে না। সংযুক্ত ডিভাইসে Android ডিবাগ ব্রিজের মাধ্যমে ক্রমবর্ধমান পরিবর্তনগুলি ঠেলে সম্পূর্ণ বিল্ড সময় উন্নত করা হয়।
- একসাথে কতগুলি কর্মী ডেক্স প্রসেস তৈরি করা যেতে পারে তা নিয়ন্ত্রণ করতে
maxProcessCount
যোগ করা হয়েছে। নিম্নোক্ত কোড, মডিউল-স্তরের build.gradle
ফাইলে, সমসাময়িক প্রক্রিয়ার সর্বাধিক সংখ্যা 4 এ সেট করে: গ্রোভি
android {
...
dexOptions {
maxProcessCount = 4 // this is the default value
}
}
কোটলিন
android {
...
dexOptions {
maxProcessCount = 4 // this is the default value
}
}
- প্রি-ডেক্সিং সমর্থন করতে এবং নির্ভরতাগুলির পুনঃ-ডেক্সিং কমাতে একটি পরীক্ষামূলক কোড সংকোচন যুক্ত করা হয়েছে, যা প্রোগার্ডের সাথে সমর্থিত নয়। এটি আপনার ডিবাগ বিল্ড ভেরিয়েন্টের বিল্ড গতিকে উন্নত করে। যেহেতু পরীক্ষামূলক সঙ্কুচিত অপ্টিমাইজেশান এবং অস্পষ্টতা সমর্থন করে না, তাই আপনার রিলিজ বিল্ডের জন্য প্রোগার্ড সক্ষম করা উচিত। আপনার ডিবাগ বিল্ডগুলির জন্য পরীক্ষামূলক সংকোচন সক্ষম করতে, আপনার মডিউল-স্তরের
build.gradle
ফাইলে নিম্নলিখিতগুলি যুক্ত করুন: গ্রোভি
android {
...
buildTypes {
debug {
minifyEnabled true
useProguard false
}
release {
minifyEnabled true
useProguard true // this is a default setting
}
}
}
কোটলিন
android {
...
buildTypes {
getByName("debug") {
minifyEnabled = true
useProguard = false
}
getByName("release") {
minifyEnabled = true
useProguard = true // this is a default setting
}
}
}
- যোগ করা লগিং সমর্থন এবং সম্পদ সঙ্কুচিত জন্য উন্নত কর্মক্ষমতা. রিসোর্স সংকোচনকারী এখন তার সমস্ত ক্রিয়াকলাপগুলি প্রোগার্ড লগ ফাইলগুলির মতো একই ফোল্ডারে অবস্থিত একটি
resources.txt
ফাইলে লগ করে।
- পরিবর্তিত আচরণ:
- স্থির সমস্যা:
- পরীক্ষা এবং প্রধান বিল্ড কনফিগারেশন উভয় ক্ষেত্রেই ডুপ্লিকেট AAR নির্ভরতা সৃষ্টিকারী একটি সমস্যা সমাধান করা হয়েছে।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-30 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-30 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["\u003cbr /\u003e\n\nAndroid Gradle Plugin 2.0.0 (April 2016)\n\n\u003cbr /\u003e\n\nDependencies:\nNew:\n:\n - Enables [Instant Run](/tools/building/building-studio#instant-run) by supporting bytecode injection, and pushing code and resource updates to a running app on the emulator or a physical device.\n - Added support for incremental builds, even when the app isn't running. Full build times are improved by pushing incremental changes through the [Android Debug Bridge](/tools/help/adb) to the connected device.\n - Added [`maxProcessCount`](https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:maxProcessCount) to control how many worker dex processes can be spawned concurrently. The following code, in the module-level `build.gradle` file, sets the maximum number of concurrent processes to 4: \n\n Groovy \n\n ```groovy\n android {\n ...\n dexOptions {\n maxProcessCount = 4 // this is the default value\n }\n }\n ```\n\n Kotlin \n\n ```kotlin\n android {\n ...\n dexOptions {\n maxProcessCount = 4 // this is the default value\n }\n }\n ```\n - Added an experimental code shrinker to support pre-dexing and reduce re-dexing of dependencies, which are not supported with Proguard. This improves the build speed of your debug build variant. Because the experimental shrinker does not support optimization and obfuscation, you should enable Proguard for your release builds. To enable the experimental shrinker for your debug builds, add the following to your module-level `build.gradle` file: \n\n Groovy \n\n ```groovy\n android {\n ...\n buildTypes {\n debug {\n minifyEnabled true\n useProguard false\n }\n release {\n minifyEnabled true\n useProguard true // this is a default setting\n }\n }\n }\n ```\n\n Kotlin \n\n ```kotlin\n android {\n ...\n buildTypes {\n getByName(\"debug\") {\n minifyEnabled = true\n useProguard = false\n }\n getByName(\"release\") {\n minifyEnabled = true\n useProguard = true // this is a default setting\n }\n }\n }\n ```\n - Added logging support and improved performance for the resource shrinker. The resource shrinker now logs all of its operations into a `resources.txt` file located in the same folder as the Proguard log files.\n\nChanged behavior:\n:\n - When `minSdkVersion` is set to 18 or higher, APK signing uses SHA256.\n - DSA and ECDSA keys can now sign APK packages.\n **Note:** The [Android keystore](/training/articles/keystore) provider no\n longer supports [DSA keys on Android 6.0](/about/versions/marshmallow/android-6.0-changes#behavior-keystore) (API level 23) and higher.\n\n\nFixed issues:\n:\n - Fixed an issue that caused duplicate AAR dependencies in both the test and main build configurations."]]