পুরানো রিলিজ

নিচে Android Studio 3.6 এবং তার নিচের সংস্করণ এবং Android Gradle প্লাগইন 3.6.0 এবং তার নিচের রিলিজ নোট রয়েছে।

অ্যান্ড্রয়েড স্টুডিওর পুরনো রিলিজ

3.6 (ফেব্রুয়ারি 2020)

অ্যান্ড্রয়েড স্টুডিও 3.6 একটি বড় রিলিজ যাতে বিভিন্ন ধরনের নতুন বৈশিষ্ট্য এবং উন্নতি রয়েছে।

আমরা আমাদের সম্প্রদায়ের সকল অবদানকারীদের ধন্যবাদ জানাতে চাই যারা এই প্রকাশের সাথে সাহায্য করেছেন৷

3.6.3 (এপ্রিল 2020)

এই ছোটখাট আপডেটে বিভিন্ন বাগ ফিক্স অন্তর্ভুক্ত রয়েছে। উল্লেখযোগ্য বাগ ফিক্সের তালিকা দেখতে, রিলিজ আপডেট ব্লগে সম্পর্কিত পোস্ট পড়ুন।

3.6.2 (মার্চ 2020)

এই ছোটখাট আপডেটে বিভিন্ন বাগ ফিক্স অন্তর্ভুক্ত রয়েছে। উল্লেখযোগ্য বাগ ফিক্সের তালিকা দেখতে, রিলিজ আপডেট ব্লগে সম্পর্কিত পোস্ট পড়ুন।

3.6.1 (ফেব্রুয়ারি 2020)

এই ছোটখাট আপডেটে বিভিন্ন বাগ ফিক্স অন্তর্ভুক্ত রয়েছে। উল্লেখযোগ্য বাগ ফিক্সের তালিকা দেখতে, রিলিজ আপডেট ব্লগে সম্পর্কিত পোস্ট পড়ুন।

ডিজাইন টুলস

অ্যান্ড্রয়েড স্টুডিওর এই সংস্করণে লেআউট এডিটর এবং রিসোর্স ম্যানেজার সহ বেশ কিছু ডিজাইন টুলের আপডেট রয়েছে।

বিভক্ত দৃশ্য এবং নকশা সম্পাদক জুম

স্প্লিট ভিউ একই সময়ে ডিজাইন এবং টেক্সট ভিউ দেখায়

ভিজ্যুয়াল ডিজাইন এডিটরগুলির নিম্নলিখিত আপডেটগুলি এই রিলিজে অন্তর্ভুক্ত করা হয়েছে:

  • ডিজাইন এডিটর, যেমন লেআউট এডিটর এবং নেভিগেশন এডিটর, এখন একটি স্প্লিট ভিউ প্রদান করে যা আপনাকে একই সময়ে আপনার UI এর ডিজাইন এবং কোড ভিউ দেখতে সক্ষম করে। সম্পাদক উইন্ডোর উপরের-ডান কোণে, এখন তিনটি বোতাম রয়েছে আইকন দেখুন দেখার বিকল্পগুলির মধ্যে টগল করার জন্য:

    • স্প্লিট ভিউ সক্ষম করতে, স্প্লিট আইকনে ক্লিক করুন স্প্লিট ভিউ আইকন .
    • XML সোর্স ভিউ সক্ষম করতে, সোর্স আইকনে ক্লিক করুন উৎস ভিউ আইকন .
    • ডিজাইন ভিউ সক্ষম করতে, ডিজাইন আইকনে ক্লিক করুন ডিজাইন ভিউ আইকন .
  • ডিজাইন এডিটরগুলির মধ্যে জুমিং এবং প্যান করার জন্য নিয়ন্ত্রণগুলি সম্পাদক উইন্ডোর নীচে-ডানদিকে একটি ভাসমান প্যানেলে চলে গেছে।

আরও জানতে, লেআউট এডিটর দিয়ে একটি UI তৈরি করুন দেখুন।

কালার পিকার রিসোর্স ট্যাব

আপনি যখন আপনার XML বা ডিজাইন টুলে কালার পিকার ব্যবহার করছেন তখন আপনার অ্যাপে রঙের রিসোর্স মান দ্রুত আপডেট করতে সাহায্য করার জন্য, IDE এখন আপনার জন্য রঙের রিসোর্স মান পূরণ করে।

জনবহুল রঙের মান সহ রঙ চয়নকারী

রিসোর্স ম্যানেজার

রিসোর্স ম্যানেজারে নিম্নলিখিত আপডেটগুলি রয়েছে:

  • রিসোর্স ম্যানেজার এখন বেশিরভাগ রিসোর্স প্রকারকে সমর্থন করে।
  • একটি সম্পদ অনুসন্ধান করার সময়, রিসোর্স ম্যানেজার এখন সমস্ত প্রকল্প মডিউল থেকে ফলাফল প্রদর্শন করে। পূর্বে, অনুসন্ধান শুধুমাত্র নির্বাচিত মডিউল থেকে ফলাফল প্রদান করে।
  • ফিল্টার বোতাম আপনাকে স্থানীয় নির্ভরশীল মডিউল, বহিরাগত লাইব্রেরি এবং অ্যান্ড্রয়েড ফ্রেমওয়ার্ক থেকে সংস্থানগুলি দেখতে দেয়। আপনি থিম বৈশিষ্ট্যগুলি দেখানোর জন্য ফিল্টার ব্যবহার করতে পারেন।
  • আপনি এখন রিসোর্সের উপরে টেক্সটবক্সের মধ্যে ক্লিক করে আমদানি প্রক্রিয়া চলাকালীন সম্পদের নাম পরিবর্তন করতে পারেন।

আরও জানতে, রিসোর্স ম্যানেজার দিয়ে আপনার অ্যাপের UI সংস্থানগুলি পরিচালনা করুন দেখুন।

অ্যান্ড্রয়েড গ্রেডল প্লাগইনের আপডেট

অ্যান্ড্রয়েড গ্রেডল প্লাগইনের সর্বশেষ সংস্করণে অনেক আপডেট রয়েছে, যার মধ্যে রয়েছে বিল্ড স্পিডের জন্য অপ্টিমাইজেশান, ম্যাভেন প্রকাশনা প্লাগইনের জন্য সমর্থন এবং ভিউ বাইন্ডিংয়ের জন্য সমর্থন। আরও জানতে, সম্পূর্ণ রিলিজ নোট পড়ুন।

দেখুন বাঁধাই

ভিউ বাইন্ডিং আপনাকে আরও সহজে কোড লিখতে দেয় যা প্রতিটি XML লেআউট ফাইলের জন্য একটি বাইন্ডিং ক্লাস তৈরি করে ভিউয়ের সাথে ইন্টারঅ্যাক্ট করে। এই ক্লাসগুলিতে সংশ্লিষ্ট লেআউটে একটি আইডি আছে এমন সমস্ত দর্শনের সরাসরি উল্লেখ থাকে।

যেহেতু এটি findViewById() প্রতিস্থাপন করে, ভিউ বাইন্ডিং একটি অবৈধ ভিউ আইডির ফলে নাল পয়েন্টার ব্যতিক্রম হওয়ার ঝুঁকি দূর করে।

ভিউ বাইন্ডিং সক্ষম করতে, আপনাকে অ্যান্ড্রয়েড গ্রেডল প্লাগইন 3.6.0 বা উচ্চতর ব্যবহার করতে হবে এবং প্রতিটি মডিউলের build.gradle ফাইলে নিম্নলিখিতগুলি অন্তর্ভুক্ত করতে হবে:

গ্রোভি

  android {
      buildFeatures.viewBinding = true
  }
  

কোটলিন

  android {
      buildFeatures.viewBinding = true
  }
  

পরিবর্তনগুলি প্রয়োগ করুন

আপনি এখন একটি ক্লাস যোগ করতে পারেন এবং তারপর কোড পরিবর্তনগুলি প্রয়োগ করুন বা পরিবর্তনগুলি প্রয়োগ করুন এবং কার্যকলাপ পুনরায় চালু করুন ক্লিক করে আপনার চলমান অ্যাপে সেই কোড পরিবর্তনটি স্থাপন করতে পারেন৷

এই দুটি কর্মের মধ্যে পার্থক্য সম্পর্কে আরও জানতে, পরিবর্তনগুলি প্রয়োগ করুন দেখুন।

রিফ্যাক্টর মেনু বিকল্প ইনস্ট্যান্ট অ্যাপস সমর্থন সক্ষম করতে

আপনি এখন নিচের মত করে আপনার অ্যাপ প্রজেক্ট তৈরি করার পর যেকোনও সময় আপনার বেস মডিউলটি তাৎক্ষণিক-সক্ষম করতে পারেন:

  1. মেনু বার থেকে View > Tool Windows > Project নির্বাচন করে প্রজেক্ট প্যানেলটি খুলুন।
  2. আপনার বেস মডিউলে রাইট-ক্লিক করুন, সাধারণত 'অ্যাপ' নামে, এবং রিফ্যাক্টর > ইনস্ট্যান্ট অ্যাপস সমর্থন সক্ষম করুন নির্বাচন করুন।
  3. প্রদর্শিত ডায়ালগে, ড্রপডাউন মেনু থেকে আপনার বেস মডিউল নির্বাচন করুন।
  4. ওকে ক্লিক করুন।

দ্রষ্টব্য: নতুন প্রজেক্ট তৈরি উইজার্ড থেকে আপনার বেস অ্যাপ মডিউলকে তাত্ক্ষণিক-সক্ষম করার বিকল্পটি সরানো হয়েছে।

আরও জানতে, Google Play Instant-এর ওভারভিউ পড়ুন।

APK বিশ্লেষক-এ ডিওফসকেট ক্লাস এবং পদ্ধতি বাইটকোড

DEX ফাইলগুলি পরিদর্শন করার জন্য APK বিশ্লেষক ব্যবহার করার সময়, আপনি নিম্নোক্তভাবে ক্লাস এবং পদ্ধতি বাইটকোড ডিঅফসকেট করতে পারেন:

  1. মেনু বার থেকে Build > Analyze APK নির্বাচন করুন।
  2. প্রদর্শিত ডায়ালগে, আপনি যে APK পরিদর্শন করতে চান সেটিতে নেভিগেট করুন এবং এটি নির্বাচন করুন।
  3. খুলুন ক্লিক করুন.
  4. APK অ্যানালাইজারে, আপনি যে DEX ফাইলটি পরিদর্শন করতে চান সেটি নির্বাচন করুন।
  5. DEX ফাইল ভিউয়ারে, আপনি যে APK বিশ্লেষণ করছেন তার জন্য ProGuard ম্যাপিং ফাইলটি লোড করুন
  6. আপনি যে ক্লাস বা পদ্ধতিটি পরিদর্শন করতে চান তার উপর ডান-ক্লিক করুন এবং বাইটকোড দেখান নির্বাচন করুন।

নেটিভ টুলিং

নিম্নলিখিত আপডেটগুলি অ্যান্ড্রয়েড স্টুডিওতে নেটিভ (C/C++) বিকাশ সমর্থন করে।

কোটলিন সমর্থন

অ্যান্ড্রয়েড স্টুডিওতে নিম্নলিখিত NDK বৈশিষ্ট্যগুলি আগে জাভাতে সমর্থিত, এখন কোটলিনেও সমর্থিত:

  • একটি JNI ঘোষণা থেকে C/C++ এ সংশ্লিষ্ট বাস্তবায়ন ফাংশনে নেভিগেট করুন। পরিচালিত সোর্স কোড ফাইলে লাইন নম্বরের কাছে C বা C++ আইটেম মার্কারের উপর ঘোরার মাধ্যমে এই ম্যাপিংটি দেখুন।

  • JNI ঘোষণার জন্য স্বয়ংক্রিয়ভাবে একটি স্টাব বাস্তবায়ন ফাংশন তৈরি করুন। প্রথমে JNI ঘোষণাটি সংজ্ঞায়িত করুন এবং তারপর সক্রিয় করতে C/C++ ফাইলে "jni" বা পদ্ধতির নাম টাইপ করুন।

  • অব্যবহৃত নেটিভ ইমপ্লিমেন্টেশন ফাংশন সোর্স কোডে সতর্কতা হিসাবে হাইলাইট করা হয়েছে। অনুপস্থিত বাস্তবায়ন সহ JNI ঘোষণাগুলিও একটি ত্রুটি হিসাবে হাইলাইট করা হয়েছে।

  • যখন আপনি একটি নেটিভ ইমপ্লিমেন্টেশন ফাংশন (রিফ্যাক্টর) রিনেম করেন, তখন সমস্ত সংশ্লিষ্ট JNI ঘোষণা আপডেট করা হয়। নেটিভ ইমপ্লিমেন্টেশন ফাংশন আপডেট করতে একটি JNI ঘোষণার নাম পরিবর্তন করুন।

  • অন্তর্নিহিতভাবে আবদ্ধ JNI বাস্তবায়নের জন্য স্বাক্ষর পরীক্ষা করা হচ্ছে।

অন্যান্য JNI উন্নতি

অ্যান্ড্রয়েড স্টুডিওতে কোড এডিটর এখন আরও নিরবচ্ছিন্ন JNI ডেভেলপমেন্ট ওয়ার্কফ্লোকে সমর্থন করে, যার মধ্যে উন্নত ধরনের ইঙ্গিত, স্বয়ংক্রিয়-সম্পূর্ণতা, পরিদর্শন এবং কোড রিফ্যাক্টরিং সহ।

স্থানীয় লাইব্রেরির জন্য APK পুনরায় লোড হচ্ছে {:#3.6-reload-apk}

আপনার প্রকল্পের APK IDE-এর বাইরে আপডেট হলে আপনাকে আর একটি নতুন প্রকল্প তৈরি করতে হবে না। অ্যান্ড্রয়েড স্টুডিও এপিকে পরিবর্তনগুলি সনাক্ত করে এবং আপনাকে এটি পুনরায় আমদানি করার বিকল্প দেয়৷

কোটলিন-শুধু APK উত্স সংযুক্ত করুন

আপনি যখন পূর্ব-নির্মিত APK প্রোফাইল এবং ডিবাগ করেন তখন কোটলিন-কেবল বহিরাগত APK উত্স সংযুক্ত করা এখন সম্ভব। আরও জানতে, কোটলিন/জাভা উত্স সংযুক্ত করুন দেখুন।

মেমরি প্রোফাইলারে লিক সনাক্তকরণ

মেমরি প্রোফাইলারে একটি হিপ ডাম্প বিশ্লেষণ করার সময়, আপনি এখন প্রোফাইলিং ডেটা ফিল্টার করতে পারেন যা অ্যান্ড্রয়েড স্টুডিও মনে করে আপনার অ্যাপে Activity এবং Fragment উদাহরণগুলির জন্য মেমরি লিক হতে পারে।

ফিল্টারটি যে ধরণের ডেটা দেখায় তার মধ্যে নিম্নলিখিতগুলি অন্তর্ভুক্ত রয়েছে:

  • Activity দৃষ্টান্ত যা ধ্বংস করা হয়েছে কিন্তু এখনও উল্লেখ করা হচ্ছে।
  • Fragment দৃষ্টান্তগুলির একটি বৈধ FragmentManager নেই কিন্তু এখনও উল্লেখ করা হচ্ছে।

কোটলিন-শুধু APK উত্স সংযুক্ত করুন

আপনি যখন পূর্ব-নির্মিত APK প্রোফাইল এবং ডিবাগ করেন তখন কোটলিন-কেবল বহিরাগত APK উত্স সংযুক্ত করা এখন সম্ভব। আরও জানতে, কোটলিন/জাভা উত্স সংযুক্ত করুন দেখুন।

মেমরি প্রোফাইলারে লিক সনাক্তকরণ

মেমরি প্রোফাইলারে একটি হিপ ডাম্প বিশ্লেষণ করার সময়, আপনি এখন প্রোফাইলিং ডেটা ফিল্টার করতে পারেন যা অ্যান্ড্রয়েড স্টুডিও মনে করে আপনার অ্যাপে Activity এবং Fragment উদাহরণগুলির জন্য মেমরি লিক হতে পারে।

ফিল্টারটি যে ধরণের ডেটা দেখায় তার মধ্যে নিম্নলিখিতগুলি অন্তর্ভুক্ত রয়েছে:

  • Activity দৃষ্টান্ত যা ধ্বংস করা হয়েছে কিন্তু এখনও উল্লেখ করা হচ্ছে।
  • Fragment দৃষ্টান্তগুলির একটি বৈধ FragmentManager নেই কিন্তু এখনও উল্লেখ করা হচ্ছে।

নির্দিষ্ট পরিস্থিতিতে, যেমন নিম্নলিখিত, ফিল্টার মিথ্যা ইতিবাচক ফল দিতে পারে:

  • একটি Fragment তৈরি করা হয়েছে কিন্তু এখনও ব্যবহার করা হয়নি।
  • একটি Fragment ক্যাশে করা হচ্ছে কিন্তু একটি FragmentTransaction অংশ হিসাবে নয়।

এই বৈশিষ্ট্যটি ব্যবহার করতে, প্রথমে একটি হিপ ডাম্প ক্যাপচার করুন বা Android স্টুডিওতে একটি হিপ ডাম্প ফাইল আমদানি করুন ৷ মেমরি লিক হতে পারে এমন টুকরো এবং ক্রিয়াকলাপগুলি প্রদর্শন করতে, মেমরি প্রোফাইলারের হিপ ডাম্প প্যানে অ্যাক্টিভিটি/ফ্র্যাগমেন্ট লিক চেকবক্স নির্বাচন করুন।

প্রোফাইলার: মেমরি লিক সনাক্তকরণ

মেমরি ফাঁসের জন্য একটি হিপ ডাম্প ফিল্টার করা হচ্ছে।

এমুলেটর

অ্যান্ড্রয়েড স্টুডিও 3.6 আপনাকে Android এমুলেটর 29.2.7 এবং উচ্চতর সংস্করণে অন্তর্ভুক্ত বিভিন্ন আপডেটের সুবিধা নিতে সাহায্য করে, যেমনটি নীচে বর্ণনা করা হয়েছে।

উন্নত অবস্থান সমর্থন

অ্যান্ড্রয়েড এমুলেটর 29.2.7 এবং উচ্চতর GPS স্থানাঙ্ক এবং রুট তথ্য অনুকরণের জন্য অতিরিক্ত সমর্থন প্রদান করে। আপনি যখন এমুলেটর এক্সটেন্ডেড কন্ট্রোল খুলবেন, তখন লোকেশন ট্যাবের বিকল্পগুলি এখন দুটি ট্যাবের অধীনে সংগঠিত হয়: একক পয়েন্ট এবং রুট

একক পয়েন্ট

একক পয়েন্ট ট্যাবে, আপনি পছন্দের পয়েন্টগুলি অনুসন্ধান করতে Google মানচিত্র ওয়েবভিউ ব্যবহার করতে পারেন, ঠিক যেমন আপনি একটি ফোন বা ব্রাউজারে Google মানচিত্র ব্যবহার করার সময় করেন৷ আপনি যখন মানচিত্রে একটি অবস্থান অনুসন্ধান করেন বা ক্লিক করেন, তখন আপনি মানচিত্রের নীচের কাছে সেভ পয়েন্ট নির্বাচন করে অবস্থানটি সংরক্ষণ করতে পারেন। আপনার সমস্ত সংরক্ষিত অবস্থানগুলি বর্ধিত নিয়ন্ত্রণ উইন্ডোর ডানদিকে তালিকাভুক্ত করা হয়েছে৷

আপনি মানচিত্রে যে অবস্থানটি বেছে নিয়েছেন সেখানে এমুলেটর অবস্থান সেট করতে, প্রসারিত নিয়ন্ত্রণ উইন্ডোর নীচে ডানদিকে অবস্থান সেট করুন বোতামে ক্লিক করুন।

এমুলেটর এক্সটেন্ডেড কন্ট্রোলে একক পয়েন্ট ট্যাব। .

রুট

একক পয়েন্ট ট্যাবের মতো, রুট ট্যাবটি একটি Google মানচিত্র ওয়েবভিউ প্রদান করে যা আপনি দুই বা ততোধিক অবস্থানের মধ্যে একটি রুট তৈরি করতে ব্যবহার করতে পারেন। একটি রুট তৈরি এবং সংরক্ষণ করতে, নিম্নলিখিতগুলি করুন:

  1. মানচিত্র দৃশ্যে, আপনার রুটে প্রথম গন্তব্য অনুসন্ধান করতে পাঠ্য ক্ষেত্রটি ব্যবহার করুন।
  2. অনুসন্ধান ফলাফল থেকে অবস্থান নির্বাচন করুন.
  3. নেভিগেট বোতামটি নির্বাচন করুন।
  4. মানচিত্র থেকে আপনার রুটের সূচনা বিন্দু নির্বাচন করুন।
  5. (ঐচ্ছিক) আপনার রুটে অতিরিক্ত স্টপ যোগ করতে গন্তব্য যোগ করুন ক্লিক করুন।
  6. ম্যাপ ভিউতে সেভ রুট এ ক্লিক করে আপনার রুট সেভ করুন।
  7. রুটের জন্য একটি নাম উল্লেখ করুন এবং সংরক্ষণ করুন ক্লিক করুন।

আপনার সংরক্ষিত রুট অনুসরণ করে এমুলেটর অনুকরণ করতে, সংরক্ষিত রুটের তালিকা থেকে রুটটি নির্বাচন করুন এবং এক্সটেন্ডেড কন্ট্রোল উইন্ডোর নীচে ডানদিকে প্লে রুটে ক্লিক করুন। সিমুলেশন বন্ধ করতে, রুট থামাতে ক্লিক করুন।

এমুলেটর এক্সটেন্ডেড কন্ট্রোলে রুট ট্যাব। .

নির্দিষ্ট রুট অনুসরণ করে ক্রমাগত এমুলেটর অনুকরণ করতে, প্লেব্যাক পুনরাবৃত্তি করুন এর পাশের সুইচটি সক্ষম করুন। এমুলেটর কত দ্রুত নির্দিষ্ট রুট অনুসরণ করে তা পরিবর্তন করতে, প্লেব্যাক গতির ড্রপডাউন থেকে একটি বিকল্প নির্বাচন করুন।

মাল্টি-ডিসপ্লে সমর্থন

অ্যান্ড্রয়েড এমুলেটর এখন আপনাকে একাধিক ডিসপ্লেতে আপনার অ্যাপ স্থাপন করার অনুমতি দেয়, যা কাস্টমাইজযোগ্য মাত্রা সমর্থন করে এবং মাল্টি-উইন্ডো এবং মাল্টি-ডিসপ্লে সমর্থন করে এমন অ্যাপ পরীক্ষা করতে সাহায্য করে। একটি ভার্চুয়াল ডিভাইস চলাকালীন, আপনি নিম্নলিখিত হিসাবে দুটি অতিরিক্ত প্রদর্শন যোগ করতে পারেন:

  1. এক্সটেন্ডেড কন্ট্রোল খুলুন এবং ডিসপ্লে ট্যাবে নেভিগেট করুন।

  2. সেকেন্ডারি ডিসপ্লে যোগ করুন ক্লিক করে অন্য ডিসপ্লে যোগ করুন।

  3. মাধ্যমিক প্রদর্শনের অধীনে ড্রপডাউন মেনু থেকে, নিম্নলিখিতগুলির মধ্যে একটি করুন:

  4. প্রিসেট আকৃতির অনুপাতের একটি নির্বাচন করুন

  5. কাস্টম নির্বাচন করুন এবং আপনার কাস্টম প্রদর্শনের জন্য উচ্চতা , প্রস্থ এবং dpi সেট করুন।

  6. (ঐচ্ছিক) তৃতীয় ডিসপ্লে যোগ করতে সেকেন্ডারি ডিসপ্লে যোগ করুন ক্লিক করুন।

  7. চলমান ভার্চুয়াল ডিভাইসে নির্দিষ্ট প্রদর্শন(গুলি) যোগ করতে পরিবর্তনগুলি প্রয়োগ করুন ক্লিক করুন।

একাধিক প্রদর্শন এমুলেটর এক্সটেন্ডেড কন্ট্রোল ডিসপ্লে ট্যাব যোগ করুন।

Android Automotive OS-এর জন্য নতুন ভার্চুয়াল ডিভাইস এবং প্রজেক্ট টেমপ্লেট

আপনি যখন অ্যান্ড্রয়েড স্টুডিও ব্যবহার করে একটি নতুন প্রকল্প তৈরি করেন, আপনি এখন নতুন প্রকল্প তৈরি করুন উইজার্ডে অটোমোটিভ ট্যাব থেকে তিনটি টেমপ্লেট থেকে নির্বাচন করতে পারেন: কোনো কার্যকলাপ নেই , মিডিয়া পরিষেবা এবং বার্তা পরিষেবা ৷ বিদ্যমান প্রকল্পগুলির জন্য, আপনি মেনু বার থেকে ফাইল > নতুন > নতুন মডিউল নির্বাচন করে এবং অটোমোটিভ মডিউল নির্বাচন করে অ্যান্ড্রয়েড অটোমোটিভ ডিভাইসের জন্য সমর্থন যোগ করতে পারেন। নতুন মডিউল তৈরি করুন উইজার্ড তারপরে Android Automotive প্রকল্পের টেমপ্লেটগুলির একটি ব্যবহার করে একটি নতুন মডিউল তৈরি করার মাধ্যমে আপনাকে গাইড করে৷

একটি Android Automotive প্রকল্প টেমপ্লেট নির্বাচন করা হচ্ছে। .

উপরন্তু, আপনি এখন ভার্চুয়াল ডিভাইস কনফিগারেশন উইজার্ডের অটোমোটিভ ট্যাবে নিম্নলিখিত বিকল্পগুলির মধ্যে একটি নির্বাচন করে Android Automotive OS ডিভাইসগুলির জন্য একটি Android ভার্চুয়াল ডিভাইস (AVD) তৈরি করতে পারেন৷

  1. পোলেস্টার 2 : একটি AVD তৈরি করুন যা পোলেস্টার 2 হেড ইউনিটকে অনুকরণ করে।
  2. অটোমোটিভ (1024p ল্যান্ডস্কেপ) : জেনেরিক 1024 x 768 পিক্সেল অ্যান্ড্রয়েড অটোমোটিভ হেড ইউনিটের জন্য একটি AVD তৈরি করুন।

একটি Android Automotive ভার্চুয়াল ডিভাইস নির্বাচন করা হচ্ছে। .

পুনরায় শুরু করা SDK ডাউনলোড

SDK ম্যানেজার ব্যবহার করে SDK কম্পোনেন্ট এবং টুল ডাউনলোড করার সময়, অ্যান্ড্রয়েড স্টুডিও এখন শুরু থেকে ডাউনলোড রিস্টার্ট করার পরিবর্তে বাধাগ্রস্ত হওয়া ডাউনলোডগুলিকে পুনরায় শুরু করার অনুমতি দেয় (উদাহরণস্বরূপ, একটি নেটওয়ার্ক সমস্যার কারণে)। এই বর্ধিতকরণটি বিশেষত বড় ডাউনলোডের জন্য সহায়ক, যেমন Android এমুলেটর বা সিস্টেমের ছবি, যখন ইন্টারনেট সংযোগ অবিশ্বস্ত হয়।

এছাড়াও, আপনার যদি ব্যাকগ্রাউন্ডে একটি SDK ডাউনলোড টাস্ক চলছে, আপনি এখন স্ট্যাটাস বারে নিয়ন্ত্রণগুলি ব্যবহার করে ডাউনলোডটি বিরতি বা পুনরায় শুরু করতে পারেন৷

নতুন কন্ট্রোল সহ স্ট্যাটাস বারে একটি ব্যাকগ্রাউন্ড ডাউনলোড টাস্ক যা আপনাকে ডাউনলোড থামাতে বা পুনরায় শুরু করতে দেয়।

নতুন কন্ট্রোল সহ স্ট্যাটাস বারে একটি ব্যাকগ্রাউন্ড ডাউনলোড টাস্ক যা আপনাকে ডাউনলোড থামাতে বা পুনরায় শুরু করতে দেয়।

Win32 অবরুদ্ধ

অ্যান্ড্রয়েড স্টুডিওর Windows 32-বিট সংস্করণ ডিসেম্বর 2019 এর পরে আর আপডেট পাবে না এবং এটি ডিসেম্বর 2020 এর পরে আর সমর্থন পাবে না। আপনি Android স্টুডিও ব্যবহার করা চালিয়ে যেতে পারেন। যাইহোক, অতিরিক্ত আপডেট পেতে, আপনার ওয়ার্কস্টেশনকে Windows এর 64-বিট সংস্করণে আপগ্রেড করুন।

আরও জানতে, Windows 32-বিট অবচয় ব্লগ পড়ুন

Gradle সিঙ্ক সময় অপ্টিমাইজ করার জন্য নতুন বিকল্প

পূর্ববর্তী প্রকাশগুলিতে, অ্যান্ড্রয়েড স্টুডিও গ্র্যাডল সিঙ্কের সময় সমস্ত গ্রেডল কাজের তালিকা পুনরুদ্ধার করেছে। বড় প্রকল্পের জন্য, টাস্ক লিস্ট পুনরুদ্ধার করার ফলে সিঙ্ক সময় ধীর হতে পারে।

Gradle Sync কর্মক্ষমতা উন্নত করতে, File > Settings > Experimental এ যান এবং Gradle সিঙ্কের সময় Gradle টাস্ক লিস্ট তৈরি করবেন না নির্বাচন করুন।

আপনি যখন এই বিকল্পটি সক্ষম করেন, তখন Android স্টুডিও সিঙ্কের সময় টাস্ক তালিকা তৈরি করা এড়িয়ে যায়, যা Gradle Sync কে দ্রুত সম্পন্ন করতে দেয় এবং UI প্রতিক্রিয়াশীলতা উন্নত করে। মনে রাখবেন, যখন IDE টাস্ক লিস্ট তৈরি করা এড়িয়ে যায়, তখন Gradle প্যানেলে টাস্ক লিস্টগুলি খালি থাকে এবং বিল্ড ফাইলে টাস্ক নাম স্বয়ংক্রিয়ভাবে সমাপ্তি কাজ করে না।

Gradle এর অফলাইন মোড টগল করার জন্য নতুন অবস্থান

Gradle এর অফলাইন মোড সক্ষম বা নিষ্ক্রিয় করতে, প্রথমে মেনু বার থেকে View > Tool Windows > Gradle নির্বাচন করুন। তারপর, গ্রেডল উইন্ডোর উপরের দিকে, অফলাইন মোড টগল করুন ক্লিক করুন Gradle প্যানেলে Gradle অফলাইন বোতাম। .

ইন্টেলিজে আইডিয়া 2019.2

মূল অ্যান্ড্রয়েড স্টুডিও আইডিই 2019.2 রিলিজের মাধ্যমে IntelliJ IDEA থেকে উন্নতির সাথে আপডেট করা হয়েছে।

2019.2 সংস্করণের সাথে সমন্বিতভাবে অন্তর্ভুক্ত অন্যান্য IntelliJ সংস্করণগুলির উন্নতি সম্পর্কে আরও জানতে, নিম্নলিখিত পৃষ্ঠাগুলি দেখুন:

সম্প্রদায় অবদানকারী

আমাদের সকল সম্প্রদায়ের অবদানকারীদের ধন্যবাদ যারা আমাদের Android স্টুডিও 3.6 উন্নত করার বাগ এবং অন্যান্য উপায়গুলি আবিষ্কার করতে সাহায্য করেছেন৷ বিশেষ করে, আমরা নিম্নলিখিত ব্যক্তিদের ধন্যবাদ জানাতে চাই যারা বাগ রিপোর্ট করেছেন:

  • আলবার্ট লো
  • আলেক্সি রট
  • আন্দ্রেয়া লেগানজা
  • বেনেডিক্ট কোলব
  • সিজার পুয়ের্তা
  • কার্টিস ক্রোয়েটস
  • ড্যামিয়ান উইকজোরেক
  • ড্যান লিউ
  • ডেভিড বারস্ট্রোম
  • দীপাংশু
  • এগর আন্দ্রেভিচি
  • এলি গ্রাবার
  • এমিন কোকালারি
  • ইভান তাতারকা
  • ফ্রান্টিসেক নাগি
  • গ্রেগ মোয়েনস
  • হ্যানেস অ্যাক্লিটনার
  • হ্যান্স পেটার এইড
  • হেনিং বাঙ্ক
  • হুগো ভিসার
  • ইগর এসকোড্রো
  • ইনাকি ভিলার
  • জাভেন্টিরা লিয়েনাটা
  • জো রজার্স
  • ক্রিস্টোফার ড্যানিয়েলসন
  • লিরান বারসিসা
  • লুই সিএডি
  • লরেন্ট পিন্টার
  • লুকাস ওয়াসিলকোস্কি
  • লুক ফিল্কে
  • মালভিন সুতান্তো
  • মাসাতোশি কুবোদে
  • ম্যাথু উইন্টার্স
  • মাইকেল বেইলি
  • মাইকেল গোর্নি
  • মিহাই নিয়াকসু
  • মাইক স্ক্যামেল
  • মন্টে ক্রেসার
  • নেলসন ওসাকি
  • নেলসন ওসাকি
  • নিক ফিরমানি
  • নিকলাস আনসম্যান গিয়ের্টজ
  • নিকলাস ক্রন
  • নিকোলাস লিচটমায়ার
  • নাইক হারম্যান
  • নিলস ভ্যান হোভ
  • নিকলাস বউদি
  • রেনাটো গনকালভস
  • গর্জন Grønmo
  • রুসলান বারাতোভ
  • সিনান কোজাক
  • স্লাওমির চেরউইনস্কি
  • স্টেফান উলফ
  • স্টিফেন ডি'অ্যামিকো
  • তাও ওয়াং
  • টমাস ক্লাদেক
  • তোমাস প্রোচাজকা
  • টনি রোবালিক
  • Torbjørn Sørli
  • ওয়ারেন হি
  • ইয়েঞ্চি লিন
  • জ্যাক সুয়ার্স
  • 3.5 (আগস্ট 2019)

    অ্যান্ড্রয়েড স্টুডিও 3.5 একটি বড় রিলিজ এবং প্রজেক্ট মার্বেলের ফলাফল। অ্যান্ড্রয়েড স্টুডিও 3.3 প্রকাশের সাথে শুরু করে, প্রজেক্ট মার্বেল উদ্যোগটি একাধিক রিলিজ ছড়িয়ে দিয়েছে যা IDE-এর তিনটি প্রধান ক্ষেত্র উন্নত করার উপর ফোকাস করে: সিস্টেম হেলথ , ফিচার পলিশ এবং বাগ ফিক্সিং।

    এগুলি এবং অন্যান্য প্রজেক্ট মার্বেল আপডেট সম্পর্কে তথ্যের জন্য, অ্যান্ড্রয়েড ডেভেলপারদের ব্লগ পোস্ট বা নীচের বিভাগগুলি পড়ুন৷

    আমরা আমাদের সম্প্রদায়ের সকল অবদানকারীদের ধন্যবাদ জানাতে চাই যারা এই প্রকাশের সাথে সাহায্য করেছেন৷

    3.5.3 (ডিসেম্বর 2019)

    এই ছোটখাট আপডেটে বিভিন্ন বাগ ফিক্স এবং পারফরম্যান্সের উন্নতি অন্তর্ভুক্ত রয়েছে।

    3.5.2 (নভেম্বর 2019)

    এই ছোটখাট আপডেটে বিভিন্ন বাগ ফিক্স এবং পারফরম্যান্সের উন্নতি অন্তর্ভুক্ত রয়েছে। উল্লেখযোগ্য বাগ ফিক্সের তালিকা দেখতে, রিলিজ আপডেট ব্লগে সম্পর্কিত পোস্ট পড়ুন।

    3.5.1 (অক্টোবর 2019)

    এই ছোটখাট আপডেটে বিভিন্ন বাগ ফিক্স এবং পারফরম্যান্সের উন্নতি অন্তর্ভুক্ত রয়েছে। উল্লেখযোগ্য বাগ ফিক্সের তালিকা দেখতে, রিলিজ আপডেট ব্লগে সম্পর্কিত পোস্ট পড়ুন।

    প্রকল্প মার্বেল: সিস্টেম স্বাস্থ্য

    এই বিভাগে অ্যান্ড্রয়েড স্টুডিও 3.5-এর পরিবর্তনগুলি বর্ণনা করা হয়েছে যা সিস্টেমের স্বাস্থ্যের উন্নতির উপর দৃষ্টি নিবদ্ধ করে৷

    প্রস্তাবিত মেমরি সেটিংস

    অ্যান্ড্রয়েড স্টুডিও এখন আপনাকে অবহিত করে যদি এটি সনাক্ত করে যে আপনি সর্বাধিক পরিমাণ RAM বাড়িয়ে কর্মক্ষমতা উন্নত করতে পারেন যা আপনার OS-এর Android স্টুডিও প্রক্রিয়াগুলির জন্য বরাদ্দ করা উচিত, যেমন কোর IDE, Gradle ডেমন এবং Kotlin ডেমন৷ আপনি বিজ্ঞপ্তিতে অ্যাকশন লিঙ্কে ক্লিক করে প্রস্তাবিত সেটিংস গ্রহণ করতে পারেন, অথবা আপনি ফাইল > সেটিংস (বা অ্যান্ড্রয়েড স্টুডিও > ম্যাকওএস-এ পছন্দগুলি ) নির্বাচন করে এবং তারপর চেহারা এবং আচরণ > এর অধীনে মেমরি সেটিংস বিভাগটি খুঁজে বের করে এই সেটিংসগুলিকে ম্যানুয়ালি সামঞ্জস্য করতে পারেন। সিস্টেম সেটিংস । আরও জানতে, সর্বোচ্চ হিপ সাইজ দেখুন।

    প্রস্তাবিত মেমরি সেটিংস সম্পর্কে একটি বিজ্ঞপ্তি।

    প্রস্তাবিত মেমরি সেটিংস সম্পর্কে একটি বিজ্ঞপ্তি।

    মেমরি ব্যবহারের প্রতিবেদন

    অ্যান্ড্রয়েড স্টুডিওতে মেমরি সমস্যাগুলি পুনরুত্পাদন এবং রিপোর্ট করা কখনও কখনও কঠিন। এই সমস্যা সমাধানে সাহায্য করার জন্য, অ্যান্ড্রয়েড স্টুডিও আপনাকে মেনু বার থেকে সাহায্য > মেমরি ব্যবহার বিশ্লেষণে ক্লিক করে একটি মেমরি ব্যবহারের প্রতিবেদন তৈরি করতে দেয়। আপনি যখন তা করেন, তখন IDE স্থানীয়ভাবে ব্যক্তিগত তথ্যের জন্য ডেটা স্যানিটাইজ করে, আপনি মেমরি সমস্যার উত্স সনাক্ত করতে সহায়তা করার জন্য Android স্টুডিও টিমের কাছে পাঠাতে চান কিনা তা জিজ্ঞাসা করার আগে। আরও জানতে, একটি মেমরি ব্যবহারের প্রতিবেদন চালান দেখুন।

    একটি মেমরি ব্যবহার রিপোর্ট.

    একটি মেমরি ব্যবহার রিপোর্ট.

    উইন্ডোজ: অ্যান্টিভাইরাস ফাইল I/O অপ্টিমাইজেশান

    অ্যান্ড্রয়েড স্টুডিও এখন স্বয়ংক্রিয়ভাবে পরীক্ষা করে যে নির্দিষ্ট প্রজেক্ট ডিরেক্টরি রিয়েল-টাইম অ্যান্টিভাইরাস স্ক্যানিং থেকে বাদ দেওয়া হয়েছে কিনা। যখন বিল্ড পারফরম্যান্স উন্নত করার জন্য সামঞ্জস্য করা যেতে পারে, তখন Android স্টুডিও আপনাকে অবহিত করে এবং কীভাবে আপনার অ্যান্টিভাইরাস কনফিগারেশন অপ্টিমাইজ করতে হয় তার নির্দেশাবলী প্রদান করে। আরও জানতে, বিল্ড স্পিডে অ্যান্টিভাইরাস সফ্টওয়্যারের প্রভাব মিনিমাইজ করুন দেখুন।

    প্রজেক্ট মার্বেল: ফিচার পলিশ

    এই বিভাগে Android স্টুডিও 3.5-এর পরিবর্তনগুলি বর্ণনা করা হয়েছে যা বিদ্যমান বৈশিষ্ট্যগুলিকে উন্নত করার উপর দৃষ্টি নিবদ্ধ করে৷

    পরিবর্তনগুলি প্রয়োগ করুন

    পরিবর্তনগুলি প্রয়োগ করুন আপনাকে আপনার অ্যাপ রিস্টার্ট না করেই আপনার চলমান অ্যাপে কোড এবং রিসোর্স পরিবর্তনগুলি পুশ করতে দেয়—এবং কিছু ক্ষেত্রে, বর্তমান অ্যাক্টিভিটি রিস্টার্ট না করেও৷ পরিবর্তনগুলি প্রয়োগ করুন আপনার অ্যাপের অবস্থা সংরক্ষণের জন্য একটি সম্পূর্ণ নতুন পদ্ধতি প্রয়োগ করে৷ ইন্সট্যান্ট রানের বিপরীতে, যেটি আপনার APK-এর বাইটকোড পুনর্লিখন করে, অ্যাপ্লাই চেঞ্জস অ্যান্ড্রয়েড 8.0 (এপিআই লেভেল 26) বা উচ্চতর সমর্থিত রানটাইম ইন্সট্রুমেন্টেশন ব্যবহার করে ফ্লাইতে ক্লাসগুলিকে পুনরায় সংজ্ঞায়িত করে৷

    আরও জানতে, পরিবর্তনগুলি প্রয়োগ করুন দেখুন।

    পরিবর্তন প্রয়োগের জন্য টুলবার বোতাম।

    পরিবর্তন প্রয়োগের জন্য টুলবার বোতাম।

    অ্যাপ স্থাপনার প্রবাহ

    IDE-তে একটি নতুন ড্রপ-ডাউন মেনু রয়েছে যা আপনাকে দ্রুত কোন ডিভাইসে আপনার অ্যাপ স্থাপন করতে চান তা নির্বাচন করতে দেয়। এই মেনুতে একটি নতুন বিকল্পও রয়েছে যা আপনাকে একবারে একাধিক ডিভাইসে আপনার অ্যাপ চালাতে দেয়।

    লক্ষ্য ডিভাইস ড্রপ ডাউন মেনু.

    লক্ষ্য ডিভাইস ড্রপ ডাউন মেনু.

    উন্নত Gradle সিঙ্ক এবং ক্যাশে সনাক্তকরণ

    হার্ডডিস্কের ব্যবহার কমানোর সময় Gradle পর্যায়ক্রমে আপনার বিল্ড ক্যাশে সাফ করলে IDE এখন আরও ভালভাবে সনাক্ত করে। পূর্ববর্তী সংস্করণগুলিতে, এই অবস্থা IDE-কে অনুপস্থিত নির্ভরতা এবং গ্র্যাডল সিঙ্ক ব্যর্থ হওয়ার জন্য রিপোর্ট করে। এখন, আইডিই কেবলমাত্র গ্র্যাডল সিঙ্ক সফলভাবে সম্পন্ন হয়েছে তা নিশ্চিত করার জন্য প্রয়োজনীয় নির্ভরতাগুলি ডাউনলোড করে।

    উন্নত বিল্ড ত্রুটি আউটপুট

    বিল্ড উইন্ডো আইকন তৈরি করুন উইন্ডোটি এখন আরও ভাল ত্রুটি প্রতিবেদন প্রদান করে, যেমন ফাইলের একটি লিঙ্ক এবং রিপোর্ট করা ত্রুটির লাইন, নিম্নলিখিত বিল্ড প্রক্রিয়াগুলির জন্য:

    • AAPT সংকলন এবং লিঙ্কিং
    • R8 এবং ProGuard
    • ডেক্সিং
    • সম্পদ একত্রীকরণ
    • XML ফাইল পার্সিং
    • Javac, Kotlinc, এবং CMake সংকলন

    প্রকল্প আপগ্রেড

    আইডিই এবং অ্যান্ড্রয়েড গ্রেডল প্লাগইন আপডেট করতে আপনাকে সাহায্য করার জন্য আরও তথ্য এবং ক্রিয়া সরবরাহ করার জন্য উন্নত আপডেট অভিজ্ঞতা। উদাহরণস্বরূপ, আরও সিঙ্ক এবং বিল্ড ত্রুটিগুলি আপডেট করার সময় আপনাকে ত্রুটিগুলি কমাতে সহায়তা করার জন্য ক্রিয়াগুলি অন্তর্ভুক্ত করে।

    এটা মনে রাখা গুরুত্বপূর্ণ, আপনি IDE আপডেট করতে পারেন অন্যান্য উপাদান থেকে স্বাধীনভাবে, যেমন Android Gradle প্লাগইন। সুতরাং, একটি নতুন সংস্করণ উপলব্ধ হওয়ার সাথে সাথে আপনি নিরাপদে IDE আপডেট করতে পারেন এবং পরে অন্যান্য উপাদানগুলি আপডেট করতে পারেন।

    লেআউট সম্পাদক

    অ্যান্ড্রয়েড স্টুডিও 3.5 লেআউট ভিজ্যুয়ালাইজেশন, পরিচালনা এবং মিথস্ক্রিয়াতে বেশ কিছু উন্নতি অন্তর্ভুক্ত করে।

    ConstraintLayout এর সাথে কাজ করার সময়, বৈশিষ্ট্য প্যানেলে একটি নতুন সীমাবদ্ধতা বিভাগ নির্বাচিত UI উপাদানের সীমাবদ্ধতার সম্পর্ক তালিকাভুক্ত করে। আপনি উভয় ক্ষেত্রের সীমাবদ্ধতা হাইলাইট করতে নকশা পৃষ্ঠ থেকে বা সীমাবদ্ধতার তালিকা থেকে একটি সীমাবদ্ধতা নির্বাচন করতে পারেন।

    একটি নির্বাচিত UI উপাদানের জন্য সীমাবদ্ধতা সম্পর্ক।

    একটি নির্বাচিত UI উপাদানের জন্য সীমাবদ্ধতা সম্পর্ক।

    একইভাবে, আপনি এখন এটি নির্বাচন করে এবং Delete কী টিপে একটি সীমাবদ্ধতা মুছে ফেলতে পারেন। আপনি Control কী ধরে Command এবং সীমাবদ্ধ অ্যাঙ্করে ক্লিক করে একটি সীমাবদ্ধতা মুছতে পারেন। মনে রাখবেন যে আপনি যখন Control বা Command কী ধরে রাখেন এবং একটি অ্যাঙ্করের উপর হোভার করেন, তখন যে কোনো সংশ্লিষ্ট সীমাবদ্ধতা লাল হয়ে যায় নির্দেশ করে যে আপনি সেগুলি মুছতে ক্লিক করতে পারেন।

    যখন একটি ভিউ নির্বাচন করা হয়, আপনি নিম্নলিখিত ছবিতে দেখানো হিসাবে অ্যাট্রিবিউট প্যানেলের সীমাবদ্ধতা উইজেট বিভাগে + আইকনগুলির যেকোনো একটিতে ক্লিক করে একটি সীমাবদ্ধতা তৈরি করতে পারেন। আপনি যখন একটি নতুন সীমাবদ্ধতা তৈরি করেন, তখন লেআউট সম্পাদক এখন সীমাবদ্ধতা নির্বাচন করে এবং হাইলাইট করে, আপনি যা যোগ করেছেন তার জন্য তাত্ক্ষণিক ভিজ্যুয়াল প্রতিক্রিয়া প্রদান করে।

    সীমাবদ্ধতা তৈরি করতে কীভাবে সীমাবদ্ধতা উইজেট ব্যবহার করতে হয় তা দেখানো একটি অ্যানিমেশন।

    সীমাবদ্ধতা তৈরি করতে সীমাবদ্ধতা উইজেট ব্যবহার করে।

    একটি সীমাবদ্ধতা তৈরি করার সময়, লেআউট এডিটর এখন শুধুমাত্র যোগ্য অ্যাঙ্কর পয়েন্টগুলি দেখায় যা আপনি সীমাবদ্ধ করতে পারেন। পূর্বে, লেআউট এডিটর সমস্ত দৃষ্টিভঙ্গিতে সমস্ত অ্যাঙ্কর পয়েন্ট হাইলাইট করেছিল, আপনি সেগুলিকে বাধা দিতে পারেন কিনা তা নির্বিশেষে। উপরন্তু, একটি নীল ওভারলে এখন সীমাবদ্ধতার লক্ষ্যকে হাইলাইট করে। এই হাইলাইটিংটি বিশেষভাবে উপযোগী হয় যখন অন্যের সাথে ওভারল্যাপ করে এমন একটি উপাদানকে সীমাবদ্ধ করার চেষ্টা করা হয়।

    অ্যান্ড্রয়েড স্টুডিও 3.4-এ ওভারল্যাপিং উপাদানের জন্য কীভাবে একটি সীমাবদ্ধতা তৈরি করতে হয় তা দেখানো একটি অ্যানিমেশন।

    অ্যান্ড্রয়েড স্টুডিও 3.4-এ একটি ওভারল্যাপিং উপাদানের জন্য একটি সীমাবদ্ধতা তৈরি করা।

    অ্যান্ড্রয়েড স্টুডিও 3.5-এ ওভারল্যাপিং উপাদানের জন্য কীভাবে একটি সীমাবদ্ধতা তৈরি করা যায় তা দেখানো একটি অ্যানিমেশন।

    অ্যান্ড্রয়েড স্টুডিও 3.5-এ একটি ওভারল্যাপিং উপাদানের জন্য একটি সীমাবদ্ধতা তৈরি করা।

    উপরের আপডেটগুলি ছাড়াও, অ্যান্ড্রয়েড স্টুডিও 3.5-এ নিম্নলিখিত লেআউট এডিটর উন্নতিগুলিও রয়েছে:

    • সীমাবদ্ধতা উইজেট এবং ডিফল্ট মার্জিন ড্রপ-ডাউন এখন আপনাকে মার্জিনের জন্য মাত্রা সম্পদ ব্যবহার করার অনুমতি দেয়।
    • লেআউট এডিটর টুলবারে, ডিজাইনের পৃষ্ঠের আকার নির্ধারণ করে এমন ডিভাইসগুলির তালিকা আপডেট করা হয়েছে। উপরন্তু, আকার পরিবর্তন করার সময় স্ন্যাপিং আচরণ উন্নত করা হয়েছে, এবং ডিজাইনের পৃষ্ঠে আকার পরিবর্তনের হ্যান্ডেলগুলি এখন সর্বদা দৃশ্যমান। আকার পরিবর্তন করার সময়, নতুন ওভারলে প্রদর্শিত হয় যা সাধারণ ডিভাইসের আকার দেখায়।
    • লেআউট এডিটরের একটি নতুন রঙের স্কিম রয়েছে যা ধারাবাহিকতা উন্নত করে এবং উপাদান, পাঠ্য এবং সীমাবদ্ধতার মধ্যে বৈসাদৃশ্য কমায়।
    • ব্লুপ্রিন্ট মোডে এখন এমন কিছু উপাদানের জন্য পাঠ্য সমর্থন অন্তর্ভুক্ত রয়েছে যেখানে পাঠ্য দেখানো হচ্ছে না।

    এই পরিবর্তনগুলি সম্পর্কে আরও তথ্যের জন্য, দেখুন Android Studio Project Marble: Layout Editor

    ডেটা বাইন্ডিং

    ডেটা বাইন্ডিংয়ের জন্য ক্রমবর্ধমান টীকা প্রক্রিয়াকরণ সমর্থন যোগ করার পাশাপাশি, XML-এ ডেটা বাইন্ডিং এক্সপ্রেশন তৈরি করার সময় IDE স্মার্ট সম্পাদক বৈশিষ্ট্য এবং কর্মক্ষমতা উন্নত করে।

    অ্যান্ড্রয়েড স্টুডিও 3.4-এ কোড এডিটর পারফরম্যান্স দেখানো একটি অ্যানিমেশন।

    অ্যান্ড্রয়েড স্টুডিও 3.4-এ কোড এডিটর পারফরম্যান্স।

    অ্যান্ড্রয়েড স্টুডিও 3.5-এ কোড এডিটর পারফরম্যান্স দেখানো একটি অ্যানিমেশন।

    অ্যান্ড্রয়েড স্টুডিও 3.5 এ উন্নত কোড এডিটিং কর্মক্ষমতা।

    C/C++ প্রকল্পের জন্য উন্নত সমর্থন

    অ্যান্ড্রয়েড স্টুডিও 3.5-এ বেশ কিছু পরিবর্তন রয়েছে যা C/C++ প্রকল্পগুলির জন্য সমর্থন উন্নত করে।

    একক ভেরিয়েন্ট সিঙ্কের জন্য ভেরিয়েন্ট প্যানেলের উন্নতিগুলি তৈরি করুন৷

    আপনি এখন বিল্ড ভেরিয়েন্ট প্যানেলে সক্রিয় বিল্ড ভেরিয়েন্ট এবং সক্রিয় ABI উভয়ই নির্দিষ্ট করতে পারেন। এই বৈশিষ্ট্যটি মডিউল প্রতি বিল্ড কনফিগারেশনকে সহজ করে এবং Gradle সিঙ্ক কর্মক্ষমতা উন্নত করতে পারে।

    আরও জানতে, বিল্ড বৈকল্পিক পরিবর্তন দেখুন।

    ABI দ্বারা একক ভেরিয়েন্ট নির্বাচন দেখানো ভেরিয়েন্ট প্যানেল তৈরি করুন।

    ABI দ্বারা একক ভেরিয়েন্ট নির্বাচন সহ বিল্ড ভেরিয়েন্ট প্যানেল।

    NDK-এর পাশাপাশি সংস্করণ

    আপনি এখন পাশাপাশি NDK এর একাধিক সংস্করণ ব্যবহার করতে পারেন। আপনার প্রকল্পগুলি কনফিগার করার সময় এই বৈশিষ্ট্যটি আপনাকে আরও নমনীয়তা দেয়—উদাহরণস্বরূপ, আপনার যদি এমন প্রকল্প থাকে যা একই মেশিনে NDK-এর বিভিন্ন সংস্করণ ব্যবহার করে।

    আপনার প্রোজেক্ট যদি অ্যান্ড্রয়েড গ্রেডল প্লাগইন 3.5.0 বা উচ্চতর ব্যবহার করে, তাহলে আপনি NDK-এর সংস্করণও নির্দিষ্ট করতে পারেন যা আপনার প্রোজেক্টের প্রতিটি মডিউল ব্যবহার করবে। আপনি এই বৈশিষ্ট্যটি পুনরুত্পাদনযোগ্য বিল্ড তৈরি করতে এবং NDK সংস্করণ এবং Android Gradle প্লাগইনের মধ্যে অসঙ্গতি প্রশমিত করতে ব্যবহার করতে পারেন।

    আরও জানতে, NDK, CMake এবং LLDB ইনস্টল এবং কনফিগার করুন দেখুন।

    ChromeOS সমর্থন

    অ্যান্ড্রয়েড স্টুডিও এখন আনুষ্ঠানিকভাবে ChromeOS ডিভাইসগুলিকে সমর্থন করে, যেমন HP Chromebook x360 14, Acer Chromebook 13/Spin 13, এবং অন্যান্য যা আপনি সিস্টেমের প্রয়োজনীয়তাগুলিতে পড়তে পারেন৷ শুরু করতে, আপনার সামঞ্জস্যপূর্ণ ChromeOS ডিভাইসে Android স্টুডিও ডাউনলোড করুন এবং ইনস্টলেশন নির্দেশাবলী অনুসরণ করুন।

    দ্রষ্টব্য: ChromeOS-এ Android স্টুডিও বর্তমানে শুধুমাত্র একটি সংযুক্ত হার্ডওয়্যার ডিভাইসে আপনার অ্যাপ স্থাপন করা সমর্থন করে। আরও জানতে, একটি হার্ডওয়্যার ডিভাইসে অ্যাপ চালান পড়ুন।

    বৈশিষ্ট্য মডিউল জন্য শর্তাধীন ডেলিভারি

    শর্তসাপেক্ষ ডেলিভারি আপনাকে অ্যাপ ইনস্টলের সময় স্বয়ংক্রিয়ভাবে ফিচার মডিউল ডাউনলোড করার জন্য নির্দিষ্ট ডিভাইস কনফিগারেশনের প্রয়োজনীয়তা সেট করতে দেয়। উদাহরণস্বরূপ, আপনি একটি বৈশিষ্ট্য মডিউল কনফিগার করতে পারেন যাতে অগমেন্টেড রিয়েলিটি (AR) এর কার্যকারিতা অন্তর্ভুক্ত থাকে যা শুধুমাত্র AR সমর্থন করে এমন ডিভাইসগুলির জন্য অ্যাপ ইনস্টলে উপলব্ধ।

    এই ডেলিভারি মেকানিজম বর্তমানে নিম্নলিখিত ডিভাইস কনফিগারেশনের উপর ভিত্তি করে অ্যাপ ইনস্টল-টাইমে একটি মডিউল ডাউনলোড নিয়ন্ত্রণ করতে সমর্থন করে:

    • OpenGL ES সংস্করণ সহ ডিভাইস হার্ডওয়্যার এবং সফ্টওয়্যার বৈশিষ্ট্য
    • ব্যবহারকারী দেশ
    • API স্তর

    যদি কোনও ডিভাইস আপনার নির্দিষ্ট করা সমস্ত প্রয়োজনীয়তা পূরণ না করে, তাহলে অ্যাপ ইনস্টলের সময় মডিউলটি ডাউনলোড করা হয় না। যাইহোক, আপনার অ্যাপ পরে প্লে কোর লাইব্রেরি ব্যবহার করে চাহিদা অনুযায়ী মডিউল ডাউনলোড করার অনুরোধ করতে পারে। আরও জানতে, শর্তসাপেক্ষ ডেলিভারি কনফিগার করুন পড়ুন।

    ইন্টেলিজে আইডিয়া 2019.1

    মূল Android Studio IDE 2019.1 রিলিজের মাধ্যমে IntelliJ IDEA থেকে থিম কাস্টমাইজেশনের মতো উন্নতি সহ আপডেট করা হয়েছে।

    অ্যান্ড্রয়েড স্টুডিওর সাথে অন্তর্ভুক্ত করা সর্বশেষ ইন্টেলিজ সংস্করণটি ছিল 2018.3.4। অ্যান্ড্রয়েড স্টুডিওর এই প্রকাশের সাথে ক্রমবর্ধমানভাবে অন্তর্ভুক্ত অন্যান্য IntelliJ সংস্করণগুলির উন্নতি সম্পর্কে আরও তথ্যের জন্য, নিম্নলিখিত বাগ-ফিক্স আপডেটগুলি দেখুন:

    অ্যান্ড্রয়েড গ্রেডল প্লাগইন 3.5.0 আপডেট

    অ্যান্ড্রয়েড গ্রেডল প্লাগইন 3.5.0-এ নতুন কী রয়েছে সে সম্পর্কে তথ্যের জন্য, যেমন ক্রমবর্ধমান টীকা প্রক্রিয়াকরণ এবং ক্যাশেযোগ্য ইউনিট পরীক্ষার জন্য উন্নত সমর্থন, এর রিলিজ নোটগুলি দেখুন।

    সম্প্রদায় অবদানকারী

    আমাদের সকল সম্প্রদায়ের অবদানকারীদের ধন্যবাদ যারা আমাদেরকে Android Studio 3.5 উন্নত করার জন্য বাগ এবং অন্যান্য উপায় আবিষ্কার করতে সাহায্য করেছেন। বিশেষ করে, আমরা নিম্নলিখিত ব্যক্তিদের ধন্যবাদ জানাতে চাই যারা P0 এবং P1 বাগ রিপোর্ট করেছেন:

    3.4 (এপ্রিল 2019)

    অ্যান্ড্রয়েড স্টুডিও 3.4 একটি বড় রিলিজ যাতে বিভিন্ন ধরনের নতুন বৈশিষ্ট্য এবং উন্নতি রয়েছে।

    3.4.2 (জুলাই 2019)

    এই ছোটখাট আপডেটে বিভিন্ন বাগ ফিক্স এবং পারফরম্যান্সের উন্নতি অন্তর্ভুক্ত রয়েছে। উল্লেখযোগ্য বাগ ফিক্সের তালিকা দেখতে, রিলিজ আপডেট ব্লগে সম্পর্কিত পোস্ট পড়ুন।

    3.4.1 (মে 2019)

    এই ছোটখাট আপডেটে বিভিন্ন বাগ ফিক্স এবং পারফরম্যান্সের উন্নতি অন্তর্ভুক্ত রয়েছে। উল্লেখযোগ্য বাগ ফিক্সের তালিকা দেখতে, রিলিজ আপডেট ব্লগে সম্পর্কিত পোস্ট পড়ুন।

    3.4.0 পরিচিত সমস্যা

    • Android Q বিটা চালিত একটি ডিভাইসে আপনার অ্যাপ স্থাপন করার সময় প্রোফাইলিং অক্ষম করা হয়।

    • ডেটা বাইন্ডিং লাইব্রেরি ব্যবহার করার সময়, LiveDataListener.onChanged() NPE এর সাথে ব্যর্থ হতে পারে। এই সমস্যার একটি সমাধান অ্যান্ড্রয়েড স্টুডিও 3.4.1-এ অন্তর্ভুক্ত করা হবে এবং এটি ইতিমধ্যেই অ্যান্ড্রয়েড স্টুডিও 3.5-এর সর্বশেষ প্রিভিউ সংস্করণে উপলব্ধ। ( ইস্যু #122066788 দেখুন)

    IntelliJ IDEA 2018.3.4

    মূল অ্যান্ড্রয়েড স্টুডিও আইডিই 2018.3.4 রিলিজের মাধ্যমে IntelliJ IDEA থেকে উন্নতির সাথে আপডেট করা হয়েছে।

    অ্যান্ড্রয়েড গ্রেডল প্লাগইন 3.4.0 আপডেট

    অ্যান্ড্রয়েড গ্রেডল প্লাগইন 3.4.0-এ নতুন কী রয়েছে সে সম্পর্কে তথ্যের জন্য, এর রিলিজ নোটগুলি দেখুন।

    নতুন প্রজেক্ট স্ট্রাকচার ডায়ালগ

    নতুন প্রজেক্ট স্ট্রাকচার ডায়ালগ (PSD) নির্ভরতা আপডেট করা এবং আপনার প্রকল্পের বিভিন্ন দিক যেমন মডিউল, বিল্ড ভেরিয়েন্ট, কনফিগারেশন সাইনিং এবং ভেরিয়েবল তৈরি করা সহজ করে তোলে।

    আপনি মেনু বার থেকে ফাইল > প্রজেক্ট স্ট্রাকচার নির্বাচন করে PSD খুলতে পারেন। আপনি উইন্ডোজ এবং লিনাক্সে Ctrl+Shift+Alt+S বা Command+; (সেমিকোলন) macOS-এ। আপনি নীচে PSD এর কিছু নতুন এবং আপডেট করা বিভাগের বিবরণ খুঁজে পেতে পারেন।

    ভেরিয়েবল

    PSD-এর নতুন ভেরিয়েবল বিভাগ আপনাকে বিল্ড ভেরিয়েবল তৈরি এবং পরিচালনা করতে দেয়, যেমন আপনার প্রোজেক্ট জুড়ে নির্ভরতার জন্য সংস্করণ নম্বরগুলিকে সামঞ্জস্যপূর্ণ রাখতে।

    • আপনার প্রোজেক্টের গ্রেডল বিল্ড স্ক্রিপ্টে আগে থেকেই বিদ্যমান বিল্ড ভেরিয়েবলগুলি দ্রুত দেখুন এবং সম্পাদনা করুন।
    • PSD থেকে সরাসরি একটি প্রজেক্ট- বা মডিউল-লেভেলে নতুন বিল্ড ভেরিয়েবল যোগ করুন।

    দ্রষ্টব্য: যদি আপনার বিদ্যমান বিল্ড কনফিগারেশন ফাইলগুলি জটিল গ্রোভি স্ক্রিপ্টের মাধ্যমে মান নির্ধারণ করে, তাহলে আপনি PSD-এর মাধ্যমে সেই মানগুলি সম্পাদনা করতে পারবেন না। উপরন্তু, আপনি PSD ব্যবহার করে Kotlin এ লেখা বিল্ড ফাইল সম্পাদনা করতে পারবেন না।

    মডিউল

    বিদ্যমান মডিউলের সমস্ত বিল্ড ভেরিয়েন্টে প্রয়োগ করা বৈশিষ্ট্যগুলি কনফিগার করুন বা মডিউল বিভাগ থেকে আপনার প্রকল্পে নতুন মডিউল যোগ করুন। উদাহরণস্বরূপ, এখানে আপনি defaultConfig বৈশিষ্ট্যগুলি কনফিগার করতে পারেন বা সাইনিং কনফিগারেশনগুলি পরিচালনা করতে পারেন৷

    নির্ভরতা

    এই ধাপগুলি অনুসরণ করে প্রজেক্ট সিঙ্কের সময় Gradle দ্বারা সমাধান করা আপনার প্রকল্পের নির্ভরতা গ্রাফে প্রতিটি নির্ভরতা পরিদর্শন করুন এবং কল্পনা করুন:

    1. PSD এর বাম প্যানে, নির্ভরতা নির্বাচন করুন।
    2. মডিউল ফলকে, একটি মডিউল নির্বাচন করুন যার জন্য আপনি সমাধান করা নির্ভরতাগুলি পরিদর্শন করতে চান।
    3. পিএসডি-র ডানদিকে, সমাধানকৃত নির্ভরতা ফলকটি খুলুন, যা নীচে দেখানো হয়েছে।

    এছাড়াও আপনি PSD-এর নির্ভরতা বিভাগ থেকে প্রথমে একটি মডিউল নির্বাচন করে, ঘোষিত নির্ভরতা বিভাগে (+) বোতামে ক্লিক করে এবং আপনি যে ধরনের নির্ভরতা যোগ করতে চান তা নির্বাচন করে দ্রুত অনুসন্ধান করতে এবং আপনার প্রকল্পে নির্ভরতা যোগ করতে পারেন।

    আপনি যে ধরনের নির্ভরতা নির্বাচন করেছেন তার উপর নির্ভর করে, আপনি নীচের মত একটি ডায়ালগ দেখতে পাবেন, যা আপনাকে মডিউলে নির্ভরতা যোগ করতে সাহায্য করে।

    ভেরিয়েন্ট তৈরি করুন

    PSD-এর এই বিভাগে, আপনার প্রোজেক্টের প্রতিটি মডিউলের জন্য বিল্ড ভেরিয়েন্ট এবং পণ্যের স্বাদ তৈরি এবং কনফিগার করুন। আপনি ম্যানিফেস্ট স্থানধারক যোগ করতে পারেন, ProGuard ফাইল যোগ করতে পারেন এবং সাইনিং কী বরাদ্দ করতে পারেন এবং আরও অনেক কিছু করতে পারেন।

    পরামর্শ

    নীচে দেখানো হিসাবে, প্রস্তাবনা বিভাগে প্রকল্প নির্ভরতা এবং বিল্ড ভেরিয়েবলগুলির জন্য প্রস্তাবিত আপডেটগুলি দেখুন।

    নতুন রিসোর্স ম্যানেজার

    রিসোর্স ম্যানেজার হল আপনার অ্যাপে রিসোর্স আমদানি, তৈরি, পরিচালনা এবং ব্যবহার করার জন্য একটি নতুন টুল উইন্ডো। আপনি মেনু বার থেকে ভিউ > টুল উইন্ডোজ > রিসোর্স ম্যানেজার নির্বাচন করে টুল উইন্ডো খুলতে পারেন। রিসোর্স ম্যানেজার আপনাকে নিম্নলিখিতগুলি করতে দেয়:

    • সম্পদগুলি কল্পনা করুন: আপনার প্রয়োজনীয় সংস্থানগুলি দ্রুত খুঁজে পেতে আপনি অঙ্কনযোগ্য, রঙ এবং লেআউটগুলির পূর্বরূপ দেখতে পারেন।
    • বাল্ক ইম্পোর্ট: আপনি রিসোর্স ম্যানেজার টুল উইন্ডোতে টেনে এনে ফেলে অথবা ইম্পোর্ট ড্রএবল উইজার্ড ব্যবহার করে একাধিক অঙ্কনযোগ্য সম্পদ একবারে আমদানি করতে পারেন। উইজার্ড অ্যাক্সেস করতে, টুল উইন্ডোর উপরের-বাম কোণে (+) বোতামটি নির্বাচন করুন, এবং তারপরে ড্রপ ডাউন মেনু থেকে আমদানি অঙ্কন নির্বাচন করুন।
    • SVG-কে VectorDrawable অবজেক্টে রূপান্তর করুন: আপনার SVG ছবিগুলিকে VectorDrawable অবজেক্টে রূপান্তর করতে আপনি Import Drawables উইজার্ড ব্যবহার করতে পারেন।
    • সম্পদ টেনে আনুন এবং ড্রপ করুন: রিসোর্স ম্যানেজার টুল উইন্ডো থেকে, আপনি লেআউট এডিটরের ডিজাইন এবং এক্সএমএল ভিউ উভয়েই ড্র্যাগ এবং ড্রপ করতে পারেন।
    • বিকল্প সংস্করণগুলি দেখুন: আপনি এখন টুল উইন্ডোর মধ্যে একটি সংস্থান ডাবল ক্লিক করে আপনার সংস্থানগুলির বিকল্প সংস্করণগুলি দেখতে পারেন৷ এই ভিউটি আপনার তৈরি করা বিভিন্ন সংস্করণ এবং যে কোয়ালিফায়ারগুলি অন্তর্ভুক্ত ছিল তা দেখায়৷
    • টাইল এবং তালিকার দৃশ্য: আপনি বিভিন্ন ব্যবস্থায় আপনার সংস্থানগুলিকে কল্পনা করতে টুল উইন্ডোর ভিউ পরিবর্তন করতে পারেন।

    আরও জানতে, কীভাবে অ্যাপ সংস্থানগুলি পরিচালনা করবেন সে সম্পর্কে নির্দেশিকা পড়ুন।

    এপিকে প্রোফাইলিং এবং ডিবাগ করার সময় বিল্ড আইডি চেক করা হচ্ছে

    আপনি যখন আপনার APK-এর মধ্যে .so শেয়ার করা লাইব্রেরির জন্য ডিবাগিং প্রতীক ফাইলগুলি প্রদান করেন, তখন Android স্টুডিও যাচাই করে যে প্রদত্ত প্রতীক ফাইলগুলির বিল্ড আইডি APK-এর ভিতরের .so লাইব্রেরির বিল্ড আইডির সাথে মেলে৷

    আপনি যদি একটি বিল্ড আইডি দিয়ে আপনার APK-এ নেটিভ লাইব্রেরি তৈরি করেন, তাহলে Android স্টুডিও আপনার প্রতীক ফাইলের বিল্ড আইডি আপনার নেটিভ লাইব্রেরির বিল্ড আইডির সাথে মেলে কিনা তা পরীক্ষা করে এবং অমিল থাকলে প্রতীক ফাইলগুলি প্রত্যাখ্যান করে। আপনি যদি বিল্ড আইডি দিয়ে তৈরি না করে থাকেন, তাহলে ভুল প্রতীক ফাইল প্রদান করলে ডিবাগিংয়ের সমস্যা হতে পারে।

    R8 ডিফল্টরূপে সক্রিয়

    R8 এক ধাপে ডিসুগারিং, সঙ্কুচিত করা, অস্পষ্ট করা, অপ্টিমাইজ করা এবং ডেক্সিংকে একীভূত করে—ফলে লক্ষণীয় বিল্ড পারফরম্যান্সের উন্নতি হয় । R8 অ্যান্ড্রয়েড গ্রেডল প্লাগইন 3.3.0-এ চালু করা হয়েছিল এবং এখন প্লাগইন 3.4.0 এবং উচ্চতর ব্যবহার করে অ্যাপ এবং অ্যান্ড্রয়েড লাইব্রেরি উভয় প্রকল্পের জন্য ডিফল্টরূপে সক্রিয় করা হয়েছে।

    নীচের ছবিটি R8 চালু করার আগে কম্পাইল প্রক্রিয়ার একটি উচ্চ-স্তরের ওভারভিউ প্রদান করে।

    R8 এর আগে, ProGuard ছিল ডেক্সিং এবং desugaring থেকে একটি ভিন্ন কম্পাইল পদক্ষেপ।

    এখন, R8 এর সাথে, ডিসুগারিং, সঙ্কুচিত করা, অস্পষ্ট করা, অপ্টিমাইজ করা এবং ডেক্সিং (D8) সবই এক ধাপে সম্পন্ন হয়েছে, যেমনটি নীচে চিত্রিত হয়েছে।

    R8 এর সাথে, ডিসুগারিং, সঙ্কুচিত করা, অস্পষ্ট করা, অপ্টিমাইজ করা এবং ডেক্সিং সব একটি একক কম্পাইল ধাপে সঞ্চালিত হয়।

    মনে রাখবেন, R8 আপনার বিদ্যমান ProGuard নিয়মের সাথে কাজ করার জন্য ডিজাইন করা হয়েছে, তাই R8 থেকে উপকৃত হওয়ার জন্য আপনাকে সম্ভবত কোনো পদক্ষেপ নিতে হবে না। যাইহোক, যেহেতু এটি প্রোগার্ডের জন্য একটি ভিন্ন প্রযুক্তি যা বিশেষভাবে অ্যান্ড্রয়েড প্রকল্পগুলির জন্য ডিজাইন করা হয়েছে, সঙ্কুচিত এবং অপ্টিমাইজেশানের ফলে কোডটি সরানো হতে পারে যা প্রোগার্ড নাও থাকতে পারে। সুতরাং, এই অসম্ভাব্য পরিস্থিতিতে, আপনার বিল্ড আউটপুটে সেই কোডটি রাখার জন্য আপনাকে অতিরিক্ত নিয়ম যুক্ত করতে হতে পারে।

    আপনি যদি R8 ব্যবহার করে সমস্যার সম্মুখীন হন, তাহলে আপনার সমস্যার সমাধান আছে কিনা তা পরীক্ষা করতে R8 সামঞ্জস্যপূর্ণ FAQ পড়ুন। যদি একটি সমাধান নথিভুক্ত না হয়, দয়া করে একটি বাগ রিপোর্ট করুন ৷ আপনি আপনার প্রকল্পের gradle.properties ফাইলে নিম্নলিখিত লাইনগুলির মধ্যে একটি যোগ করে R8 নিষ্ক্রিয় করতে পারেন:

        # Disables R8 for Android Library modules only.
        android.enableR8.libraries = false
        # Disables R8 for all modules.
        android.enableR8 = false
        
      

    দ্রষ্টব্য: একটি প্রদত্ত বিল্ড টাইপের জন্য, আপনি যদি আপনার অ্যাপ মডিউলের build.gradle ফাইলে useProguard false সেট করেন, তাহলে Android Gradle প্লাগইন R8 ব্যবহার করে সেই বিল্ড টাইপের জন্য আপনার অ্যাপের কোড সঙ্কুচিত করতে, আপনি আপনার প্রোজেক্টের gradle.properties ফাইল।

    ন্যাভিগেশন কম্পোনেন্ট দ্বারা সমর্থিত সমস্ত আর্গুমেন্ট প্রকার এখন ন্যাভিগেশন এডিটরে সমর্থিত। সমর্থিত প্রকারের বিষয়ে আরও তথ্যের জন্য, গন্তব্যগুলির মধ্যে ডেটা পাস করুন দেখুন।

    লেআউট এডিটর উন্নতি {:#layout-editor}

    লেআউট এডিটরের অ্যাট্রিবিউটস ফলকটিকে একটি একক পৃষ্ঠায় স্ট্রীমলাইন করা হয়েছে যেখানে আপনি কনফিগার করতে পারেন এমন বৈশিষ্ট্যগুলি প্রকাশ করতে আপনি প্রসারিত করতে পারেন। অ্যাট্রিবিউট প্যানে নিম্নলিখিত আপডেটগুলিও অন্তর্ভুক্ত রয়েছে:

    • একটি নতুন ঘোষিত অ্যাট্রিবিউটস বিভাগ লেআউট ফাইলের বৈশিষ্ট্যগুলিকে তালিকাভুক্ত করে এবং আপনাকে দ্রুত নতুন যোগ করার অনুমতি দেয়।
    • অ্যাট্রিবিউট প্যানে এখন প্রতিটি অ্যাট্রিবিউটের পাশে ইন্ডিকেটরও রয়েছে যেগুলো শক্ত হয় যখন অ্যাট্রিবিউটের মান একটি রিসোর্স রেফারেন্স এবং অন্যথায় খালি থাকে।
    • ত্রুটি বা সতর্কতা সহ বৈশিষ্ট্যগুলি এখন হাইলাইট করা হয়েছে৷ লাল হাইলাইটগুলি ত্রুটি নির্দেশ করে (উদাহরণস্বরূপ, আপনি যখন অবৈধ লেআউট মান ব্যবহার করেন) এবং কমলা হাইলাইটগুলি সতর্কতা নির্দেশ করে (উদাহরণস্বরূপ, আপনি যখন হার্ড-কোডেড মান ব্যবহার করেন)।

    নির্ভরতা দ্রুত আমদানি করতে নতুন অভিপ্রায় ক্রিয়া

    আপনি যদি আপনার কোডে নির্দিষ্ট জেটপ্যাক এবং ফায়ারবেস ক্লাস ব্যবহার করা শুরু করেন, তাহলে একটি নতুন উদ্দেশ্য অ্যাকশন আপনার প্রোজেক্টে প্রয়োজনীয় Gradle লাইব্রেরি নির্ভরতা যোগ করার পরামর্শ দেয়, যদি আপনি ইতিমধ্যে তা না করে থাকেন। উদাহরণস্বরূপ, আপনি যদি প্রথমে প্রয়োজনীয় android.arch.work:work-runtime নির্ভরতা আমদানি না করে WorkManager ক্লাসটি উল্লেখ করেন, তাহলে একটি অভিপ্রায় ক্রিয়া আপনাকে একটি একক ক্লিকে সহজে করতে দেয়, যেমনটি নীচে দেখানো হয়েছে৷

    বিশেষ করে, যেহেতু জেটপ্যাক সমর্থন লাইব্রেরিটিকে বিচ্ছিন্ন প্যাকেজগুলিতে পুনরায় প্যাকেজ করেছে যা পরিচালনা এবং আপডেট করা সহজ, এই অভিপ্রায় ক্রিয়া আপনাকে দ্রুত কেবলমাত্র জেটপ্যাক উপাদানগুলির জন্য আপনার প্রয়োজনীয় নির্ভরতা যোগ করতে সহায়তা করে যা আপনি ব্যবহার করতে চান।

    3.3 (জানুয়ারি 2019)

    অ্যান্ড্রয়েড স্টুডিও 3.3 একটি বড় রিলিজ যাতে বিভিন্ন ধরনের নতুন বৈশিষ্ট্য এবং উন্নতি রয়েছে।

    3.3.2 (মার্চ 2019)

    এই ছোটখাট আপডেটে বিভিন্ন বাগ ফিক্স এবং পারফরম্যান্সের উন্নতি অন্তর্ভুক্ত রয়েছে। উল্লেখযোগ্য বাগ ফিক্সের তালিকা দেখতে, রিলিজ আপডেট ব্লগে সম্পর্কিত পোস্ট পড়ুন।

    3.3.1 (ফেব্রুয়ারি 2019)

    এই ছোটখাট আপডেটে বিভিন্ন বাগ ফিক্স এবং পারফরম্যান্সের উন্নতি অন্তর্ভুক্ত রয়েছে।

    IntelliJ IDEA 2018.2.2

    মূল অ্যান্ড্রয়েড স্টুডিও আইডিই 2018.2.2 রিলিজের মাধ্যমে IntelliJ IDEA থেকে উন্নতির সাথে আপডেট করা হয়েছে।

    অ্যান্ড্রয়েড গ্রেডল প্লাগইন আপডেট

    অ্যান্ড্রয়েড গ্রেডল প্লাগইনে নতুন কী আছে সে সম্পর্কে তথ্যের জন্য, এর রিলিজ নোটগুলি দেখুন।

    নেভিগেশন এডিটর আপনাকে নেভিগেশন আর্কিটেকচার কম্পোনেন্ট ব্যবহার করে আপনার অ্যাপে দ্রুত ভিজ্যুয়ালাইজ করতে এবং নেভিগেশন তৈরি করতে দেয়।

    আরও তথ্যের জন্য, নেভিগেশন আর্কিটেকচার কম্পোনেন্টের সাথে নেভিগেশন বাস্তবায়ন দেখুন।

    অব্যবহৃত অ্যান্ড্রয়েড স্টুডিও ডিরেক্টরি মুছুন

    আপনি যখন প্রথমবার অ্যান্ড্রয়েড স্টুডিওর একটি প্রধান সংস্করণ চালান, তখন এটি অ্যান্ড্রয়েড স্টুডিওর সংস্করণগুলির জন্য ক্যাশে, সেটিংস, সূচক এবং লগ ধারণকারী ডিরেক্টরিগুলি সন্ধান করে যার জন্য একটি অনুরূপ ইনস্টলেশন পাওয়া যায় না। অব্যবহৃত অ্যান্ড্রয়েড স্টুডিও ডিরেক্টরিগুলি মুছুন ডায়ালগ তারপরে এই অব্যবহৃত ডিরেক্টরিগুলির অবস্থান, আকার এবং শেষ-সংশোধিত সময়গুলি প্রদর্শন করে এবং সেগুলি মুছতে একটি বিকল্প সরবরাহ করে।

    অ্যান্ড্রয়েড স্টুডিও যে ডিরেক্টরিগুলি মুছে ফেলার জন্য বিবেচনা করে তা নীচে তালিকাভুক্ত করা হয়েছে:

    • লিনাক্স: ~/.AndroidStudio[Preview] XY
    • Mac: ~/Library/{Preferences, Caches, Logs, Application Support}/AndroidStudio[Preview] XY
    • উইন্ডোজ: %USER%.AndroidStudio[Preview] XY

    লিন্ট উন্নতি

    লিন্ট, যখন গ্রেডল থেকে আহ্বান করা হয়, তা উল্লেখযোগ্যভাবে দ্রুত হয়- বড় প্রকল্পগুলি লিন্ট চারগুণ দ্রুত চালানোর আশা করতে পারে।

    নতুন প্রজেক্ট উইজার্ড তৈরি করুন

    নতুন প্রজেক্ট তৈরি করুন উইজার্ডটির একটি নতুন চেহারা রয়েছে এবং এতে এমন আপডেট রয়েছে যা নতুন অ্যান্ড্রয়েড স্টুডিও প্রজেক্ট তৈরি করতে সাহায্য করে।

    আরও তথ্যের জন্য, একটি প্রকল্প তৈরি করুন দেখুন।

    প্রোফাইলার আপডেট

    অ্যান্ড্রয়েড স্টুডিও 3.3-এ বেশ কয়েকটি পৃথক প্রোফাইলারের আপডেট অন্তর্ভুক্ত রয়েছে।

    উন্নত কর্মক্ষমতা

    ব্যবহারকারীর প্রতিক্রিয়ার উপর ভিত্তি করে, প্রোফাইলার ব্যবহার করার সময় রেন্ডারিং কর্মক্ষমতা ব্যাপকভাবে উন্নত করা হয়েছে। অনুগ্রহ করে প্রতিক্রিয়া প্রদান করা চালিয়ে যান, বিশেষ করে যদি আপনি কর্মক্ষমতা সমস্যা দেখতে থাকেন।

    প্রোফাইলার মেমরি বরাদ্দ ট্র্যাকিং বিকল্প

    প্রোফাইলিং করার সময় অ্যাপের কর্মক্ষমতা উন্নত করতে, মেমরি প্রোফাইলার এখন ডিফল্টভাবে পর্যায়ক্রমে মেমরি বরাদ্দের নমুনা দেয়। যদি ইচ্ছা হয়, আপনি Android 8.0 (API স্তর 26) বা উচ্চতর চলমান ডিভাইসগুলিতে পরীক্ষা করার সময় বরাদ্দ ট্র্যাকিং ড্রপডাউন ব্যবহার করে এই আচরণটি পরিবর্তন করতে পারেন।

    বরাদ্দ ট্র্যাকিং ড্রপডাউন ব্যবহার করে, আপনি নিম্নলিখিত মোডগুলি থেকে চয়ন করতে পারেন:

    • সম্পূর্ণ: সমস্ত অবজেক্ট মেমরি বরাদ্দ ক্যাপচার করে। মনে রাখবেন যে আপনার যদি এমন একটি অ্যাপ থাকে যা অনেকগুলি বস্তু বরাদ্দ করে, আপনি প্রোফাইল করার সময় উল্লেখযোগ্য কর্মক্ষমতা সমস্যা দেখতে পারেন।

    • নমুনা: অবজেক্ট মেমরি বরাদ্দের একটি পর্যায়ক্রমিক নমুনা ক্যাপচার করে। এটি ডিফল্ট আচরণ এবং প্রোফাইল করার সময় অ্যাপের কার্যক্ষমতার উপর কম প্রভাব ফেলে। আপনি অ্যাপগুলির সাথে কিছু পারফরম্যান্স সমস্যার সম্মুখীন হতে পারেন যা অল্প সময়ের মধ্যে অনেকগুলি বস্তু বরাদ্দ করে।

    • বন্ধ: মেমরি বরাদ্দ বন্ধ করে। যদি ইতিমধ্যে নির্বাচিত না থাকে, তাহলে এই মোডটি একটি CPU রেকর্ডিং নেওয়ার সময় স্বয়ংক্রিয়ভাবে সক্ষম হয় এবং তারপর রেকর্ডিং শেষ হলে পূর্ববর্তী সেটিংয়ে ফিরে আসে। আপনি CPU রেকর্ডিং কনফিগারেশন ডায়ালগে এই আচরণ পরিবর্তন করতে পারেন।

      ট্র্যাকিং জাভা অবজেক্ট এবং JNI রেফারেন্স উভয়কেই প্রভাবিত করে।

    ফ্রেম রেন্ডারিং ডেটা পরিদর্শন করুন

    CPU প্রোফাইলারে , আপনি এখন পরিদর্শন করতে পারেন যে আপনার জাভা অ্যাপটি মূল UI থ্রেড এবং RenderThread-এ প্রতিটি ফ্রেম রেন্ডার করতে কতক্ষণ সময় নেয়। UI জ্যাঙ্ক এবং কম ফ্রেমরেটের কারণে বাধাগুলি তদন্ত করার সময় এই ডেটাটি কার্যকর হতে পারে। উদাহরণস্বরূপ, একটি মসৃণ ফ্রেমরেট বজায় রাখার জন্য প্রয়োজনীয় 16ms এর চেয়ে বেশি সময় নেয় এমন প্রতিটি ফ্রেম লাল রঙে প্রদর্শিত হয়।

    ফ্রেম রেন্ডারিং ডেটা দেখতে, একটি কনফিগারেশন ব্যবহার করে একটি ট্রেস রেকর্ড করুন যা আপনাকে সিস্টেম কলগুলি ট্রেস করতে দেয়৷ ট্রেস রেকর্ড করার পরে, নীচে দেখানো হিসাবে FRAMES নামক বিভাগের অধীনে রেকর্ডিংয়ের জন্য সময়রেখা বরাবর প্রতিটি ফ্রেমের সম্পর্কে তথ্য সন্ধান করুন।

    ফ্রেমরেট সমস্যাগুলির তদন্ত এবং সমাধান সম্পর্কে আরও জানতে, স্লো রেন্ডারিং পড়ুন।

    ইভেন্ট টাইমলাইনে টুকরা

    ইভেন্ট টাইমলাইন এখন দেখায় যখন টুকরো সংযুক্ত এবং বিচ্ছিন্ন করা হয়। অতিরিক্তভাবে, আপনি যখন একটি খণ্ডের উপর হোভার করেন, তখন একটি টুলটিপ আপনাকে খণ্ডের স্থিতি দেখায়।

    নেটওয়ার্ক প্রোফাইলারে সংযোগ পেলোডের জন্য বিন্যাসিত পাঠ্য দেখুন

    পূর্বে, নেটওয়ার্ক প্রোফাইলার শুধুমাত্র সংযোগ পেলোড থেকে কাঁচা পাঠ প্রদর্শন করত। অ্যান্ড্রয়েড স্টুডিও 3.3 এখন JSON, XML এবং HTML সহ ডিফল্টরূপে নির্দিষ্ট পাঠ্য প্রকারগুলিকে ফর্ম্যাট করে৷ রেসপন্স এবং রিকোয়েস্ট ট্যাবে, ফরম্যাট করা টেক্সট প্রদর্শন করতে পার্স করা ভিউ লিঙ্কে ক্লিক করুন এবং কাঁচা টেক্সট প্রদর্শন করতে সোর্স দেখুন লিঙ্কে ক্লিক করুন।

    আরও তথ্যের জন্য, নেটওয়ার্ক প্রোফাইলারের সাথে নেটওয়ার্ক ট্র্যাফিক পরিদর্শন দেখুন।

    SDK উপাদানগুলির স্বয়ংক্রিয় ডাউনলোডিং

    যখন আপনার প্রকল্পের SDK প্ল্যাটফর্ম, NDK, বা CMake থেকে একটি SDK উপাদানের প্রয়োজন হয়, তখন Gradle এখন স্বয়ংক্রিয়ভাবে প্রয়োজনীয় প্যাকেজগুলি ডাউনলোড করার চেষ্টা করে যতক্ষণ না আপনি পূর্বে SDK ম্যানেজার ব্যবহার করে কোনো সম্পর্কিত লাইসেন্স চুক্তি গ্রহণ করেছেন।

    আরও তথ্যের জন্য, গ্রেডলের সাথে অনুপস্থিত প্যাকেজগুলি স্বয়ংক্রিয় ডাউনলোড করুন দেখুন।

    ঝনঝন-পরিপাটি জন্য সমর্থন

    অ্যান্ড্রয়েড স্টুডিওতে এখন নেটিভ কোড অন্তর্ভুক্ত প্রকল্পগুলির জন্য ক্ল্যাং-টাইডি ব্যবহার করে স্ট্যাটিক কোড বিশ্লেষণের জন্য সমর্থন অন্তর্ভুক্ত রয়েছে। Clang-Tidy-এর জন্য সমর্থন সক্ষম করতে, আপনার NDK আপডেট করুন r18 বা তার বেশি।

    তারপরে আপনি সেটিংস বা পছন্দ ডায়ালগ খুলে এবং সম্পাদক > পরিদর্শন > C/C++ > সাধারণ > Clang-Tidy- এ নেভিগেট করে পরিদর্শনগুলি সক্ষম বা পুনরায় সক্ষম করতে পারেন। সেটিংস বা পছন্দ ডায়ালগে এই পরিদর্শনটি নির্বাচন করার সময়, আপনি ডান-সবচেয়ে প্যানেলের বিকল্প বিভাগের অধীনে সক্রিয় এবং অক্ষম করা ক্ল্যাং-টিডি চেকের তালিকাও দেখতে পারেন। অতিরিক্ত চেক সক্রিয় করতে, তালিকায় যোগ করুন এবং প্রয়োগ করুন ক্লিক করুন।

    অতিরিক্ত বিকল্পগুলির সাথে ক্ল্যাং-টিডি কনফিগার করতে, ক্ল্যাং-টিডি চেক বিকল্পগুলি কনফিগার করুন ক্লিক করুন এবং খোলা ডায়ালগে সেগুলি যুক্ত করুন৷

    C++ কাস্টমাইজেশনের জন্য অপশন অপসারণ

    নিম্নলিখিত বিকল্পগুলি কাস্টমাইজ C++ সমর্থন ডায়ালগ থেকে সরানো হয়েছে:

    • ব্যতিক্রম সমর্থন (-ব্যতিক্রম)
    • রানটাইম টাইপ ইনফরমেশন সাপোর্ট (-ftti)

    অ্যান্ড্রয়েড স্টুডিওর মাধ্যমে তৈরি সমস্ত প্রকল্পের জন্য সংশ্লিষ্ট আচরণগুলি সক্ষম করা হয়েছে।

    CMake সংস্করণ 3.10.2

    CMake সংস্করণ 3.10.2 এখন SDK ম্যানেজারের সাথে অন্তর্ভুক্ত করা হয়েছে। উল্লেখ্য যে Gradle এখনও ডিফল্টরূপে সংস্করণ 3.6.0 ব্যবহার করে।

    Gradle ব্যবহারের জন্য একটি CMake সংস্করণ নির্দিষ্ট করতে, আপনার মডিউলের build.gradle ফাইলে নিম্নলিখিত যোগ করুন:

        android {
            ...
            externalNativeBuild {
                cmake {
                    ...
                    version "3.10.2"
                }
            }
        }
        
      

    build.gradle এ CMake কনফিগার করার বিষয়ে আরও তথ্যের জন্য, দেখুন ম্যানুয়ালি Gradle কনফিগার করুন

    ন্যূনতম CMake সংস্করণ নির্দিষ্ট করতে নতুন “+” বাক্য গঠন

    আপনার প্রধান মডিউলের build.gradle ফাইলে CMake-এর একটি সংস্করণ উল্লেখ করার সময়, আপনি এখন CMake-এর cmake_minimum_required() কমান্ডের আচরণের সাথে মেলে একটি “+” যোগ করতে পারেন।

    সতর্কতা: অন্যান্য বিল্ড নির্ভরতার সাথে "+" সিনট্যাক্স ব্যবহার করা নিরুৎসাহিত করা হয়, কারণ গতিশীল নির্ভরতা অপ্রত্যাশিত সংস্করণ আপডেট এবং সংস্করণের পার্থক্যগুলি সমাধান করতে অসুবিধা সৃষ্টি করতে পারে।

    অ্যান্ড্রয়েড অ্যাপ বান্ডেলগুলি এখন ইনস্ট্যান্ট অ্যাপ সমর্থন করে

    Android Studio এখন আপনাকে Google Play Instant- এর জন্য সম্পূর্ণ সমর্থন সহ Android App Bundles তৈরি করতে দেয়। অন্য কথায়, আপনি এখন একটি একক অ্যান্ড্রয়েড স্টুডিও প্রকল্প থেকে ইনস্টল করা অ্যাপ এবং তাত্ক্ষণিক অভিজ্ঞতা উভয়ই তৈরি এবং স্থাপন করতে পারেন এবং সেগুলিকে একটি একক অ্যান্ড্রয়েড অ্যাপ বান্ডেলে অন্তর্ভুক্ত করতে পারেন।

    আপনি যদি নতুন প্রজেক্ট তৈরি করুন ডায়ালগ ব্যবহার করে একটি নতুন অ্যান্ড্রয়েড স্টুডিও প্রোজেক্ট তৈরি করেন, তাহলে নিশ্চিত করুন যে আপনি আপনার প্রোজেক্ট কনফিগার করুন > এই প্রোজেক্ট তাত্ক্ষণিক অ্যাপগুলিকে সমর্থন করবে এর পাশের বাক্সে টিক চিহ্ন দিয়েছেন। অ্যান্ড্রয়েড স্টুডিও তখন একটি নতুন অ্যাপ প্রোজেক্ট তৈরি করে যেমন এটি সাধারণত হয়, কিন্তু আপনার অ্যাপের বেস মডিউলে ঝটপট অ্যাপ সমর্থন যোগ করতে আপনার ম্যানিফেস্টে নিম্নলিখিত বৈশিষ্ট্যগুলি অন্তর্ভুক্ত করে:

        <manifest ... xmlns:dist="http://schemas.android.com/apk/distribution">
            <dist:module dist:instant="true" />
            ...
        </manifest>
        
      

    তারপরে আপনি মেনু বার থেকে ফাইল > নতুন > নতুন মডিউল নির্বাচন করে একটি তাত্ক্ষণিক-সক্ষম বৈশিষ্ট্য মডিউল তৈরি করতে পারেন এবং তারপরে নতুন মডিউল তৈরি করুন ডায়ালগ থেকে তাত্ক্ষণিক গতিশীল বৈশিষ্ট্য মডিউল নির্বাচন করে। মনে রাখবেন, এই মডিউলটি তৈরি করা আপনার অ্যাপের বেস মডিউলকে তাৎক্ষণিক-সক্ষম করে।

    একটি তাত্ক্ষণিক অভিজ্ঞতা হিসাবে একটি স্থানীয় ডিভাইসে আপনার অ্যাপ স্থাপন করতে, আপনার রান কনফিগারেশন সম্পাদনা করুন এবং সাধারণ > তাত্ক্ষণিক অ্যাপ হিসাবে স্থাপন করুন এর পাশের বাক্সে টিক চিহ্ন দিন।

    একক-ভেরিয়েন্ট প্রকল্প সিঙ্ক

    আপনার বিল্ড কনফিগারেশনের সাথে আপনার প্রকল্পটি সিঙ্ক করা অ্যান্ড্রয়েড স্টুডিওকে কীভাবে আপনার প্রকল্পটি কাঠামোগত করা হয়েছে তা বোঝার একটি গুরুত্বপূর্ণ পদক্ষেপ। তবে এই প্রক্রিয়াটি বড় প্রকল্পগুলির জন্য সময় সাপেক্ষ হতে পারে। যদি আপনার প্রকল্পটি একাধিক বিল্ড ভেরিয়েন্ট ব্যবহার করে তবে আপনি এখন কেবলমাত্র আপনি বর্তমানে নির্বাচিত বৈকল্পিকের মধ্যে সীমাবদ্ধ রেখে প্রকল্প সিঙ্কগুলি অনুকূল করতে পারেন।

    এই অপ্টিমাইজেশন সক্ষম করতে আপনাকে অ্যান্ড্রয়েড স্টুডিও 3.3 বা উচ্চতর অ্যান্ড্রয়েড গ্রেডল প্লাগইন 3.3.0 বা তার বেশি ব্যবহার করতে হবে। আপনি যখন এই প্রয়োজনীয়তাগুলি পূরণ করেন, আপনি যখন আপনার প্রকল্পটি সিঙ্ক করেন তখন আইডিই আপনাকে এই অপ্টিমাইজেশন সক্ষম করতে অনুরোধ করে। অপ্টিমাইজেশনটি নতুন প্রকল্পগুলিতে ডিফল্টরূপে সক্ষম করা হয়।

    এই অপ্টিমাইজেশনটি ম্যানুয়ালি সক্ষম করতে, ফাইল> সেটিংস> পরীক্ষামূলক> গ্রেডল ( অ্যান্ড্রয়েড স্টুডিও> পছন্দসমূহ> পরীক্ষামূলক> ম্যাকের গ্রেডল ) ক্লিক করুন এবং সক্রিয় বৈকল্পিক চেকবক্সটি কেবলমাত্র সিঙ্ক করুন নির্বাচন করুন।

    দ্রষ্টব্য: এই অপ্টিমাইজেশন বর্তমানে এমন প্রকল্পগুলিকে সমর্থন করে যা কেবলমাত্র জাভা প্রোগ্রামিং ভাষা অন্তর্ভুক্ত করে। উদাহরণস্বরূপ, যদি আইডিই আপনার প্রকল্পে কোটলিন বা সি ++ কোড সনাক্ত করে তবে এটি স্বয়ংক্রিয়ভাবে এই অপ্টিমাইজেশন সক্ষম করে না এবং আপনার এটিকে ম্যানুয়ালি সক্ষম করা উচিত নয়।

    আরও তথ্যের জন্য, একক-বৈকল্পিক প্রকল্প সিঙ্ক সক্ষম করুন দেখুন।

    দ্রুত প্রতিক্রিয়া সরবরাহ করুন

    যদি আপনি অ্যান্ড্রয়েড স্টুডিও উন্নত করতে সহায়তা করার জন্য ব্যবহারের পরিসংখ্যান ভাগ করে নেওয়ার সিদ্ধান্ত নিয়েছেন তবে আপনি আইডিই উইন্ডোর নীচে স্ট্যাটাস বারে এই দুটি নতুন আইকন দেখতে পাবেন:

    কেবল আইকনটি ক্লিক করুন যা আইডিইর সাথে আপনার বর্তমান অভিজ্ঞতাকে সর্বোত্তমভাবে উপস্থাপন করে। আপনি যখন এটি করেন, আইডিই ব্যবহারের পরিসংখ্যান প্রেরণ করে যা অ্যান্ড্রয়েড স্টুডিও দলকে আপনার অনুভূতিটি আরও ভালভাবে বুঝতে দেয়। কিছু ক্ষেত্রে, যেমন আপনি যখন আইডিইর সাথে নেতিবাচক অভিজ্ঞতা নির্দেশ করেন, আপনার অতিরিক্ত প্রতিক্রিয়া সরবরাহ করার সুযোগ পাবেন।

    আপনি যদি ইতিমধ্যে এটি না করে থাকেন তবে আপনি ম্যাকের উপর সেটিংস ডায়ালগের পছন্দগুলি খোলার মাধ্যমে ব্যবহারের পরিসংখ্যান ভাগ করে নেওয়ার সক্ষম করতে পারেন), উপস্থিতি ও আচরণ> সিস্টেম সেটিংস> ডেটা শেয়ারিং এবং চেকিং গুগলে ব্যবহারের পরিসংখ্যান প্রেরণ করুন

    3.2 (সেপ্টেম্বর 2018)

    অ্যান্ড্রয়েড স্টুডিও 3.2 একটি প্রধান প্রকাশ যা বিভিন্ন নতুন বৈশিষ্ট্য এবং উন্নতি অন্তর্ভুক্ত করে।

    3.2.1 (অক্টোবর 2018)

    অ্যান্ড্রয়েড স্টুডিও 3.2 এর এই আপডেটটিতে নিম্নলিখিত পরিবর্তনগুলি এবং ফিক্সগুলি অন্তর্ভুক্ত রয়েছে:

    • বান্ডিলযুক্ত কোটলিন সংস্করণটি এখন 1.2.71।
    • ডিফল্ট বিল্ড সরঞ্জাম সংস্করণ এখন 28.0.3।
    • নেভিগেশন লাইব্রেরিতে, আর্গুমেন্টের প্রকারগুলি type থেকে argType নামকরণ করা হয়েছে।
    • নিম্নলিখিত বাগগুলি ঠিক করা হয়েছে:
      • ডেটা বাইন্ডিং লাইব্রেরি ব্যবহার করার সময়, আন্ডারস্কোরগুলির সাথে পরিবর্তনশীল নামগুলি সংকলন ত্রুটি ঘটায়।
      • সিএমএকে ইন্টেলিসেন্স এবং অন্যান্য ক্লিয়নের বৈশিষ্ট্যগুলি ব্যর্থ হওয়ার কারণ ছিল।
      • একটি SliceProvider যুক্ত করা androidx.* গ্রন্থাগারগুলি।
      • কিছু কোটলিন ইউনিট পরীক্ষা চালানো হচ্ছে না।
      • ডেটা বাইন্ডিংয়ের সাথে একটি ইস্যু একটি PsiInvalidElementAccessException সৃষ্টি করেছিল।
      • <merge> উপাদানগুলি কখনও কখনও লেআউট সম্পাদককে ক্র্যাশ করে তোলে।

    3.2.0 পরিচিত সমস্যা

    দ্রষ্টব্য: এই বিষয়গুলি অ্যান্ড্রয়েড স্টুডিও 3.2.1 এ সমাধান করা হয়েছে

    • আমরা কোটলিন সংস্করণ 1.2.70 ব্যবহারের বিরুদ্ধে দৃ strongly ়ভাবে সুপারিশ করি।

      কোটলিন সংস্করণ 1.2.61 একটি বাগ ঠিক করে যা অ্যান্ড্রয়েড স্টুডিওতে ঝুলতে পারে, তবে কোটলিন 1.2.70 এই ফিক্সটি অন্তর্ভুক্ত করে না

      কোটলিন সংস্করণগুলি 1.2.71 এবং পরে, তবে এই ফিক্সটি অন্তর্ভুক্ত করে।

    • যদিও আপনার সাধারণত বিল্ড সরঞ্জাম সংস্করণ নির্দিষ্ট করার দরকার নেই, যখন অ্যান্ড্রয়েড গ্রেডল প্লাগইন 3.2.0 ব্যবহার করে renderscriptSupportModeEnabled সেটগুলি true সেট করে, আপনাকে প্রতিটি মডিউলটির build.gradle ফাইলটিতে নিম্নলিখিতগুলি অন্তর্ভুক্ত করতে হবে:

      android.buildToolsVersion "28.0.3"

    নতুন সহকারী কি

    একজন নতুন সহকারী আপনাকে অ্যান্ড্রয়েড স্টুডিওতে সর্বশেষ পরিবর্তনগুলি সম্পর্কে অবহিত করে।

    সহকারীটি যখন আপনি একটি নতুন ইনস্টলেশন বা আপডেটের পরে অ্যান্ড্রয়েড স্টুডিও শুরু করেন তখন এটি খোলে বা এটি সনাক্ত করতে পারে এমন নতুন তথ্য রয়েছে কিনা তা সনাক্ত করে। অ্যান্ড্রয়েড স্টুডিওতে নতুন কী কী তা বেছে নিয়ে আপনি সহকারীকেও খুলতে পারেন।

    অ্যান্ড্রয়েড জেটপ্যাক

    অ্যান্ড্রয়েড জেটপ্যাক উপাদান, সরঞ্জাম এবং গাইডেন্সের সাথে অ্যান্ড্রয়েড বিকাশকে ত্বরান্বিত করতে সহায়তা করে যা পুনরাবৃত্তিমূলক কাজগুলি দূর করে এবং আপনাকে আরও দ্রুত এবং সহজেই উচ্চ-মানের, পরীক্ষামূলক অ্যাপ্লিকেশনগুলি তৈরি করতে সক্ষম করে। অ্যান্ড্রয়েড স্টুডিওতে জেটপ্যাককে সমর্থন করার জন্য নিম্নলিখিত আপডেটগুলি অন্তর্ভুক্ত রয়েছে। আরও তথ্যের জন্য, জেটপ্যাক ডকুমেন্টেশন দেখুন।

    নতুন নেভিগেশন সম্পাদক আপনার অ্যাপ্লিকেশনটির নেভিগেশন কাঠামো তৈরির জন্য একটি গ্রাফিকাল ভিউ সরবরাহ করতে অ্যান্ড্রয়েড জেটপ্যাকের নেভিগেশন উপাদানগুলির সাথে সংহত করে। নেভিগেশন সম্পাদক অ্যাপ্লিকেশন গন্তব্যগুলির মধ্যে নেভিগেশনের নকশা এবং প্রয়োগকে সহজতর করে।

    অ্যান্ড্রয়েড স্টুডিও 3.2 -এ, নেভিগেশন সম্পাদক একটি পরীক্ষামূলক বৈশিষ্ট্য। নেভিগেশন সম্পাদক সক্ষম করতে, ফাইল> সেটিংস (ম্যাকের উপর অ্যান্ড্রয়েড স্টুডিও> পছন্দসমূহ ) ক্লিক করুন, বাম ফলকের পরীক্ষামূলক বিভাগটি নির্বাচন করুন, নেভিগেশন সম্পাদক সক্ষম করার পাশের বাক্সটি দেখুন এবং অ্যান্ড্রয়েড স্টুডিও পুনরায় চালু করুন।

    আরও জানতে, নেভিগেশন সম্পাদক ডকুমেন্টেশন পড়ুন।

    অ্যান্ড্রয়েডএক্স মাইগ্রেশন

    জেটপ্যাকের অংশ হিসাবে, আমরা অ্যান্ড্রয়েড সমর্থন লাইব্রেরিগুলিকে androidx নেমস্পেস ব্যবহার করে একটি নতুন অ্যান্ড্রয়েড এক্সটেনশন লাইব্রেরিতে স্থানান্তরিত করছি। আরও তথ্যের জন্য, অ্যান্ড্রয়েডএক্স ওভারভিউ দেখুন।

    অ্যান্ড্রয়েড স্টুডিও 3.2 আপনাকে নতুন মাইগ্রেশন বৈশিষ্ট্য সহ এই প্রক্রিয়াটির মাধ্যমে আপনাকে সহায়তা করে।

    অ্যান্ড্রয়েডএক্সে একটি বিদ্যমান প্রকল্প স্থানান্তর করতে, রিফ্যাক্টর> অ্যান্ড্রয়েডএক্সে স্থানান্তরিত করুন । আপনার যদি এমন কোনও ম্যাভেন নির্ভরতা থাকে যা অ্যান্ড্রয়েডএক্স নেমস্পেসে স্থানান্তরিত না করে থাকে তবে অ্যান্ড্রয়েড স্টুডিও বিল্ড সিস্টেমটিও সেই প্রকল্পের নির্ভরতাগুলিকে স্বয়ংক্রিয়ভাবে রূপান্তর করে।

    অ্যান্ড্রয়েড গ্রেডল প্লাগইন নিম্নলিখিত গ্লোবাল ফ্ল্যাগগুলি সরবরাহ করে যা আপনি আপনার gradle.properties ফাইলগুলিতে সেট করতে পারেন:

    • android.useAndroidX : যখন true সেট করা হয় তখন এই পতাকাটি নির্দেশ করে যে আপনি এখন থেকে অ্যান্ড্রয়েডএক্স ব্যবহার শুরু করতে চান। যদি পতাকাটি অনুপস্থিত থাকে তবে অ্যান্ড্রয়েড স্টুডিও এমন আচরণ করে যেন পতাকাটি false সেট করা আছে।
    • android.enableJetifier : যখন true সেট করা হয়, এই পতাকাটি নির্দেশ করে যে আপনি বিদ্যমান তৃতীয় পক্ষের লাইব্রেরিগুলিকে স্বয়ংক্রিয়ভাবে রূপান্তর করতে (অ্যান্ড্রয়েড গ্রেডল প্লাগইন থেকে) সরঞ্জাম সমর্থন রাখতে চান যেন সেগুলি অ্যান্ড্রয়েডএক্সের জন্য লেখা হয়েছিল। যদি পতাকাটি অনুপস্থিত থাকে তবে অ্যান্ড্রয়েড স্টুডিও এমন আচরণ করে যেন পতাকাটি false সেট করা আছে।

    আপনি যখন অ্যান্ড্রয়েডএক্স কমান্ডে মাইগ্রেট ব্যবহার করেন তখন উভয় পতাকা true সেট করা থাকে।

    আপনি যদি অবিলম্বে অ্যান্ড্রয়েডএক্স লাইব্রেরি ব্যবহার শুরু করতে চান এবং বিদ্যমান তৃতীয় পক্ষের লাইব্রেরিগুলিকে রূপান্তর করার দরকার নেই, আপনি android.useAndroidX এবংড্রয়েডএক্স পতাকাটি true এবং android.enableJetifier পতাকাটিকে false হিসাবে সেট করতে পারেন।

    অ্যান্ড্রয়েড অ্যাপ বান্ডেল

    অ্যান্ড্রয়েড অ্যাপ্লিকেশন বান্ডিল একটি নতুন আপলোড ফর্ম্যাট যা আপনার অ্যাপের সমস্ত সংকলিত কোড এবং সংস্থান অন্তর্ভুক্ত করে তবে এপিকে প্রজন্মকে এবং গুগল প্লে স্টোরটিতে স্বাক্ষর করে।

    গুগল প্লে এর নতুন অ্যাপ্লিকেশন পরিবেশন মডেল তারপরে প্রতিটি ব্যবহারকারীর ডিভাইস কনফিগারেশনের জন্য অপ্টিমাইজড এপিকে উত্পন্ন এবং পরিবেশন করতে আপনার অ্যাপ্লিকেশন বান্ডিল ব্যবহার করে, তাই প্রতিটি ব্যবহারকারী আপনার অ্যাপ্লিকেশনটি চালানোর জন্য প্রয়োজনীয় কোড এবং সংস্থানগুলি কেবল ডাউনলোড করে। আপনার আর একাধিক এপিকে তৈরি, সাইন ইন এবং পরিচালনা করার দরকার নেই এবং ব্যবহারকারীরা আরও ছোট, আরও অনুকূলিত ডাউনলোডগুলি পান।

    অতিরিক্তভাবে, আপনি আপনার অ্যাপ্লিকেশন প্রকল্পে বৈশিষ্ট্য মডিউলগুলি যুক্ত করতে পারেন এবং সেগুলি আপনার অ্যাপ্লিকেশন বান্ডেলে অন্তর্ভুক্ত করতে পারেন। আপনার ব্যবহারকারীরা তারপরে চাহিদা অনুযায়ী আপনার অ্যাপ্লিকেশনটির বৈশিষ্ট্যগুলি ডাউনলোড এবং ইনস্টল করতে পারেন।

    একটি বান্ডিল তৈরি করতে, বিল্ড> বিল্ড বান্ডিল (গুলি) / এপিক (গুলি)> বিল্ড বান্ডিল (গুলি) চয়ন করুন।

    অ্যান্ড্রয়েড অ্যাপ্লিকেশন বান্ডিল তৈরি এবং বিশ্লেষণের জন্য নির্দেশাবলী সহ আরও তথ্যের জন্য, অ্যান্ড্রয়েড অ্যাপ্লিকেশন বান্ডিল দেখুন।

    লেআউট সম্পাদকের নমুনা ডেটা

    অনেক অ্যান্ড্রয়েড লেআউটে রানটাইম ডেটা রয়েছে যা অ্যাপ্লিকেশন বিকাশের নকশার পর্যায়ে কোনও বিন্যাসের চেহারা এবং অনুভূতিটি কল্পনা করা কঠিন করে তুলতে পারে। আপনি এখন সহজেই নমুনা ডেটাতে ভরা লেআউট সম্পাদকটিতে আপনার দৃশ্যের একটি পূর্বরূপ দেখতে পারেন। আপনি যখন একটি ভিউ যুক্ত করেন, একটি বোতাম ডিজাইন উইন্ডোতে দৃশ্যের নীচে উপস্থিত হয়। ডিজাইন-টাইম ভিউ বৈশিষ্ট্যগুলি সেট করতে এই বোতামটি ক্লিক করুন। আপনি বিভিন্ন নমুনা ডেটা টেম্পলেটগুলি থেকে চয়ন করতে পারেন এবং ভিউটি পপুলেট করার জন্য নমুনা আইটেমগুলির সংখ্যা নির্দিষ্ট করতে পারেন।

    নমুনা ডেটা ব্যবহার করার চেষ্টা করতে, একটি নতুন বিন্যাসে একটি RecyclerView যুক্ত করুন, ডিজাইন-সময় বৈশিষ্ট্য বোতামটি ক্লিক করুন দৃশ্যের নীচে, এবং নমুনা ডেটা টেম্পলেটগুলির ক্যারোসেল থেকে একটি নির্বাচন চয়ন করুন।

    স্লাইস

    স্লাইসগুলি অ্যান্ড্রয়েডের অন্যান্য ব্যবহারকারী ইন্টারফেস পৃষ্ঠগুলিতে আপনার অ্যাপের কার্যকারিতার অংশগুলি এম্বেড করার জন্য একটি নতুন উপায় সরবরাহ করে। উদাহরণস্বরূপ, স্লাইসগুলি গুগল অনুসন্ধানের পরামর্শগুলিতে অ্যাপের কার্যকারিতা এবং সামগ্রী প্রদর্শন করা সম্ভব করে তোলে।

    অ্যান্ড্রয়েড স্টুডিও 3.2 এর একটি অন্তর্নির্মিত টেম্পলেট রয়েছে যাতে আপনাকে নতুন স্লাইস সরবরাহকারী এপিআইগুলির সাথে আপনার অ্যাপটি প্রসারিত করতে সহায়তা করার জন্য, পাশাপাশি নতুন লিন্ট চেকগুলি নিশ্চিত করার জন্য যে আপনি স্লাইসগুলি তৈরি করার সময় সেরা অনুশীলনগুলি অনুসরণ করছেন তা নিশ্চিত করতে।

    কোনও প্রকল্প ফোল্ডারে ডান ক্লিক করুন এবং নতুন> অন্যান্য> স্লাইস সরবরাহকারী চয়ন করতে শুরু করতে।

    আপনার স্লাইস ইন্টারঅ্যাকশনগুলি কীভাবে পরীক্ষা করতে হয় তা সহ আরও জানতে, স্লাইসগুলি শুরু করা গাইডটি পড়ুন।

    কোটলিন 1.2.61

    অ্যান্ড্রয়েড স্টুডিও 3.2 বান্ডিলস কোটলিন 1.2.61, এবং নতুন অ্যান্ড্রয়েড এসডিকে কোটলিনের সাথে আরও ভাল সংহত করেছে। আরও তথ্যের জন্য, অ্যান্ড্রয়েড বিকাশকারীদের ব্লগ দেখুন।

    ইন্টেলিজ আইডিয়া 2018.1.6

    কোর অ্যান্ড্রয়েড স্টুডিও আইডিই 2018.1.6 রিলিজের মাধ্যমে ইন্টেলিজ আইডিয়া থেকে উন্নতির সাথে আপডেট করা হয়েছে।

    অ্যান্ড্রয়েড প্রোফাইলার

    অ্যান্ড্রয়েড স্টুডিও 3.2 এ নিম্নলিখিত নতুন অ্যান্ড্রয়েড প্রোফাইলার বৈশিষ্ট্যগুলি ব্যবহার করে দেখুন।

    সেশন

    আপনি এখন পুনর্বিবেচনা করতে এবং পরে পরিদর্শন করতে সেশন হিসাবে প্রোফাইলার ডেটা সংরক্ষণ করতে পারেন। আপনি আইডিই পুনরায় চালু না করা পর্যন্ত প্রোফাইলার আপনার সেশনের ডেটা রাখে।

    আপনি যখন কোনও পদ্ধতি ট্রেস রেকর্ড করেন বা একটি হিপ ডাম্প ক্যাপচার করেন , আইডিই বর্তমান সেশনে পৃথক এন্ট্রি হিসাবে সেই ডেটা (আপনার অ্যাপের নেটওয়ার্ক ক্রিয়াকলাপের সাথে) যুক্ত করে এবং আপনি সহজেই ডেটা তুলনা করতে রেকর্ডিংয়ের মধ্যে পিছনে পিছনে স্যুইচ করতে পারেন।

    সিস্টেম ট্রেস

    সিপিইউ প্রোফাইলারে , আপনার ডিভাইসের সিস্টেম সিপিইউ এবং থ্রেড ক্রিয়াকলাপ পরিদর্শন করতে নতুন সিস্টেম ট্রেস কনফিগারেশন নির্বাচন করুন। এই ট্রেস কনফিগারেশনটি systrace উপর নির্মিত এবং এটি ইউআই জ্যাঙ্কের মতো সিস্টেম-স্তরের সমস্যাগুলির তদন্তের জন্য দরকারী।

    এই ট্রেস কনফিগারেশনটি ব্যবহার করার সময়, আপনি Trace ক্লাসের সাথে নেটিভ ট্রেসিং এপিআই বা আপনার জাভা কোডের সাথে আপনার সি/সি ++ কোডটি উপকরণ দিয়ে প্রোফাইলার টাইমলাইনে গুরুত্বপূর্ণ কোড রুটিনগুলি দৃশ্যত চিহ্নিত করতে পারেন।

    মেমরি প্রোফাইলারে জেএনআই রেফারেন্সগুলি পরিদর্শন করুন

    আপনি যদি অ্যান্ড্রয়েড 8.0 (এপিআই স্তর 26) বা উচ্চতর চালিত কোনও ডিভাইসে আপনার অ্যাপ্লিকেশন স্থাপন করেন তবে আপনি এখন মেমরি প্রোফাইলার ব্যবহার করে আপনার অ্যাপের জেএনআই কোডের জন্য মেমরি বরাদ্দগুলি পরিদর্শন করতে পারেন।

    আপনার অ্যাপ্লিকেশন চলাকালীন, আপনি ক্লাস তালিকার উপরে ড্রপ-ডাউন মেনু থেকে জেএনআই হিপটি পরিদর্শন করতে এবং নির্বাচন করতে চান এমন টাইমলাইনের একটি অংশ নির্বাচন করুন, নীচে দেখানো হয়েছে। তারপরে আপনি সাধারণত হিপে অবজেক্টগুলি পরিদর্শন করতে পারেন কারণ আপনি সাধারণত যে জেএনআই রেফারেন্সগুলি বরাদ্দ করা হয়েছে এবং আপনার কোডে প্রকাশিত হয়েছে তা দেখতে বরাদ্দ কল স্ট্যাক ট্যাবে অবজেক্টগুলিকে ডাবল-ক্লিক করুন।

    আমদানি, রফতানি এবং মেমরি হিপ ডাম্প ফাইলগুলি পরিদর্শন করুন

    আপনি এখন মেমরি প্রোফাইলার দিয়ে তৈরি .hprof মেমরি হিপ ডাম্প ফাইলগুলি আমদানি, রফতানি করতে এবং পরিদর্শন করতে পারেন।

    নতুন প্রোফাইলার সেশন শুরু করুন ক্লিক করে আপনার .hprof ফাইলটি আমদানি করুন প্রোফাইলারের সেশনস ফলকে এবং তারপরে ফাইল থেকে লোড নির্বাচন করা। তারপরে আপনি মেমরি প্রোফাইলারে এর ডেটা পরিদর্শন করতে পারেন যেমন আপনি অন্য কোনও হিপ ডাম্প করবেন।

    পরে পর্যালোচনা করতে হিপ ডাম্প ডেটা সংরক্ষণ করতে, সেশনস ফলকে হিপ ডাম্প এন্ট্রিটির ডানদিকে রফতানি হিপ ডাম্প বোতামটি ব্যবহার করুন। রফতানি হিসাবে সংলাপ হিসাবে প্রদর্শিত হয়, ফাইলটি .hprof ফাইলের নাম এক্সটেনশন দিয়ে সংরক্ষণ করুন।

    অ্যাপ স্টার্টআপের সময় সিপিইউ ক্রিয়াকলাপ রেকর্ড করুন

    আপনি এখন আপনার অ্যাপের স্টার্টআপের সময় সিপিইউ ক্রিয়াকলাপটি রেকর্ড করতে পারেন, নিম্নরূপ:

    1. মূল মেনু থেকে রান> কনফিগারেশন সম্পাদনা নির্বাচন করুন।
    2. আপনার পছন্দসই রান কনফিগারেশনের প্রোফাইলিং ট্যাবের অধীনে, স্টার্টআপে কোনও পদ্ধতি ট্রেস রেকর্ডিং শুরু করতে পাশের বাক্সটি চেক করুন।
    3. ড্রপডাউন মেনু থেকে ব্যবহারের জন্য একটি সিপিইউ রেকর্ডিং কনফিগারেশন নির্বাচন করুন।
    4. আপনার অ্যাপ্লিকেশনটি অ্যান্ড্রয়েড 8.0 (এপিআই স্তর 26) বা উচ্চতর রান> প্রোফাইল নির্বাচন করে চালিত কোনও ডিভাইসে স্থাপন করুন।
    সিপিইউ ট্রেস রফতানি করুন

    আপনি সিপিইউ প্রোফাইলারের সাথে সিপিইউ ক্রিয়াকলাপ রেকর্ড করার পরে, আপনি অন্যদের সাথে ভাগ করে নেওয়ার জন্য বা পরে পরিদর্শন করার জন্য একটি .trace ফাইল হিসাবে ডেটা রফতানি করতে পারেন।

    আপনি সিপিইউ ক্রিয়াকলাপ রেকর্ড করার পরে একটি ট্রেস রফতানি করতে, নিম্নলিখিতগুলি করুন:

    1. আপনি সিপিইউ টাইমলাইন থেকে রফতানি করতে চান এমন রেকর্ডিংয়ে ডান ক্লিক করুন।
    2. ড্রপডাউন মেনু থেকে রফতানি ট্রেস নির্বাচন করুন।
    3. আপনি যেখানে ফাইলটি সংরক্ষণ করতে চান সেখানে নেভিগেট করুন এবং সংরক্ষণ ক্লিক করুন।
    সিপিইউ ট্রেস ফাইলগুলি আমদানি করুন এবং পরিদর্শন করুন

    আপনি এখন ডিবাগ এপিআই বা সিপিইউ প্রোফাইলারের সাহায্যে তৈরি করা ফাইলগুলি আমদানি করতে এবং .trace করতে পারেন। (বর্তমানে, আপনি সিস্টেম ট্রেস রেকর্ডিং আমদানি করতে পারবেন না))

    নতুন প্রোফাইলার সেশন শুরু করুন ক্লিক করে আপনার ট্রেস ফাইলটি আমদানি করুন প্রোফাইলারের সেশনস ফলকে এবং তারপরে ফাইল থেকে লোড নির্বাচন করা। তারপরে আপনি নিম্নলিখিত ব্যতিক্রমগুলি সহ আপনি সাধারণত কীভাবে চান তার অনুরূপ সিপিইউ প্রোফাইলারে এর ডেটা পরিদর্শন করতে পারেন:

    • সিপিইউ ক্রিয়াকলাপ সিপিইউ টাইমলাইনের সাথে প্রতিনিধিত্ব করা হয় না।
    • থ্রেড ক্রিয়াকলাপের সময়রেখাটি কেবলমাত্র যেখানে প্রতিটি থ্রেডের জন্য ট্রেস ডেটা উপলব্ধ এবং প্রকৃত থ্রেডের রাজ্যগুলি নয় (যেমন দৌড়াতে, অপেক্ষা করা বা ঘুমানো) কেবল নির্দেশ করে।
    ডিবাগ এপিআই ব্যবহার করে সিপিইউ ক্রিয়াকলাপ রেকর্ড করুন

    আপনি এখন ডিবাগ এপিআই দিয়ে আপনার অ্যাপ্লিকেশনটি উপকরণ দিয়ে সিপিইউ প্রোফাইলারে সিপিইউ ক্রিয়াকলাপ রেকর্ডিং শুরু এবং বন্ধ করতে পারেন। আপনি আপনার অ্যাপ্লিকেশনটিকে কোনও ডিভাইসে স্থাপন করার পরে, যখন আপনার অ্যাপ্লিকেশনটি startMethodTracing(String tracePath) কল করে তখন প্রোফাইলার স্বয়ংক্রিয়ভাবে সিপিইউ ক্রিয়াকলাপটি রেকর্ডিং শুরু করে এবং যখন আপনার অ্যাপ্লিকেশনটি stopMethodTracing() কল করে তখন প্রোফাইলার রেকর্ডিং বন্ধ করে দেয়। এই এপিআই ব্যবহার করে ট্রিগার করা সিপিইউ ক্রিয়াকলাপটি রেকর্ড করার সময়, সিপিইউ প্রোফাইলারটি নির্বাচিত সিপিইউ রেকর্ডিং কনফিগারেশন হিসাবে ডিবাগ এপিআই দেখায়।

    শক্তি প্রোফাইলার

    এনার্জি প্রোফাইলার আপনার অ্যাপ্লিকেশনটির আনুমানিক শক্তি ব্যবহারের দৃশ্যের পাশাপাশি সিস্টেম ইভেন্টগুলি যা শক্তি ব্যবহারকে প্রভাবিত করে যেমন ওয়াকলকস, অ্যালার্ম এবং চাকরিগুলি প্রদর্শন করে।

    আপনি যখন সংযুক্ত ডিভাইস বা অ্যান্ড্রয়েড এমুলেটর অ্যান্ড্রয়েড 8.0 (এপিআই 26) বা উচ্চতর চলমান আপনার অ্যাপটি চালানোর সময় প্রোফাইলার উইন্ডোর নীচে একটি নতুন সারি হিসাবে উপস্থিত হয়।

    শক্তি প্রোফাইলার ভিউ সর্বাধিক করতে শক্তি সারি ক্লিক করুন। সিপিইউ, নেটওয়ার্ক এবং অবস্থান (জিপিএস) সংস্থানগুলির পাশাপাশি প্রাসঙ্গিক সিস্টেম ইভেন্টগুলির দ্বারা শক্তি ব্যবহারের একটি ভাঙ্গন দেখতে টাইমলাইনে একটি বারের উপরে আপনার মাউস পয়েন্টারটি রাখুন।

    শক্তি ব্যবহারকে প্রভাবিত করে এমন সিস্টেম ইভেন্টগুলি শক্তি টাইমলাইনের নীচে সিস্টেমের টাইমলাইনে নির্দেশিত হয়। নির্দিষ্ট সময়সীমার মধ্যে সিস্টেম ইভেন্টগুলির বিবরণ ইভেন্ট ফলকে প্রদর্শিত হয় যখন আপনি শক্তি সময়রেখায় একটি সময়সীমা নির্বাচন করেন।

    কল স্ট্যাক এবং একটি সিস্টেম ইভেন্টের জন্য অন্যান্য বিশদ যেমন ওয়াকলকের মতো দেখতে, ইভেন্ট ফলকে এটি নির্বাচন করুন। কোনও সিস্টেম ইভেন্টের জন্য দায়ী কোডে যেতে, কল স্ট্যাকের প্রবেশের ডাবল ক্লিক করুন।

    লিন্ট চেকিং

    অ্যান্ড্রয়েড স্টুডিও 3.2 লিন্ট চেকিংয়ের জন্য অনেকগুলি নতুন এবং উন্নত বৈশিষ্ট্য অন্তর্ভুক্ত করে।

    নতুন লিন্ট চেকগুলি আপনাকে সম্ভাব্য ব্যবহারযোগ্যতার সমস্যাগুলি সম্পর্কে সতর্কতা থেকে শুরু করে সম্ভাব্য সুরক্ষা দুর্বলতা সম্পর্কিত উচ্চ-অগ্রাধিকারের ত্রুটিগুলি পর্যন্ত সাধারণ কোড সমস্যাগুলি সন্ধান এবং সনাক্ত করতে সহায়তা করে।

    জাভা/কোটলিন আন্তঃব্যবহারযোগ্যতার জন্য লিন্ট চেক

    আপনার জাভা কোডটি আপনার কোটলিন কোডের সাথে ভালভাবে আন্তঃসংযোগ করেছে তা নিশ্চিত করার জন্য, নতুন লিন্ট চেকগুলি কোটলিন ইন্টারপ গাইডে বর্ণিত সেরা অনুশীলনগুলি প্রয়োগ করে। এই চেকগুলির উদাহরণগুলির মধ্যে রয়েছে নালিবিলিটি টীকাগুলির উপস্থিতি, কোটলিন হার্ড কীওয়ার্ডগুলির ব্যবহার এবং ল্যাম্বদা প্যারামিটারগুলি সর্বশেষে স্থাপন করা।

    এই চেকগুলি সক্ষম করতে, সেটিংস ডায়ালগটি খোলার জন্য ফাইল> সেটিংস ( অ্যান্ড্রয়েড স্টুডিও> ম্যাকের পছন্দগুলি ) ক্লিক করুন, সম্পাদক> পরিদর্শন> অ্যান্ড্রয়েড> লিন্ট> ইন্টারঅ্যাপেরিবিলিটি> কোটলিন আন্তঃব্যবহারযোগ্যতা বিভাগে নেভিগেট করুন এবং আপনি সক্ষম করতে চান এমন নিয়মগুলি নির্বাচন করুন।

    কমান্ড-লাইন বিল্ডগুলির জন্য এই চেকগুলি সক্ষম করতে, নিম্নলিখিতগুলি আপনার build.gradle যুক্ত করুন grad গ্র্যাডল ফাইল:

            android {
                lintOptions {
                    check 'Interoperability'
                }
            }
            
          
    টুকরা জন্য লিন্ট চেক

    স্লাইসগুলির জন্য নতুন লিন্ট চেকগুলি আপনি সঠিকভাবে স্লাইসগুলি তৈরি করছেন তা নিশ্চিত করতে সহায়তা করে। উদাহরণস্বরূপ, লিন্ট চেকগুলি আপনাকে সতর্ক করে দেয় যদি আপনি কোনও টুকরোতে প্রাথমিক ক্রিয়া বরাদ্দ না করে থাকেন।

    নতুন গ্রেডল টার্গেট

    সোর্স কোডে সরাসরি লিন্ট চেক দ্বারা প্রস্তাবিত সমস্ত নিরাপদ ফিক্সগুলি প্রয়োগ করতে নতুন lintFix গ্রেডল টাস্কটি ব্যবহার করুন। একটি লিন্ট চেকের উদাহরণ যা প্রয়োগের জন্য নিরাপদ ফিক্সের পরামর্শ দেয় তা হ'ল SyntheticAccessor

    মেটাডেটা আপডেট

    অ্যান্ড্রয়েড 9 (এপিআই স্তর 28) এর সাথে কাজ করার জন্য লিন্ট চেকগুলির জন্য বিভিন্ন মেটাডেটা যেমন পরিষেবা কাস্ট চেক, আপডেট করা হয়েছে।

    সতর্কতা যদি কোনও নতুন বৈকল্পিক লিন্ট চালানো হয়

    লিন্ট এখন রেকর্ড করে কোন বৈকল্পিক এবং সংস্করণ একটি বেসলাইন দিয়ে রেকর্ড করা হয়েছে, এবং লিন্ট আপনাকে সতর্ক করে দেয় যদি আপনি এটি বেসলাইনটি তৈরি করা হয়েছিল তার চেয়ে আলাদা বৈকল্পিকের উপর এটি চালনা করেন।

    বিদ্যমান লিন্ট চেকের উন্নতি

    অ্যান্ড্রয়েড স্টুডিও 3.2 এর মধ্যে বিদ্যমান লিন্ট চেকগুলিতে অনেক উন্নতি অন্তর্ভুক্ত রয়েছে। উদাহরণস্বরূপ, রিসোর্স চক্র চেকগুলি এখন অতিরিক্ত সংস্থান প্রকারের ক্ষেত্রে প্রযোজ্য এবং অনুবাদ ডিটেক্টর সম্পাদকে, ফ্লাইতে অনুপস্থিত অনুবাদগুলি খুঁজে পেতে পারে।

    ইস্যু আইডি আরও আবিষ্কারযোগ্য

    ইস্যু আইডিগুলি এখন আরও বেশি জায়গায় দেখানো হয়েছে, পরিদর্শন ফলাফল উইন্ডো সহ। এটি আপনার পক্ষে build.gradle lintOptions মাধ্যমে নির্দিষ্ট চেকগুলি সক্ষম বা অক্ষম করার জন্য প্রয়োজনীয় তথ্যগুলি সন্ধান করা আপনার পক্ষে সহজ করে তোলে।

    আরও তথ্যের জন্য, গ্রেডের সাথে লিন্ট বিকল্পগুলি কনফিগার করুন।

    ডেটা বাইন্ডিং ভি 2

    ডেটা বাইন্ডিং ভি 2 এখন ডিফল্টরূপে সক্ষম করা হয়েছে এবং ভি 1 এর সাথে সামঞ্জস্যপূর্ণ। এর অর্থ হ'ল, যদি আপনার কাছে ভি 1 এর সাথে সংকলিত লাইব্রেরির নির্ভরতা থাকে তবে আপনি ডেটা বাইন্ডিং ভি 2 ব্যবহার করে প্রকল্পগুলির সাথে সেগুলি ব্যবহার করতে পারেন। তবে নোট করুন যে ভি 1 ব্যবহার করে প্রকল্পগুলি ভি 2 এর সাথে সংকলিত নির্ভরতাগুলি গ্রাস করতে পারে না।

    D8 desugaring

    অ্যান্ড্রয়েড স্টুডিও ৩.১ -এ, আমরা সামগ্রিক বিল্ড সময়কে হ্রাস করে একটি পরীক্ষামূলক বৈশিষ্ট্য হিসাবে ডি 8 সরঞ্জামে ডিসুগারিং পদক্ষেপটি সংহত করেছি। অ্যান্ড্রয়েড স্টুডিওতে 3.2 -এ, ডি 8 এর সাথে ডেসুগারিং ডিফল্টরূপে চালু হয়।

    নতুন কোড সঙ্কুচিত

    আর 8 হ'ল কোড সঙ্কুচিত এবং অবহেলা করার জন্য একটি নতুন সরঞ্জাম যা অগ্রগতি প্রতিস্থাপন করে। আপনি আপনার প্রকল্পের gradle.properties ফাইলগুলিতে নিম্নলিখিতগুলি অন্তর্ভুক্ত করে আর 8 এর পূর্বরূপ সংস্করণ ব্যবহার শুরু করতে পারেন:

          android.enableR8 = true
        

    মাল্টি-এপিক্সের জন্য ডিফল্ট এবিস পরিবর্তন করা হয়েছে

    একাধিক এপিকে তৈরি করার সময় যা প্রতিটি আলাদা এবিআই লক্ষ্য করে, প্লাগইনটি আর ডিফল্টরূপে নিম্নলিখিত এবিআইগুলির জন্য এপিকে তৈরি করে না: mips , mips64 এবং armeabi

    আপনি যদি এই এবিসকে লক্ষ্য করে এমন APKs তৈরি করতে চান তবে আপনাকে অবশ্যই এনডিকে আর 16 বি বা তার চেয়ে কম ব্যবহার করতে হবে এবং নীচে দেখানো হিসাবে আপনার build.gradle ফাইলটিতে এবিস নির্দিষ্ট করতে হবে:

        splits {
            abi {
                include 'armeabi', 'mips', 'mips64'
                ...
            }
        }
        
        splits {
            abi {
                include("armeabi", "mips", "mips64")
                ...
            }
        }
        

    দ্রষ্টব্য: এই আচরণ পরিবর্তনটি অ্যান্ড্রয়েড স্টুডিও 3.1 আরসি 1 এবং উচ্চতর অন্তর্ভুক্ত।

    সিএমকে বিল্ড ফাইলগুলির জন্য উন্নত সম্পাদক বৈশিষ্ট্যগুলি

    আপনি যদি আপনার প্রকল্পে সি এবং সি ++ কোড যুক্ত করতে সিএমকে ব্যবহার করেন তবে অ্যান্ড্রয়েড স্টুডিওতে এখন আপনার সিএমকে বিল্ড স্ক্রিপ্টগুলি সম্পাদনা করতে সহায়তা করার জন্য উন্নত সম্পাদক বৈশিষ্ট্যগুলি অন্তর্ভুক্ত রয়েছে যেমন নিম্নলিখিত:

    • সিনট্যাক্স হাইলাইটিং এবং কোড সমাপ্তি: আইডিই এখন সাধারণ সিএমইকে কমান্ডের জন্য কোড সমাপ্তির হাইলাইট করে এবং পরামর্শ দেয়। অতিরিক্তভাবে, আপনি কোনও ফাইল কন্ট্রোল কী (ম্যাকের কমান্ড) টিপতে ক্লিক করে নেভিগেট করতে পারেন।
    • কোড রিফর্ম্যাটিং: আপনি এখন আপনার সিএমকে বিল্ড স্ক্রিপ্টগুলিতে কোড শৈলী প্রয়োগ করতে ইন্টেলিজের কোড রিফর্ম্যাট বিকল্পটি ব্যবহার করতে পারেন।
    • নিরাপদ রিফ্যাক্টরিং: আইডিইর অন্তর্নির্মিত রিফ্যাক্টরিং সরঞ্জামগুলি এখন আপনি আপনার সিএমকে বিল্ড স্ক্রিপ্টগুলিতে উল্লেখ করা ফাইলগুলির নাম পরিবর্তন বা মুছে ফেলছেন কিনা তাও পরীক্ষা করে দেখুন।

    অ্যান্ড্রয়েড স্টুডিওর পূর্ববর্তী সংস্করণগুলিতে প্রকল্প উইন্ডোটি ব্যবহার করার সময়, আপনি কোনও স্থানীয় প্রকল্প থেকে তৈরি লাইব্রেরির সাথে সম্পর্কিত কেবল শিরোনাম ফাইলগুলি নেভিগেট করতে এবং পরিদর্শন করতে পারেন। এই রিলিজের সাহায্যে আপনি এখন আপনার অ্যাপ্লিকেশন প্রকল্পে আমদানি করা বাহ্যিক সি/সি ++ লাইব্রেরি নির্ভরতা সহ অন্তর্ভুক্ত শিরোনাম ফাইলগুলি দেখতে এবং পরিদর্শন করতে পারেন।

    আপনি যদি ইতিমধ্যে আপনার প্রকল্পে সি/সি ++ কোড এবং গ্রন্থাগারগুলি অন্তর্ভুক্ত করেন তবে মূল মেনু থেকে ভিউ> সরঞ্জাম উইন্ডোজ> প্রকল্পটি নির্বাচন করে আইডিইর বাম দিকে প্রকল্প উইন্ডোটি খুলুন এবং ড্রপ-ডাউন মেনু থেকে অ্যান্ড্রয়েড নির্বাচন করুন। সিপিপি ডিরেক্টরিতে, আপনার অ্যাপ্লিকেশন প্রকল্পের আওতার মধ্যে থাকা সমস্ত শিরোনামগুলি নীচে দেখানো হিসাবে আপনার স্থানীয় সি/সি ++ লাইব্রেরির নির্ভরতাগুলির জন্য অন্তর্ভুক্ত নোডের অধীনে সংগঠিত হয়েছে।

    নেটিভ মাল্টিডেক্স ডিফল্টরূপে সক্ষম

    অ্যান্ড্রয়েড স্টুডিওর পূর্ববর্তী সংস্করণগুলি অ্যান্ড্রয়েড এপিআই স্তর 21 বা ততোধিক চালিত কোনও ডিভাইসে কোনও অ্যাপ্লিকেশনটির ডিবাগ সংস্করণ স্থাপন করার সময় নেটিভ মাল্টিডেক্স সক্ষম করেছে। এখন, আপনি কোনও ডিভাইসে মোতায়েন করছেন বা রিলিজের জন্য একটি এপিকে তৈরি করছেন না কেন, গ্রেডের জন্য অ্যান্ড্রয়েড প্লাগইনটি সমস্ত মডিউলগুলির জন্য নেটিভ মাল্টিডেক্স সক্ষম করে যা minSdkVersion=21 বা তার বেশি সেট করে।

    এএপিটি 2 গুগলের মাভেন সংগ্রহস্থলে চলে গেছে

    অ্যান্ড্রয়েড স্টুডিও 3.2 দিয়ে শুরু করে, এএপিটি 2 (অ্যান্ড্রয়েড অ্যাসেট প্যাকেজিং সরঞ্জাম 2) এর উত্স হ'ল গুগলের মাভেন সংগ্রহস্থল।

    এএপিটি 2 ব্যবহার করতে, আপনার build.gradle ফাইলটিতে আপনার একটি google() নির্ভরতা রয়েছে তা নিশ্চিত করুন, যেমন এখানে দেখানো হয়েছে:

        buildscript {
            repositories {
                google() // here
                jcenter()
            }
            dependencies {
                classpath 'com.android.tools.build:gradle:3.2.0'
            }
        }
        allprojects {
            repositories {
                google() // and here
                jcenter()
            }
        }
        
        buildscript {
            repositories {
                google() // here
                jcenter()
            }
            dependencies {
                classpath("com.android.tools.build:gradle:3.2.0")
            }
        }
        allprojects {
            repositories {
                google() // and here
                jcenter()
            }
        }
        

    এএপিটি 2 এর নতুন সংস্করণটি উইন্ডোজে অ-এএসসিআইআই অক্ষরগুলির উন্নত হ্যান্ডলিং সহ অনেকগুলি সমস্যা সমাধান করে।

    চাহিদা উপর কনফিগারেশন অপসারণ

    চাহিদা পছন্দের কনফিগারটি অ্যান্ড্রয়েড স্টুডিও থেকে সরানো হয়েছে।

    অ্যান্ড্রয়েড স্টুডিও আর গ্রেডে --configure-on-demand যুক্তিটি পাস করে না।

    এডিবি সংযোগ সহকারী

    নতুন এডিবি সংযোগ সহকারী আপনাকে অ্যান্ড্রয়েড ডিবাগ ব্রিজ (এডিবি) সংযোগের মাধ্যমে একটি ডিভাইস সেট আপ এবং ব্যবহার করতে সহায়তা করার জন্য ধাপে ধাপে নির্দেশাবলী সরবরাহ করে।

    সহকারী শুরু করতে, সরঞ্জাম> সংযোগ সহকারী চয়ন করুন।

    এডিবি সংযোগ সহকারী সহকারী প্যানেলে একাধিক পৃষ্ঠাগুলিতে নির্দেশাবলী, ইন-কনটেক্সট নিয়ন্ত্রণ এবং সংযুক্ত ডিভাইসের একটি তালিকা সরবরাহ করে।

    এমুলেটর উন্নতি

    আপনি এখন অ্যান্ড্রয়েড এমুলেটরটিতে যে কোনও সময় কোনও এভিডি (অ্যান্ড্রয়েড ভার্চুয়াল ডিভাইস) এর স্ন্যাপশটগুলি সংরক্ষণ এবং লোড করতে পারেন, এটি পরীক্ষার জন্য একটি ইমুলেটেড ডিভাইসটিকে একটি পরিচিত অবস্থায় ফিরিয়ে দেওয়া দ্রুত এবং সহজ করে তোলে। আপনি যখন এভিডি ম্যানেজার ব্যবহার করে কোনও এভিডি সম্পাদনা করেন, আপনি এভিডি শুরু হওয়ার পরে কোন এভিডি স্ন্যাপশটটি লোড করতে পারেন তা নির্দিষ্ট করতে পারেন।

    এভিডি স্ন্যাপশটগুলি সংরক্ষণ, লোডিং এবং পরিচালনার জন্য নিয়ন্ত্রণগুলি এখন এমুলেটরের বর্ধিত নিয়ন্ত্রণ উইন্ডোতে স্ন্যাপশট ট্যাবে রয়েছে।

    বিশদ জন্য, স্ন্যাপশট দেখুন।

    এমুলেটরে কী নতুন এবং পরিবর্তিত হয়েছে সে সম্পর্কে অতিরিক্ত তথ্যের জন্য, এমুলেটর রিলিজ নোটগুলি দেখুন।

    3.1 (মার্চ 2018)

    অ্যান্ড্রয়েড স্টুডিও 3.1.0 একটি প্রধান প্রকাশ যা বিভিন্ন নতুন বৈশিষ্ট্য এবং উন্নতি অন্তর্ভুক্ত করে।

    3.1.4 (আগস্ট 2018)

    অ্যান্ড্রয়েড স্টুডিও 3.1 এর এই আপডেটটিতে নিম্নলিখিত পরিবর্তনগুলি এবং ফিক্সগুলি অন্তর্ভুক্ত রয়েছে:

    • বান্ডিলযুক্ত কোটলিন এখন সংস্করণ 1.2.50।
    • kotlin-stdlib-jdk* artifacts পরিবর্তে কোটলিন kotlin-stdlib-jre* আর্টিফ্যাক্টগুলির সাথে নতুন প্রকল্পগুলি তৈরি করা হয়েছে, যা অবমূল্যায়িত হয়।
    • প্রোগুয়ার্ড বিধিগুলির আর 8 পার্সিং উন্নত করা হয়েছে।
    • নিম্নলিখিত বাগগুলি ঠিক করা হয়েছে:
      • কোটলিন মেইন ক্লাস চালানোর চেষ্টা করা একটি ত্রুটি দিয়ে ব্যর্থ হয়েছে: "Error: Could not find or load main class..."
      • আর 8 নির্দিষ্ট অপ্টিমাইজেশন সম্পাদন করার সময় একটি অসীম লুপ প্রবেশ করেছে।
      • রান উইন্ডোতে পুনরায় ব্যর্থ ব্যর্থ টেস্ট কমান্ড ব্যবহার করে কখনও কখনও ভুলভাবে "কোনও পরীক্ষা পাওয়া যায় নি" বার্তাটি ফিরে আসে।
      • ডি 8 সঠিকভাবে invoke-virtual দৃষ্টান্তগুলি পরিচালনা করেনি, যা একটি VerifyError সাথে ক্র্যাশ ঘটায়: invoke-super/virtual can't be used on private method
      • ডেটা বাইন্ডিং সংকলকটি com.android.tools:annotations এর একটি পুরানো সংস্করণের উপর নির্ভর করে। সংকলকটি এখন উপলভ্য হলে বেস প্রকল্প থেকে সরঞ্জাম টীকাগুলি ব্যবহার করে।
      • প্রোফাইলারগুলি ব্যবহার করার সময় অ্যান্ড্রয়েড স্টুডিও খণ্ডের ট্রানজিশনের সময় ক্র্যাশ হয়েছিল।
      • একটি পাঠ্য বাক্সের সাথে কোনও লেআউট ডিবাগ করার সময় ডিবাগারটি ক্র্যাশ হয়েছিল।
      • ডি 8 বিশেষ অক্ষর সহ কিছু জিপ ফাইল পড়তে ব্যর্থ হয়েছিল।

    3.1.3 (জুন 2018)

    অ্যান্ড্রয়েড স্টুডিও 3.1 এর এই আপডেটটিতে নিম্নলিখিত বাগগুলির জন্য ফিক্সগুলি অন্তর্ভুক্ত রয়েছে:

    • আপনি লেআউট সম্পাদকটি ব্যবহার করার পরে মেমোরি ফাঁস অ্যান্ড্রয়েড স্টুডিওকে ধীর এবং প্রতিক্রিয়াহীন হয়ে উঠেছে। এই আপডেটে এই বেশিরভাগ সমস্যার জন্য ফিক্সগুলি অন্তর্ভুক্ত রয়েছে। আমরা অতিরিক্ত মেমরি ফাঁসকে সম্বোধন করতে শীঘ্রই আরও একটি আপডেট প্রকাশের ইচ্ছা করি।
    • ডি 8 দিয়ে নির্মিত কিছু অ্যাপ্লিকেশন কিছু ভেরিজন এলিপসিস ট্যাবলেটগুলিতে ক্র্যাশ হয়েছে।
    • ডি 8 দিয়ে নির্মিত অ্যাপ্লিকেশনগুলির ইনস্টলেশন অ্যান্ড্রয়েড 5.0 বা 5.1 (এপিআই স্তর 21 বা 22) চলমান ডিভাইসগুলিতে একটি INSTALL_FAILED_DEXOPT ত্রুটি সহ ব্যর্থ হয়েছে।
    • কিছু অ্যাপ্লিকেশন যা ওকেএইচটিটিপি লাইব্রেরি ব্যবহার করেছে এবং ডি 8 দিয়ে নির্মিত হয়েছিল অ্যান্ড্রয়েড 4.4 (এপিআই স্তর 19) চলমান ডিভাইসগুলিতে ক্র্যাশ হয়েছে।
    • অ্যান্ড্রয়েড স্টুডিও কখনও কখনও com.intellij.psi.jsp.JspElementType এর জন্য ক্লাস ইনিশিয়ালাইজেশন চলাকালীন একটি ProcessCanceledException দিয়ে শুরু করতে ব্যর্থ হয়।

    3.1.2 (এপ্রিল 2018)

    অ্যান্ড্রয়েড স্টুডিও 3.1 এর এই আপডেটটিতে নিম্নলিখিত বাগগুলির জন্য ফিক্সগুলি অন্তর্ভুক্ত রয়েছে:

    • কিছু ক্ষেত্রে, অ্যান্ড্রয়েড স্টুডিও প্রস্থানের সময় অনির্দিষ্টকালের জন্য ঝুলিয়ে রাখে।
    • উত্স সেটগুলির সাথে কনফিগার করা বিল্ডগুলি নিম্নলিখিত বার্তাটি দিয়ে ব্যর্থ হয়েছিল যখন তাত্ক্ষণিক রান সক্ষম করা হয়েছিল:

      "The SourceSet name is not recognized by the Android Gradle Plugin."

    • যখন তাত্ক্ষণিক রান সক্ষম করা হয়েছিল, রান কমান্ড দ্বারা ট্রিগার করা হলে নতুন কোটলিন প্রকল্পগুলির বিল্ডগুলি ব্যর্থ হয়েছিল।
    • build.gradle
    • নিম্নলিখিত ত্রুটি বার্তা সহ বিপুল সংখ্যক মডিউল বা বাহ্যিক নির্ভরতা সহ কিছু প্রকল্পে ডেক্সিংয়ের সময় বিল্ড ব্যর্থতাগুলি ঘটেছিল:

      "RejectedExecutionException: Thread limit exceeded replacing blocked worker"

    • ডি 8 মেইন ডেক্স তালিকার গণনা কিছু প্রতিফলিত আমন্ত্রণকে বিবেচনায় নিচ্ছিল না।

    এই আপডেটে এমন পরিবর্তনগুলিও অন্তর্ভুক্ত রয়েছে যা কিছু পরিস্থিতিতে গ্রেড থেকে লিন্ট চেকগুলি আরও দ্রুততর করে তোলে।

    3.1.1 (এপ্রিল 2018)

    অ্যান্ড্রয়েড স্টুডিও 3.1 এর এই আপডেটটিতে নিম্নলিখিত বাগগুলির জন্য ফিক্সগুলি অন্তর্ভুক্ত রয়েছে:

    • কিছু ক্ষেত্রে, অ্যান্ড্রয়েড স্টুডিও 3.0.০ এ তৈরি একটি প্রকল্প যখন অ্যান্ড্রয়েড স্টুডিও 3.1-এ প্রথমবারের জন্য খোলা হয়েছিল, তখন গ্রেড-অ্যাওয়ার মেক মেক টাস্কটি রান/ডিবাগ কনফিগারেশনে লঞ্চের অঞ্চল থেকে সরানো হয়েছিল। ফলাফলটি ছিল যে রান বা ডিবাগ বোতামটি ক্লিক করার সময় প্রকল্পগুলি তৈরি হয়নি, যার ফলে তাত্ক্ষণিক রান ব্যবহার করার সময় ভুল এপিকে এবং ক্র্যাশগুলি স্থাপনের মতো ব্যর্থতা দেখা দেয়।

      এই সমস্যাটি সমাধান করার জন্য, অ্যান্ড্রয়েড স্টুডিও 3.1.1 এই এন্ট্রিটি অনুপস্থিত প্রকল্পগুলির জন্য রান কনফিগারেশনে গ্রেডল-অ্যাওয়ার মেক টাস্ক যুক্ত করেছে। প্রকল্পটি লোড হওয়ার পরে প্রথম গ্রেডল সিঙ্কের পরে এই পরিবর্তনটি ঘটে।

    • অ্যাডভান্সড প্রোফাইলিং সক্ষম করা থাকলে একটি পাঠ্য বাক্সের সাথে একটি লেআউট ডিবাগ করার সময় ডিবাগারটি ক্র্যাশ হয়েছিল।
    • আপনি বিল্ড ভেরিয়েন্টগুলিতে ক্লিক করার পরে অ্যান্ড্রয়েড স্টুডিও হিমশীতল।
    • এআর (অ্যান্ড্রয়েড সংরক্ষণাগার) ফাইলগুলি একবার গ্রেডল সিঙ্ক প্রক্রিয়া চলাকালীন এবং একবার গ্রেডল বিল্ড প্রক্রিয়া চলাকালীন দু'বার বের করা হয়েছিল।
    • এসভিজি ফাইলগুলি থেকে আমদানি করা কিছু ভেক্টর ড্রইবলগুলি থেকে উপাদানগুলি অনুপস্থিত ছিল।
    • compile নির্ভরতা কনফিগারেশনের অবমূল্যায়ন সম্পর্কিত সতর্কতা implementation এবং api কনফিগারেশন সম্পর্কিত আরও ভাল গাইডেন্সের সাথে আপডেট করা হয়েছে। compile কনফিগারেশন ব্যবহার থেকে দূরে সরে যাওয়ার বিশদগুলির জন্য, নতুন নির্ভরতা কনফিগারেশনের জন্য ডকুমেন্টেশন দেখুন।

    কোডিং/আইডিই

    ইন্টেলিজ 2017.3.3

    কোর অ্যান্ড্রয়েড স্টুডিও আইডিই 2017.3.3 রিলিজের মাধ্যমে ইন্টেলিজ আইডিয়া থেকে উন্নতির সাথে আপডেট করা হয়েছে। উন্নতিগুলির মধ্যে রয়েছে সংগ্রহ এবং স্ট্রিংগুলির জন্য আরও ভাল নিয়ন্ত্রণ প্রবাহ বিশ্লেষণ, উন্নত নালিবিলিটি অনুমান, নতুন দ্রুত সংশোধন এবং আরও অনেক কিছু অন্তর্ভুক্ত।

    বিশদগুলির জন্য, জেটব্রাইনস ইন্টেলিজ আইডিয়া সংস্করণগুলির জন্য 2017.2 এবং 2017.3 এর জন্য নোটগুলি প্রকাশ করুন, পাশাপাশি বাগ-ফিক্স আপডেটের জন্য জেটব্রাইন প্রকাশের নোটগুলি দেখুন।

    কক্ষের সাথে এসকিউএল সম্পাদনা উন্নতি

    আপনি যখন রুম ডাটাবেস লাইব্রেরি ব্যবহার করেন, আপনি এসকিউএল সম্পাদনাটিতে বেশ কয়েকটি উন্নতির সুবিধা নিতে পারেন:

    • একটি Query মধ্যে কোড সমাপ্তি এসকিউএল টেবিলগুলি (সত্তা), কলামগুলি, ক্যোয়ারী প্যারামিটার, এলিয়াস, যোগদান, সাবকিউরিগুলি এবং ধারাগুলির সাথে বোঝে।
    • এসকিউএল সিনট্যাক্স হাইলাইটিং এখন কাজ করে।
    • আপনি এসকিউএল-তে একটি টেবিলের নামটিতে ডান ক্লিক করতে পারেন এবং এর নাম পরিবর্তন করতে পারেন, যা সংশ্লিষ্ট জাভা বা কোটলিন কোডটি আবারও লিখেছেন (উদাহরণস্বরূপ, ক্যোয়ারির রিটার্নের ধরণ সহ)। নামকরণ অন্য দিকেও কাজ করে, তাই জাভা ক্লাস বা ফিল্ডের নামকরণ করা সংশ্লিষ্ট এসকিউএল কোডটি পুনরায় লিখতে পারে।
    • এসকিউএল ব্যবহারগুলি ব্যবহার করার সময় দেখানো হয় (ডান ক্লিক করুন এবং প্রসঙ্গ মেনু থেকে ব্যবহারগুলি বেছে নিন)।
    • জাভা বা কোটলিন কোডে কোনও এসকিউএল সত্তার ঘোষণায় নেভিগেট করতে, আপনি সত্তায় ক্লিক করার সময় নিয়ন্ত্রণ (ম্যাকের উপর কমান্ড) রাখতে পারেন।

    ঘরের সাথে এসকিউএল ব্যবহারের তথ্যের জন্য, ঘর ব্যবহার করে কোনও স্থানীয় ডাটাবেসে ডেটা সংরক্ষণ করুন।

    ডেটা বাইন্ডিং আপডেট

    এই আপডেটে ডেটা বাইন্ডিংয়ের জন্য বেশ কয়েকটি উন্নতি অন্তর্ভুক্ত রয়েছে:

    • আপনি এখন ডেটা বাইন্ডিং এক্সপ্রেশনগুলিতে একটি পর্যবেক্ষণযোগ্য ক্ষেত্র হিসাবে একটি LiveData অবজেক্ট ব্যবহার করতে পারেন। ViewDataBinding ক্লাসে এখন একটি নতুন setLifecycle() পদ্ধতি অন্তর্ভুক্ত রয়েছে যা আপনি LiveData অবজেক্টগুলি পর্যবেক্ষণ করতে ব্যবহার করেন।

    • ObservableField শ্রেণি এখন তার কনস্ট্রাক্টরে অন্যান্য Observable বস্তু গ্রহণ করতে পারে।

    • আপনি আপনার ডেটা বাইন্ডিং ক্লাসের জন্য একটি নতুন ইনক্রিমেন্টাল সংকলক পূর্বরূপ দেখতে পারেন। এই নতুন সংকলক এবং এটি সক্ষম করার জন্য নির্দেশাবলীর বিশদগুলির জন্য, ডেটা বাইন্ডিং সংকলক ভি 2 দেখুন।

      নতুন সংকলকের সুবিধাগুলি নিম্নলিখিতগুলি অন্তর্ভুক্ত করে:

      • ViewBinding ক্লাসগুলি জাভা সংকলকের আগে গ্রেডের জন্য অ্যান্ড্রয়েড প্লাগইন দ্বারা উত্পাদিত হয়।
      • লাইব্রেরিগুলি প্রতিবার পুনর্নির্মাণের পরিবর্তে অ্যাপ্লিকেশনটি সংকলিত হলে তাদের উত্পন্ন বাইন্ডিং ক্লাস রাখে। এটি মাল্টি-মডিউল প্রকল্পগুলির জন্য পারফরম্যান্সকে ব্যাপকভাবে উন্নত করতে পারে।

    সংকলক এবং গ্রেডল

    ডি 8 হ'ল ডিফল্ট ডেক্স সংকলক

    ডি 8 সংকলকটি এখন ডেক্স বাইটকোড তৈরির জন্য ডিফল্টরূপে ব্যবহৃত হয়।

    এই নতুন ডেক্স সংকলকটি নিম্নলিখিতগুলি সহ বেশ কয়েকটি সুবিধা নিয়ে আসে:

    • দ্রুত ডেক্সিং
    • কম মেমরি ব্যবহার
    • উন্নত কোড জেনারেশন (আরও ভাল নিবন্ধ বরাদ্দ, স্মার্ট স্ট্রিং টেবিল)
    • কোডের মাধ্যমে পদক্ষেপ নেওয়ার সময় আরও ভাল ডিবাগিংয়ের অভিজ্ঞতা

    এই সুবিধাগুলি পেতে আপনার কোড বা আপনার বিকাশের কর্মপ্রবাহে কোনও পরিবর্তন করার দরকার নেই, যদি না আপনি আগে ম্যানুয়ালি ডি 8 সংকলকটি অক্ষম করে থাকেন।

    আপনি যদি আপনার gradle.properties android.enableD8 কে false সেট করেন তবে হয় সেই পতাকাটি মুছুন বা এটি true সেট করুন:

            android.enableD8=true
          

    বিশদের জন্য, নতুন ডেক্স সংকলক দেখুন।

    বর্ধিত desugaring

    জাভা 8 ভাষার বৈশিষ্ট্যগুলি ব্যবহার করে এমন প্রকল্পগুলির জন্য, ইনক্রিমেন্টাল ডিসুগারিং ডিফল্টরূপে সক্ষম করা হয়, যা বিল্ড টাইমগুলিকে উন্নত করতে পারে।

    ডেসুগারিং সিনট্যাকটিক চিনিকে এমন একটি আকারে রূপান্তর করে যা সংকলক আরও দক্ষতার সাথে প্রক্রিয়া করতে পারে।

    আপনি আপনার প্রকল্পের gradle.properties নিম্নলিখিতগুলি নির্দিষ্ট করে ইনক্রিমেন্টাল ডেসুগারিং অক্ষম করতে পারেন opproperties ফাইল:

            android.enableIncrementalDesugaring=false
          
    সরলীকৃত আউটপুট উইন্ডো

    গ্রেডল কনসোলটি বিল্ড উইন্ডো দিয়ে প্রতিস্থাপন করা হয়েছে, এতে সিঙ্ক এবং বিল্ড ট্যাব রয়েছে।

    নতুন, সরলীকৃত বিল্ড উইন্ডোটি কীভাবে ব্যবহার করবেন সে সম্পর্কে বিশদগুলির জন্য, বিল্ড প্রক্রিয়াটি পর্যবেক্ষণ করুন।

    ব্যাচ আপডেট এবং ইনডেক্সিং কনচারেন্সি

    গ্রেডল সিঙ্ক এবং আইডিই সূচক প্রক্রিয়াগুলি এখন অনেক বেশি দক্ষ, অনেকগুলি অপ্রয়োজনীয় সূচীকরণ ক্রিয়াকলাপগুলিতে সময় নষ্ট করে।

    সি ++ এবং এলএলডিবি

    আমরা সি ++ বিকাশের কোডিং, সিঙ্কিং, বিল্ডিং এবং ডিবাগিং পর্যায়গুলিতে অনেক গুণমান এবং কার্য সম্পাদনের উন্নতি করেছি। উন্নতির মধ্যে নিম্নলিখিতগুলি অন্তর্ভুক্ত রয়েছে:

    • আপনি যদি বড় সি ++ প্রকল্পগুলির সাথে কাজ করেন তবে আপনার বিল্ডিং প্রতীকগুলি ব্যয় করা সময় হ্রাসের ক্ষেত্রে একটি উল্লেখযোগ্য উন্নতি লক্ষ্য করা উচিত। বড় প্রকল্পগুলির জন্য সিঙ্ক সময়ও হ্রাস করা হয়।

    • সিএমইকে দিয়ে বিল্ডিং এবং সিঙ্ক করার সময় পারফরম্যান্স ক্যাশেড ফলাফলগুলির আরও আক্রমণাত্মক পুনরায় ব্যবহারের মাধ্যমে উন্নত করা হয়েছে।

    • আরও সি ​​++ ডেটা স্ট্রাকচারের জন্য ফর্ম্যাটারগুলি ("প্রিটি প্রিন্টার") সংযোজন এলএলডিবি আউটপুট পড়া সহজ করে তোলে।

    • এলএলডিবি এখন কেবলমাত্র অ্যান্ড্রয়েড 4.1 (এপিআই স্তর 16) এবং উচ্চতর সাথে কাজ করে।

    দ্রষ্টব্য: অ্যান্ড্রয়েড স্টুডিও 3.0 বা তার বেশি সহ নেটিভ ডিবাগিং 32-বিট উইন্ডোতে কাজ করে না। আপনি যদি 32-বিট উইন্ডোজ ব্যবহার করছেন এবং নেটিভ কোডটি ডিবাগ করার প্রয়োজন হয় তবে অ্যান্ড্রয়েড স্টুডিও 2.3 ব্যবহার করুন।

    কোটলিন

    কোটলিন সংস্করণ 1.2.30 এ আপগ্রেড করা হয়েছে

    অ্যান্ড্রয়েড স্টুডিও 3.1 এর মধ্যে কোটলিন সংস্করণ 1.2.30 অন্তর্ভুক্ত রয়েছে।

    কোটলিন কোড এখন কমান্ড-লাইন লিন্ট চেক দিয়ে বিশ্লেষণ করা হয়েছে

    কমান্ড লাইন থেকে লিন্ট চালানো এখন আপনার কোটলিন ক্লাস বিশ্লেষণ করে।

    আপনি যে প্রতিটি প্রকল্পে লিন্ট চালাতে চান তার জন্য, গুগলের মাভেন রিপোজিটরিটি অবশ্যই শীর্ষ-স্তরের build.gradle ফাইলটিতে অন্তর্ভুক্ত থাকতে হবে। ম্যাভেন রিপোজিটরিটি ইতিমধ্যে অ্যান্ড্রয়েড স্টুডিও 3.0 এবং উচ্চতর তৈরি প্রকল্পগুলির জন্য অন্তর্ভুক্ত রয়েছে।

    কর্মক্ষমতা সরঞ্জাম

    সিপিইউ প্রোফাইলার সহ নেটিভ সি ++ প্রক্রিয়া নমুনা

    সিপিইউ প্রোফাইলারটিতে এখন আপনার অ্যাপের নেটিভ থ্রেডগুলির নমুনাযুক্ত ট্রেস রেকর্ড করার জন্য একটি ডিফল্ট কনফিগারেশন অন্তর্ভুক্ত রয়েছে। আপনি এই কনফিগারেশনটি অ্যান্ড্রয়েড 8.0 (এপিআই স্তর 26) বা উচ্চতর কোনও ডিভাইসে মোতায়েন করে এই কনফিগারেশনটি ব্যবহার করতে পারেন এবং তারপরে সিপিইউ প্রোফাইলারের রেকর্ডিং কনফিগারেশন ড্রপডাউন মেনু থেকে নমুনাযুক্ত (নেটিভ) নির্বাচন করে। এর পরে, আপনি সাধারণত যেমন চান তেমন একটি ট্রেস রেকর্ড করুন এবং পরিদর্শন করুন

    আপনি রেকর্ডিং কনফিগারেশন তৈরি করে ডিফল্ট সেটিংস যেমন স্যাম্পলিং অন্তর পরিবর্তন করতে পারেন।

    আপনার জাভা থ্রেডগুলি ট্রেস করতে ফিরে স্যুইচ করতে, একটি নমুনাযুক্ত (জাভা) বা চালিত (জাভা) কনফিগারেশন নির্বাচন করুন।

    ফিল্টার সিপিইউ ট্রেস, মেমরি বরাদ্দ ফলাফল এবং হিপ ডাম্প

    সিপিইউ প্রোফাইলার এবং মেমরি প্রোফাইলারটিতে একটি অনুসন্ধান বৈশিষ্ট্য অন্তর্ভুক্ত রয়েছে যা আপনাকে একটি পদ্ধতি ট্রেস, মেমরি বরাদ্দ বা হিপ ডাম্প রেকর্ড করে ফলাফল ফিল্টার করতে দেয়।

    অনুসন্ধান করতে, ফিল্টার ক্লিক করুন ফলকের উপরের ডান কোণে, আপনার ক্যোয়ারী টাইপ করুন এবং এন্টার টিপুন।

    টিপ: আপনি নিয়ন্ত্রণ + এফ (ম্যাকের উপর কমান্ড + এফ) টিপে অনুসন্ধানের ক্ষেত্রটি খুলতে পারেন।

    সিপিইউ প্রোফাইলারের শিখা চার্ট ট্যাবে, আপনার অনুসন্ধান ক্যোয়ারির সাথে সম্পর্কিত পদ্ধতিগুলি অন্তর্ভুক্ত কল স্ট্যাকগুলি হাইলাইট করা হয় এবং চার্টের বাম দিকে সরানো হয়।

    পদ্ধতি, শ্রেণি বা প্যাকেজের নাম দ্বারা ফিল্টারিং সম্পর্কিত আরও তথ্যের জন্য, রেকর্ড এবং পদ্ধতির চিহ্নগুলি দেখুন এবং পরিদর্শন করুন

    নেটওয়ার্ক প্রোফাইলারে অনুরোধ ট্যাব

    The Network Profiler now includes a Request tab that provides details about network requests during the selected timeline. In previous versions, the Network Profiler only provided information about network responses.

    Thread View in the Network Profiler

    After selecting a portion of the timeline in the Network Profiler , you can select one of the following tabs to see more detail about the network activity during that timeframe:

    • Connection View : Provides the same information as previous versions of Android Studio—it lists files that were sent or received during the selected portion of the timeline across all of your app's CPU threads. For each request, you can inspect the size, type, status, and transmission duration.
    • Thread View : Displays network activity of each of your app's CPU threads. This view allows you to inspect which of your app's threads are responsible for each network request.

    Layout Inspector

    The Layout Inspector gained new features, including some functionality previously provided by the deprecated Hierarchy Viewer and Pixel Perfect tools:

    • Zoom buttons and keyboard shortcuts for navigating and inspecting layouts
    • Reference grid overlay
    • Ability to load a reference image and use it as an overlay (useful for comparing your layout with a UI mockup)
    • Render subtree preview to isolate a view in a complex layout

    লেআউট সম্পাদক

    The Palette in the Layout Editor has received many improvements:

    • Reorganization of categories for views and layouts.
    • New Common category for views and layouts, which you can add to with a Favorite command.
    • Improved search for views and layouts .
    • New commands for opening documentation for a specific view or layout element.

    You can use the new Convert view command in the Component tree or design editor to convert a view or layout to another type of view or layout.

    You can now easily create constraints to items near the selected view using the new Create a connection buttons in the view inspector at the top of the Attributes window.

    Run and Instant Run

    The behavior of the Use same selection for future launches option in the Select deployment target dialog has been made more consistent. If the Use same selection option is enabled, then the Select deployment target dialog opens only the first time that you use the Run command until the selected device is no longer connected.

    When targeting a device running Android 8.0 (API level 26) or higher, Instant Run can deploy changes to resources without causing an application restart. This is possible because the resources are contained in a split APK.

    এমুলেটর

    For details of what's new and changed in the emulator since Android Studio 3.0, see the Android Emulator release notes from version 27.0.2 through version 27.1.12 .

    Major improvements include the following:

    • Quick Boot snapshots for saving of emulator state and faster start, with the ability to use the Save now command to save a custom start state.
    • Windowless emulator screen.
    • System images for Android 8.0 (API level 26), Android 8.1 (API level 27), and Android P Developer Preview.

    User interface and user experience improvements

    More tooltips, keyboard shortcuts, and helpful messages

    We have added tooltips and helpful message overlays in many places throughout Android Studio.

    To see keyboard shortcuts for many commands, just hold the mouse pointer over a button until the tooltip appears.

    Tools > Android menu removed

    The Tools > Android menu has been removed. Commands that were previously under this menu have been moved.

    • Many commands moved to directly under the Tools menu.
    • The Sync project with gradle files command moved to the File menu.
    • The Device Monitor command has been removed, as described below.

    Device Monitor available from the command line

    In Android Studio 3.1, the Device Monitor serves less of a role than it previously did. In many cases, the functionality available through the Device Monitor is now provided by new and improved tools.

    See the Device Monitor documentation for instructions for invoking the Device Monitor from the command line and for details of the tools available through the Device Monitor.

    3.0 (October 2017)

    Android Studio 3.0.0 is a major release that includes a variety of new features and improvements.

    macOS users: If you are updating an older version of Android Studio, you may encounter an update error dialog that says "Some conflicts were found in the installation area". Simply ignore this error and click Cancel to resume the installation.

    3.0.1 (November 2017)

    This is a minor update to Android Studio 3.0 that includes general bug fixes and performance improvements.

    Android Plugin for Gradle 3.0.0

    The new Android plugin for Gradle includes a variety of improvements and new features, but it primarily improves build performance for projects that have a large number of modules. When using the new plugin with these large projects, you should experience the following:

    • Faster build configuration times due to new delayed dependency resolution.
    • Variant-aware dependency resolution for only the projects and variants you are building.
    • Faster incremental build times when applying simple changes to code or resources.

    Note: These improvements required significant changes that break some of the plugin's behaviors, DSL, and APIs. Upgrading to version 3.0.0 might require changes to your build files and Gradle plugins.

    This version also includes the following:

    • Support for Android 8.0.
    • Support for building separate APKs based on language resources.
    • Support for Java 8 libraries and Java 8 language features (without the Jack compiler).
    • Support for Android Test Support Library 1.0 (Android Test Utility and Android Test Orchestrator ).
    • Improved ndk-build and cmake build speeds.
    • Improved Gradle sync speed.
    • AAPT2 is now enabled by default.
    • Using ndkCompile is now more restricted. You should instead migrate to using either CMake or ndk-build to compile native code that you want to package into your APK. To learn more, read Migrate from ndkcompile .

    For more information about what's changed, see the Android Plugin for Gradle release notes .

    If you're ready to upgrade to the new plugin, see Migrate to Android Plugin for Gradle 3.0.0 .

    কোটলিন সমর্থন

    As announced at Google I/O 2017 , the Kotlin programming language is now officially supported on Android. So with this release, Android Studio includes Kotlin language support for Android development.

    You can incorporate Kotlin into your project by converting a Java file to Kotlin (click Code > Convert Java File to Kotlin File ) or by creating a new Kotlin- enabled project using the New Project wizard.

    To get started, read how to add Kotlin to your project .

    Java 8 language features support

    You can now use certain Java 8 language features and consume libraries built with Java 8. Jack is no longer required , and you should first disable Jack to use the improved Java 8 support built into the default toolchain.

    To update your project to support the new Java 8 language toolchain, update the Source Compatibility and Target Compatibility to 1.8 in the Project Structure dialog (click File > Project Structure ). To learn more, read how to use Java 8 language features .

    অ্যান্ড্রয়েড প্রোফাইলার

    The new Android Profiler replaces the Android Monitor tool and provides a new suite of tools to measure your app's CPU, memory, and network usage in realtime. You can perform sample-based method tracing to time your code execution, capture heap dumps, view memory allocations, and inspect the details of network-transmitted files.

    To open, click View > Tool Windows > Android Profiler (or click Android Profiler in the toolbar).

    The event timeline at the top of the window shows touch events, key presses, and activity changes so you have more context to understand other performance events in the timeline.

    Note: The Logcat view also moved to a separate window (it was previously inside Android Monitor, which was removed).

    From the Android Profiler's overview timeline, click on the CPU , MEMORY , or NETWORK timelines to access the corresponding profiler tools.

    CPU Profiler

    The CPU Profiler helps you analyze the CPU thread usage of your app by triggering a sample or instrumented CPU trace. Then, you can troubleshoot CPU performance issues using a variety of data views and filters.

    For more information, see the CPU Profiler guide .

    মেমরি প্রোফাইলার

    The Memory Profiler helps you identify memory leaks and memory churn that can lead to stutter, freezes, and even app crashes. It shows a realtime graph of your app's memory use, lets you capture a heap dump, force garbage collections, and track memory allocations.

    For more information, see the Memory Profiler guide .

    নেটওয়ার্ক প্রোফাইলার

    The Network Profiler allows you to monitor the network activity of your app, inspect the payload of each of your network requests, and link back to the code that generated the network request.

    For more information, see the Network Profiler guide .

    APK profiling and debugging

    Android Studio now allows you to profile and debug any APK without having to build it from an Android Studio project—as long as the APK is built to enable debugging and you have access to the debug symbols and source files.

    To get started, click Profile or debug APK from the Android Studio Welcome screen. Or, if you already have a project open, click File > Profile or debug APK from the menu bar. This displays the unpacked APK files, but it does not decompile the code. So, to properly add breakpoints and view stack traces, you need to attach Java source files and native debug symbols.

    For more information, see Profile and Debug Pre-built APKs .

    ডিভাইস ফাইল এক্সপ্লোরার

    The new Device File Explorer allows you to inspect your connected device's filesystem, and transfer files between the device and your computer. This replaces the filesystem tool available in DDMS.

    To open, click View > Tool Windows > Device File Explorer .

    For more information, see the Device File Explorer guide .

    Instant Apps support

    New support for Android Instant Apps allows you to create Instant Apps in your project using two new module types : Instant App modules and Feature modules (these require that you install the Instant Apps Development SDK ).

    Android Studio also includes a new modularize refactoring action to help you add support for Instant Apps in an existing project. For example, if you want to refactor your project to place some classes in an Instant App feature module, select the classes in the Project window and click Refactor > Modularize . In the dialog that appears, select the module where the classes should go and click OK .

    And when you're ready to test your Instant App, you can build and run your Instant App module on a connected device by specifying the Instant App's URL within the run configuration launch options : Select Run > Edit Configurations , select your Instant App module, and then set the URL under Launch Options .

    For more information, see Android Instant Apps .

    Android Things modules

    New Android Things templates in the New Project and New Module wizards to help you start developing for Android-powered IOT devices.

    For more information, see how to create an Android Things project .

    Adaptive Icons wizard

    Image Asset Studio now supports vector drawables and allows you to create adaptive launcher icons for Android 8.0 while simultaneously creating traditional icons ("Legacy" icons) for older devices.

    To start, right-click on the res folder in your project, and then click New > Image Asset . In the Asset Studio window, select Launcher Icons (Adaptive and Legacy) as the icon type.

    Note: You must set compileSdkVersion to 26 or higher to use adaptive launcher icons.

    For more information, read about Adaptive Icons .

    Support for font resources

    To support the new font resources in Android 8.0, Android Studio includes a font resources selector to help bundle fonts into your app or configure your project to download the fonts on the device (when available). The layout editor can also preview the fonts in your layout.

    To try downloadable fonts, ensure that your device or emulator is running Google Play Services v11.2.63 or higher. For more information, read about Downloadable Fonts .

    Firebase App Indexing Assistant

    The Firebase Assistant has been updated with a new tutorial to test App Indexing . To open the Assistant, select Tools > Firebase . Then select App Indexing > Test App Indexing .

    The tutorial includes new buttons to test your public and personal content indexing:

    • In step 2, click Preview search results to verify that your URLs are showing up in Google Search results.
    • In step 3, click Check for errors to verify that the indexable objects in your app have been added to the personal content index.

    The App Links Assistant has been updated with the following new capabilities:

    • Add URL tests for each URL mapping to be sure your intent filters handle real-world URLs.

      You can also define these URL tests by hand using the <tools:validation> tag described below.

    • Create a Digital Asset Links file with the appropriate object entry to support Google Smart Lock , and add the corresponding asset_statements <meta-data> tag to your manifest file.

    URL intent-filter validator

    Android Studio now supports a special tag in the manifest file that allows you to test your intent filter URLs . These are the same tags that the App Links Assistant can create for you .

    To declare a test URL for an intent filter, add a <tools:validation> element alongside the corresponding <intent-filter> element. যেমন:

          <activity ...>
              <intent-filter>
                  ...
              </intent-filter>
              <tools:validation testUrl="https://www.example.com/recipe/1138" />
          </activity>
        
        

    Be sure to also include xmlns:tools="http://schemas.android.com/tools" in the <manifest> tag.

    If any one of the test URLs does not pass the intent filter definition, a lint error appears. Such an error still allows you to build debug variants, but it will break your release builds.

    লেআউট সম্পাদক

    The Layout Editor has been updated with a number of enhancements, including the following:

    • New toolbar layout and icons.
    • Updated layout in the component tree.
    • Improved drag-and-drop view insertions.
    • New error panel below the editor, showing all issues with suggestions to fix (if available).
    • Various UI enhancements for building with ConstraintLayout , including the following:
      • New support to create barriers .
      • New support to create groups: In the toolbar, select Guidelines > Add Group (requires ConstraintLayout 1.1.0 beta 2 or higher)
      • New UI to create chains: Select multiple views, and then right-click and select Chain .

    Layout Inspector

    The Layout Inspector includes enhancements to make it easier to debug issues with your app layouts, including grouping properties into common categories and new search functionality in both the View Tree and the Properties panes.

    APK Analyzer

    You can now use the APK Analyzer from the command line with the apkanalyzer tool.

    The APK Analyzer has also been updated with the following improvements:

    • For APKs built with ProGuard, you can load ProGuard mapping files that add capabilities to the DEX viewer, including:
      • Bolded nodes to indicate that the nodes should not be removed when shrinking code.
      • A button to show nodes that were removed during the shrinking process.
      • A button that restores the original names of nodes in the tree view that were obfuscated by ProGuard.
    • The DEX Viewer now shows the estimated size impact of each package, class and method.
    • New filtering options at the top to show and hide fields and methods.
    • In the tree view, nodes that are references not defined in the DEX file appear in italics.

    For more information, see Analyze Your Build with APK Analyzer .

    Preview for D8 DEX compiler

    Android Studio 3.0 includes an optional new DEX compiler called D8. It will eventually replace the DX compiler, but you can opt-in to use the new D8 compiler now.

    DEX compilation directly impacts your app's build time, .dex file size, and runtime performance. And when comparing the new D8 compiler with the current DX compiler, D8 compiles faster and outputs smaller .dex files, while having the same or better app runtime performance.

    To try it, set the following in your project's gradle.properties file:

    android.enableD8=true
        

    For more information, see the blog post about the D8 compiler .

    Google's Maven repository

    Android Studio now uses Google's Maven Repository by default instead of depending on the Android SDK Manager to get updates for Android Support Library, Google Play Services, Firebase, and other dependencies. This makes it easier to keep your libraries up to date, especially when using a continuous integration (CI) system.

    All new projects now include the Google Maven repository by default. To update your existing project, add google() in the repositories block of the top-level build.gradle file:

          allprojects {
              repositories {
                  google()
              }
          }
        
        

    Learn more about Google's Maven repository here .

    অন্যান্য পরিবর্তন

    • Native debugging with Android Studio no longer supports 32-bit Windows. আমরা অন্যান্য প্ল্যাটফর্মগুলিতে ফোকাস করতে বেছে নিয়েছি কারণ খুব কম ডেভেলপার এই প্ল্যাটফর্মটি ব্যবহার করছেন। If you are using 32-bit Windows and you plan to debug native code, you should keep using Android Studio 2.3 .
    • Upgraded the base IDE to IntelliJ 2017.1.2 , which adds a number of new features from 2016.3 and 2017.1 , such as Java 8 language refactoring, parameter hints, semantic highlighting, draggable breakpoints, instant results in search, and much more.
    • Added many new lint checks.
    • Also see the latest Android Emulator updates .

    2.3 (March 2017)

    Android Studio 2.3.0 is primarily a bug fix and stability release, but it also includes a number of new features.

    2.3.3 (June 2017)

    This is a minor update to add support for Android O (API level 26).

    2.3.2 (April 2017)

    This is a minor update to Android Studio 2.3 for the following changes:

    • AVD Manager updates to support Google Play in system images.
    • Bug fixes for NDK builds when using R14+ of the NDK.

    Also see corresponding updates for Android Emulator 26.0.3 .

    2.3.1 (April 2017)

    This is a minor update to Android Studio 2.3 that fixes an issue where some physical Android devices did not work properly with Instant Run (see Issue #235879 ).

    <h3 class="hide-from-toc">
      New
    </h3>
    
    <div class="video-wrapper-left">
      <iframe class="devsite-embedded-youtube-video" data-video-id="VFyKclKBGf0"
              data-autohide="1" data-showinfo="0" frameborder="0" allowfullscreen>
      </iframe>
    </div>
    
    <ul>
      <li>Android Studio can now convert PNG, BMP, JPG, and static GIF files to
      WebP format. WebP is an image file format from Google that provides lossy
      compression (like JPEG) as well as transparency (like PNG) but can provide
      better compression than either JPEG or PNG. For more information, see
        <a href="/studio/write/convert-webp.html">Convert images to WebP in Android
        Studio</a>.
      </li>
    
      <li>The new <a href="/studio/write/app-link-indexing.html">App Links
      Assistant</a> simplifies the process of adding Android App Links to your app
      into a step-by-step wizard. Android App Links are HTTP URLs that bring users
      directly to specific content in your Android app.
      </li>
    
      <li>The Layout Editor now includes support for two new ConstraintLayout
      features:
        <ul>
          <li>Define a view size based on an aspect ratio.
          </li>
          <li>Create packed, spread, and weighted linear groups with constraint
          chains.
          </li>
        </ul>
        For more information, see <a href=
        "/training/constraint-layout/index.html">Build a Responsive UI with
        ConstraintLayout</a>.
      </li>
    
      <li>The Layout Editor also now lets you create a list of <a href=
      "/studio/write/layout-editor.html#edit-properties">favorite attributes</a> so
      you don't have to click <b>View all attributes</b> to access the attributes
      you use most.
      </li>
    
      <li>When adding a material icon using the Vector Import Dialog (<b>File &gt;
      New &gt; Vector Asset</b>), you can now filter the list of available icons by
      category or by icon name. For more information, see <a href=
      "/studio/write/vector-asset-studio.html#materialicon">Adding a material
      icon</a>.
      </li>
    
      <li>
        <a href="/studio/write/annotations.html#accessibility">New and updated
        annotations</a>. The new <code>@RestrictTo</code> annotation for methods,
        classes, and packages lets you restrict an API. The updated
        <code>@VisibleForTesting</code> annotation now has an optional
        <code>otherwise</code> argument that lets you designate what the visibility
        of a method should be if not for the need to make it visible for testing.
        Lint uses the <code>otherwise</code> option to enforce the intended
        visibility of the method.
      </li>
    
      <li>New <a href="/studio/write/lint.html#snapshot">lint baseline support</a>
      allows you to use a snapshot of your project's current set of warnings as a
      baseline for future inspection runs so only new issues are reported. The
      baseline snapshot lets you start using lint to fail the build for new issues
      without having to go back and address all existing issues first.
      </li>
    
      <li>New lint checks, including the following:
        <ul>
          <li>Obsolete <code>SDK_INT</code> Checks: Android Studio removes obsolete
          code that checks for SDK versions.
          </li>
          <li>Object Animator Validation: Lint analyzes your code to make sure that
          your <code>ObjectAnimator</code> calls reference valid methods with the
          right signatures and checks that those methods are annotated with <code>
            @Keep</code> to prevent ProGuard from renaming or removing them during
            release builds.
          </li>
          <li>Unnecessary Item Decorator Copy: Older versions of the
          <code>RecyclerView</code> library did not include a divider decorator
          class, but one was provided as a sample in the support demos. Recent
          versions of the library have a divider decorator class. Lint looks for
          the old sample and suggests replacing it with the new one.
          </li>
          <li>WifiManager Leak: Prior to Android 7.0 (API level 24), initializing
          the <code>WifiManager</code> with <code><a href="/reference/android/content/Context.html#getSystemService(java.lang.Class&lt;T&gt;)">Context.getSystemService()</a></code>
          can cause a memory leak if the context is not the application context.
          Lint looks for these initializations, and if it <em>cannot</em> determine
          that the context is the application context, it suggests you use <code><a href="/reference/android/content/Context.html#getApplicationContext()">Context.getApplicationContext()</a></code> to get the proper context for the
          initialization.
          </li>
          <li>Improved Resource Prefix: The existing <code>resourcePrefix</code>
          lint check had many limitations. You can now configure your project with
          a prefix, such as <code>android { resourcePrefix '<var>my_lib</var>'
          }</code>, and lint makes sure that all of your resources are using this
          prefix. You can use variations of the name for styles and themes. For
          example for the <var>my_lib</var> prefix, you can have themes named
          <code>MyLibTheme</code>, <code>myLibAttr</code>,
          <code>my_lib_layout</code>, and so on.
          </li>
          <li>Switch to WebP: This check identifies images in your project that can
          be converted to WebP format based on your project’s
          <code>minSdkVersion</code> setting. An associated quickfix can
          automatically convert the images, or you can <a href=
          "/studio/write/convert-webp.html">convert images to WebP</a> manually.
          </li>
          <li>Unsafe WebP: If your project already includes WebP images, this check
          analyzes your project to ensure that your <code>minSdkVersion</code>
          setting is high enough to support the included images. For more
          information about WebP support in Android and Android Studio, see
          <a class="external" href=
          "https://developers.google.com/speed/webp/faq#which_web_browsers_natively_support_webp">
            Which browsers natively support WebP?</a> and <a href=
            "/studio/write/convert-webp.html">Create WebP Images Using Android
            Studio</a>.
          </li>
        </ul>
      </li>
    </ul>
    
    <h3 class="hide-from-toc">
      Changes
    </h3>
    
    <ul>
      <li>A separate button to push changes with Instant Run: After deploying your
      app, you now click <b>Apply Changes</b> <img src=
      "/studio/images/buttons/toolbar-apply-changes.svg" alt="" class=
      "inline-icon"> to quickly push incremental changes to your running app using
      Instant Run. The <b>Run</b> <img src="/studio/images/buttons/toolbar-run.png"
        alt="" class="inline-icon"> and <b>Debug</b> <img src=
        "/studio/images/buttons/toolbar-debug.png" alt="" class="inline-icon">
        buttons are always available to you when you want to reliably push your
        changes and force an app restart.
        <ul>
          <li>Instant Run is supported only when deploying your app to a target
          device running Android 5.0 (API level 21) or higher.
          </li>
          <li>Instant Run is no longer disabled for projects that <a href=
          "/studio/projects/add-native-code.html">link to external native
          projects</a> using CMake or ndk-build. However, you can only use Instant
          Run to push incremental changes to your Java code, not your native code.
          </li>
          <li>Cold swaps (which you can force for a running app by clicking
          <strong>Run</strong> <img src="/studio/images/buttons/toolbar-run.png"
          alt="" class="inline-icon">) are now more reliable. Forcing a cold swap
          also fixes the issue where changes to notification and widget UIs were
          not updated on the target device.
          </li>
          <li>Includes optimizations that make app startup much faster. These
          optimizations may affect profiling, so you should temporarily <a href=
          "/studio/run/index.html#disable-ir">disable Instant Run</a> whenever
          profiling your app.
          </li>
        </ul>
      </li>
    
      <li>
        <p>
          The <b>AVD Manager</b> <img src=
          "/studio/images/buttons/toolbar-avd-manager.png" alt="" class=
          "inline-icon"> and <b>SDK Manager</b> <img src=
          "/studio/images/buttons/toolbar-sdk-manager.png" alt="" class=
          "inline-icon"> buttons are now included in the lean Navigation Bar as
          well as the full Toolbar. To use the lean Navigation Bar, click
          <b>View</b> to open the View menu, then ensure that <b>Navigation Bar</b>
          is selected and <b>Toolbar</b> is <em>not</em> selected.
        </p>
        <img src="/studio/images/releases/navigationbar_sdkavd_2x.png" width="757">
      </li>
    
      <li>The "Hybrid" debugger has been renamed to "Dual" debugger.
      </li>
    
      <li>In the <a href="/studio/run/rundebugconfig.html">Run/Debug
      Configurations</a> dialog, under Defaults in the left pane, the following run
      configuration names have changed with no behavior changes:
        <ul>
          <li>The JUnit name has changed to Android JUnit. If you have a project
          that uses JUnit run configurations, those configurations are transformed
          to Android JUnit run configurations the first time you open the project
          with Android Studio. A dialog appears to inform you of the name change.
          </li>
          <li>The Android Tests name has changed to Android Instrumented Tests.
          </li>
        </ul>
      </li>
    
      <li>The <a href="/studio/debug/am-gpu-debugger.html">GPU Debugger</a> has
      been removed from Android Studio as of version 2.3. An open-source,
      standalone version of the tool is now available on <a href=
      "https://github.com/google/gapid" class="external-link">GitHub</a>.
      </li>
    
      <li>The Run/Debug option is no longer available when you right-click a <code>
        *.gradle build</code> script.
      </li>
    
      <li>All templates now use <code>ConstraintLayout</code> as the default
      layout.
      </li>
    
      <li>The Widgets palette in the Layout Editor has been redesigned.
      </li>
    </ul>
    
    <p>
      This release also includes a number of bug fixes. <a href=
      "https://code.google.com/p/android/issues/list?can=1&amp;q=target%3D2.3+status%3DReleased&amp;colspec=ID+Status+Priority+Owner+Summary+Stars+Reporter+Opened&amp;cells=tiles">
      See all bug fixes in 2.3.0.</a>
    </p>
    
    <p class="note">
      <b>Known issue:</b> Some device manufacturers block apps from automatically
      launching after being installed on the device. When deploying your app to a
      physical device using Android Studio 2.3, this restriction breaks the
      intended behavior of Instant Run and causes the following error output:
      <code>Error: Not found; no service started</code>. To avoid this issue,
      either <a href="/studio/run/emulator.html">use the emulator</a> or enable
      automatic launching for your app in your device's settings. The procedure
      for doing this is different for each device, so check the instructions
      provided by the manufacturer. To learn more about this issue, see
      <a href="https://code.google.com/p/android/issues/detail?id=235879">Issue
        #235879</a>.
    </p>
    

    2.2 (September 2016)

    2.2.3 (December 2016)

    <p>
      This is a minor update to Android Studio 2.2. It includes a bug fixes
      focused around gradle, the core IDE, and lint.
    </p>
    
    <p>
      Highlighted build changes:
    </p>
    
    <ul>
      <li>ProGuard version rollback. Due to a <a href=
      "https://sourceforge.net/p/proguard/bugs/625/">correctness issue</a>
      discovered in ProGuard 5.3.1, we have rolled back to ProGuard 5.2.1. We
      have worked with the ProGuard team on getting a fix quickly, and we expect
      to roll forward to ProGuard 5.3.2 in Android Studio 2.3 Canary 3.
      </li>
      <li>Bug fix for <code>aaptOptions</code> <code>IgnoreAssetsPattern</code>
      not working properly (<a href="http://b.android.com/224167">issue
      224167</a>)
      </li>
      <li>Bug fix for Gradle autodownload for Constraint Layout library
        (<a href="https://code.google.com/p/android/issues/detail?id=212128">issue
        212128</a>)
      </li>
      <li>Bug fix for a JDK8/Kotlin compiler + dx issue (<a href=
      "http://b.android.com/227729">issue 227729</a>)
      </li>
    </ul>
    
    <p>
      <a href=
      "https://code.google.com/p/android/issues/list?can=1&amp;q=target%3D2.2.3+status%3AReleased+&amp;colspec=ID+Status+Priority+Owner+Summary+Stars+Reporter+Opened&amp;cells=tiles">
      See all bug fixes in 2.2.3</a>.
    </p>
    

    2.2.2 (October 2016)

    <p>
      This is a minor update to Android Studio 2.2. It includes a number of small
      changes and bug fixes, including:
    </p>
    
    <ul>
      <li>When reporting Instant Run issues through the IDE, the report now also
      includes logcat output for <code>InstantRun</code> events. To help us
      improve Instant Run, please <a href=
      "/studio/run/index.html#submit-feedback">enable extra logging and report
      any issues</a>.
      </li>
      <li>A number of small bug fixes for Gradle.
      </li>
      <li>A fix for problems with generating multiple APKs.
      </li>
    </ul>
    

    2.2.1 (October 2016)

    <p>
      This is a minor update to Android Studio 2.2. It includes several bug fixes
      and a new feature to enable extra logging to help us troubleshoot Instant
      Run issues—to help us improve Instant Run, please <a href=
      "/studio/run/index.html#submit-feedback">enable extra logging and report
      any issues</a>.
    </p>
    

    নতুন

    • All new Layout Editor with tools custom-built to support ConstraintLayout .
    • <li>New <strong><a href=
      "http://tools.android.com/tech-docs/layout-inspector">Layout
      Inspector</a></strong> lets you examine snapshots of your layout hierarchy
      while your app is running on the emulator or a device.
      </li>
      
      <li>New <strong><a href="/studio/write/firebase.html">Assistant</a></strong>
      window to help you integrate Firebase services into your app.
      </li>
      
      <li>New <strong><a href="/studio/debug/apk-analyzer.html">APK
      Analyzer</a></strong> tool so you can inspect the contents of your packaged
      app.
      </li>
      
      <li>New <strong><a href=
      "http://tools.android.com/tech-docs/test-recorder">Espresso Test
      Recorder</a></strong> tool (currently in beta) to help you create UI tests by
      recording your own interactions.
      </li>
      
      <li>New <strong><a href=
      "http://tools.android.com/tech-docs/build-cache">build cache</a></strong>
      (currently experimental) to speed up build performance.
      </li>
      
      <li>New <strong>C/C++ build integration with CMake and ndk-build</strong>.
      Compile and build new or existing native code into libraries packaged into
      your APK, and debug using lldb. For new projects, Android Studio uses CMake
      by default, but also supports ndk-build for existing projects. To learn how
      to include native code in your Android application, read <a href=
      "/studio/projects/add-native-code.html">Add C and C++ Code to Your
      Project</a>. To learn how to debug native code with lldb, see <a href=
      "/studio/debug/index.html#debug-native">Debug Native Code</a>.
      </li>
      
      <li>New <strong><a href="/studio/intro/index.html#sample-code">Samples
      Browser</a></strong> so you can easily look up Google Android sample code
      from within Android Studio to jump start app development.
      </li>
      
      <li>New <strong>Merged Manifest Viewer</strong> to help you diagnose how your
      manifest file merges with your app dependencies across project build
      variants.
      </li>
      
      <li>The <strong>Run</strong> window now contains log messages for the current
      running app. Note that you can configure the <a href=
      "/studio/debug/am-logcat.html">logcat Monitor</a> display, but not the
      <strong>Run</strong> window.
      </li>
      
      <li>New <strong><a href="/studio/run/emulator.html">Android
      Emulator</a></strong> features:
        <ul>
          <li>Added new <strong>Virtual</strong> <strong>Sensors</strong> and
          <strong>Cellular</strong> &gt; <strong>Signal Strength</strong> controls.
          </li>
          <li>Added an <strong>LTE</strong> option to the <strong>Cellular</strong>
          &gt; <strong>Network type</strong> control.
          </li>
          <li>Added simulated vertical swipes for scrolling through vertical menus
          with a mouse wheel.
          </li>
        </ul>
      </li>
      
      <li>New <strong><a href="/studio/run/rundebugconfig.html">Run/Debug
      Configuration</a></strong> features:
        <ul>
          <li>The <strong>Debugger</strong> tab of the Android App and Android
          Tests templates now contain several new options for debugging with LLDB.
          </li>
          <li>The <strong>Profiling</strong> tab of the Android App and Android
          Tests templates now contain a <strong>Capture GPU Commands</strong>
          option for enabling GPU tracing. You can display GPU traces in the GPU
          Debugger (a beta feature).
          </li>
          <li>The Android Tests template now has a <strong>Firebase Test Lab Device
          Matrix</strong> option for the <strong>Deployment Target</strong>.
          </li>
          <li>The Native Application template has been deprecated. If you use this
          template in a project, Android Studio automatically converts it to the
          Android App template.
          </li>
          <li>The Android Application template has been renamed to Android App.
          </li>
        </ul>
      </li>
      
      <li>Improved installation, configuration, performance, and UI features in the
      <strong><a href="/studio/debug/am-gpu-debugger.html">GPU
      Debugger</a></strong> (currently in beta).
      </li>
      
      <li>Android Studio now comes bundled with <strong>OpenJDK 8</strong>.
      Existing projects still use the JDK specified in <strong>File &gt; Project
      Structure &gt; SDK Location</strong>. You can switch to use the new bundled
      JDK by clicking <strong>File &gt; Project Structure &gt; SDK
      Location</strong> and checking the <strong>Use embedded JDK</strong>
      checkbox.
      </li>
      
      <li>Added new <strong>help menus and buttons</strong> in the UI so you can
      more easily find the online documentation.
      </li>
      

    পরিবর্তন

    • Updated the IDE codebase from IntelliJ 15 to IntelliJ 2016.1
    • Instant Run now requires the platform SDK corresponding to the target device API level to be installed.
    • Instant Run will automatically disabled if user is running the app under a work profile or as a secondary user.
    • Fixed many reliability issues for Instant Run where changes were not getting deployed or the app would crash:
      • Some app assets were not deployed to your running app. ( Bug: #213454 )
      • App crashes when user transitions between Instant Run and non Instant Run sessions where a Serializable class does not have serialVersionUID defined. ( Bug: #209006 )
      • Style changes aren't reflected with Instant Run. ( Bug: #210851 )
      • Instant Run session is unreliable and causes FileNotFoundException. ( Bug: #213083 )
      • Changes to drawables not reflected until full rebuild is performed for KitKat. ( Bug: #21530 )
      • Resource changes aren't reflected with Instant Run when custom sourceSets contain nested paths. ( Bug: #219145 )
      • Hot and warm swap don't work if changed class contains annotation with enum value. ( Bug: #209047 )
      • Changes to annotation data not reflected with Instant Run. ( Bug: #210089 )
      • Instant Run doesn't pick up code changes if you make changes outside the IDE. ( Bug: #213205 )
      • Instant Run session is unreliable due to mismatch security token. ( Bug: #211989
      • Cold swap fails for devices that doesn't properly support run-as. ( Bug: #210875 )
      • App crash after instant run restart. ( Bug: #219744 )
      • ClassNotFoundException observed when switching from Instant Run to Instant Debug. ( Bug: #215805 )
    • <li>Improved performance for <strong>Gradle sync</strong> within the IDE,
      especially for large projects.
      </li>
      
      <li>Improved build times for both full and incremental builds with new app
      packaging code.
      </li>
      
      <li>Improved <strong>Jack compiler performance and features</strong>,
      including support for annotation processors and dexing in process. To learn
      more, read the <a href=
      "/studio/releases/gradle-plugin.html#revisions">Android plugin for Gradle
      2.2.0 release notes</a>.
      </li>
      
      <li>Removed the <strong>Scale</strong> AVD property from the AVD Manager.
      </li>
      
      <li>The Android Emulator <strong>-port</strong> and <strong>-ports</strong>
      command-line options now report which ports and serial number the emulator
      instance is using, and warn if there are any issues with the values you
      provided.
      </li>
      
      <li>Improved the <strong><a href=
      "/studio/write/create-java-class.html">Create New Class dialog</a></strong>
      and the corresponding file templates. <strong>Note:</strong> If you've
      previously customized the <strong>AnnotationType</strong>,
      <strong>Class</strong>, <strong>Enum</strong>, <strong>Interface</strong>, or
      <strong>Singleton</strong> file templates, you need to modify your templates
      to comply with the new templates or you won’t be able to use the new fields
      in the <strong>Create New Class</strong> dialog.
      </li>
      
      <li>Improved the <strong><a href=
      "/studio/write/vector-asset-studio.html">Vector Asset Studio</a></strong>
      user interface and added support for Adobe Photoshop Document (PSD) files.
      </li>
      
      <li>Improved the <strong><a href=
      "/studio/write/image-asset-studio.html">Image Asset Studio</a></strong> user
      interface.
      </li>
      
      <li>Improved the <strong>Theme Editor</strong>'s Resource Picker.
      </li>
      
      <li>Fixed memory leaks and reduced overall memory usage in Android Studio.
      </li>
      
      <li>Added a <strong>Background</strong> button in the <strong><a href=
      "/studio/intro/update.html#sdk-manager">SDK Manager</a></strong> so you can
      get back to work and install your packages in the background.
      </li>
      
      <li>Improved <strong><a href="/studio/intro/accessibility.html">Accessibility
      features</a></strong>, including support for screen readers and keyboard
      navigation.
      </li>
      
      <li>Enhanced <strong>Code Analysis</strong> includes code quality checks for
      Java 8 language usage and more cross-file analysis.
      </li>
      
      <li>Several toolbar icons have changed.
      </li>
      

    2.1 (April 2016)

    The primary changes in this update provide support for development with the Android N Preview.

    2.1.3 (August 2016)

    This update adds compatibility with Gradle 2.14.1, which includes performance improvements, new features, and an important security fix . For more details, see the Gradle release notes .

    By default, new projects in Android Studio 2.1.3 use Gradle 2.14.1. For existing projects, the IDE prompts you to upgrade to Gradle 2.14.1 and Android plugin for Gradle 2.1.3 , which is required when using Gradle 2.14.1 and higher.

    2.1.2 (June 2016)

    This update includes a number of small changes and bug fixes:

    • Instant Run updates and bug fixes.
    • Improvements to LLDB performance and crash notifications.
    • Fixed a regression in the Android Studio 2.1.1 security update that caused git rebase to fail.

    2.1.1 (May 2016)

    Security release update.

    The Android N platform adds support for Java 8 language features , which require a new experimental compiler called Jack. The latest version of Jack is currently supported only in Android Studio 2.1. So if you want to use Java 8 language features, you need to use Android Studio 2.1 to build your app.

    Note: Instant Run is disabled when you enable the Jack compiler because they currently are not compatible.

    Although Android Studio 2.1 is now stable, the Jack compiler is still experimental and you must enable it with the jackOptions property in your build.gradle file.

    Other than the changes to support the N Preview, Android Studio 2.1 includes minor bug fixes and the following enhancements:

    • The Java-aware C++ debugger is now enabled by default when you're using an N device or emulator and select Native debugger mode (in the Debugger tab for your run/debug configuration).

    For other build enhancements, including incremental Java compilation and dexing-in-process,update your Android plugin for Gradle to version 2.1.0.

    2.0 (April 2016)

    Note: If you are developing for the N Developer Preview, you should use Android Studio 2.1 Preview. Android Studio 2.0 does not support all the features required to target the N Preview.

    Instant Run :

    • Android Studio now deploys clean builds faster than ever before. Additionally, pushing incremental code changes to the emulator or a physical device is now almost instantaneous. Review your updates without redeploying a new debug build or, in many cases, without restarting the app.
    • Instant Run supports pushing the following changes to a running app:
      • Changes to the implementation of an existing instance method or static method
      • Changes to an existing app resource
      • Changes to structural code, such as a method signature or a static field (requires a target device running API level 21 or higher).
    • Read the documentation to learn more about Instant Run .

      Note: Instant Run is supported only when you deploy the debug build variant, use Android plugin for Gradle version 2.0.0 or higher, and configure your app's module-level build.gradle file for minSdkVersion 15 or higher. For the best performance, configure your app for minSdkVersion 21 or higher.

    New additions to Lint:

    • Inspection of switch statements using @IntDef annotated integers to make sure all constants are handled. To quickly add any missing statements, use the intention action drop-down menu and select Add Missing @IntDef Constants .
    • Flags for incorrect attempts to use string interpolation to insert version numbers in the build.gradle file.
    • Flags for anonymous classes that extend the Fragment class.
    • Flags for native code in unsafe locations, such as the res/ and asset/ folders. This flag encourages storing native code in the libs/ folder, which is then securely packaged into the application's data/app-lib/ folder at install time. AOSP: #169950
    • Flags for unsafe calls to Runtime.load() and System.load() calls. AOSP: #179980
    • Find and remove any unused resources by selecting Refactor > Remove Unused Resources from the menu bar. Unused resource detection now supports resources only referenced by unused resources, references in raw files such as .html image references, and tools:keep and tools:discard attributes used by the Gradle resource shrinker, while considering inactive source sets (such as resources used in other build flavors) and properly handling static field imports.
    • Checks that implicit API references are supported on all platforms targeted by minSdkVersion .
    • Flags improper usage of RecyclerView and Parcelable .
    • @IntDef , @IntRange , and @Size inspections are now also checked for int arrays and varargs.

    Additional Improvements :

    • Optimized for Android Emulator 2.0, which is faster than ever before, supports a wider range of virtual devices, and features a drastically improved UI. To learn more about the new emulator, read the SDK Tools release notes .
    • Improvements to the Android Virtual Device Manager :
      • System images are now categorized under the following tabs: Recommended , x86 , and Other .
      • Under advanced settings, you can enable multi-core support and specify the number of cores the emulator can use.
      • Under advanced settings, you can determine how graphics are rendered on the emulator by selecting one of the following options:
        • Hardware: use you computer's graphics card for faster rendering.
        • Software: use software-based rendering.
        • Auto: let the emulator decide the best option. এটি ডিফল্ট সেটিং।
    • Improved AAPT packaging times by specifying deploy target before the app is built. This allows Android Studio to efficiently package only the resources required by the specified device.
    • Added Cloud Test Lab integration to provide on-demand app testing with the convenience and scalability of a cloud service. Learn more about how you can use Cloud Test Lab with Android Studio .
    • Added a preview of the new GPU Debugger . For graphics intensive applications, you can now visually step through your OpenGL ES code to optimize your app or game.
    • Added Google App Indexing Test. Add support for URLs, app indexing, and search functionality to your apps to help drive more traffic to your app, discover which app content is used most, and attract new users. Test and validate URLs in your app all within Android Studio. See Supporting URLs and App Indexing in Android Studio .
    • Upgrades from the latest IntelliJ 15 release, including improved code analysis and performance. See What's New in IntelliJ for a complete description of the new features and enhancements.
    • XML editor auto-complete now adds quotations marks when completing attributes. To check if this option is enabled, open the Setting or Preferences dialogue, navigate to Editor > General > Smart Keys , and check the box next to Add quotes for attribute value on attribute completion . Issue: 195113
    • The XML editor now supports code completion for data binding expressions.

    Android Studio v1.5.1 (December 2015)

    সংশোধন এবং বর্ধিতকরণ:

    • Fixed a rendering failure issue in the Layout Editor. Issue: 194612
    • Added the ability to vary description manifest attributes by configuration. Issue: 194705
    • Improved the contrast of the Android Studio Darcula appearance theme in Vector Asset Studio. Issue: 191819
    • Added Help button support to Vector Asset Studio.
    • Added support for the % operator for data binding. Issue: 194045
    • Fixed a case where launching an app for debugging resulted in the debugger connecting to the wrong device. Issue: 195167
    • Fixed a null pointer exception that could occur when attempting to run an app in certain scenarios.

    অ্যান্ড্রয়েড স্টুডিও v1.5.0 (নভেম্বর 2015)

    সংশোধন এবং বর্ধিতকরণ:

    • অ্যান্ড্রয়েড মনিটরে নতুন মেমরি মনিটর বিশ্লেষণ ক্ষমতা যুক্ত করা হয়েছে। আপনি যখন এই মনিটর থেকে ক্যাপচার করা একটি HPROF ফাইল দেখেন, তখন ডিসপ্লেটি এখন আরও সহায়ক যাতে আপনি আরও দ্রুত সমস্যাগুলি সনাক্ত করতে পারেন, যেমন মেমরি লিক৷ এই মনিটরটি ব্যবহার করতে, প্রধান উইন্ডোর নীচে অ্যান্ড্রয়েড মনিটরে ক্লিক করুন। অ্যান্ড্রয়েড মনিটরে, মেমরি ট্যাবে ক্লিক করুন। মনিটর চলাকালীন, ডাম্প জাভা হিপ আইকনে ক্লিক করুন এবং তারপরে প্রধান উইন্ডোতে ক্যাপচারে ক্লিক করুন এবং ফাইলটি দেখতে ডাবল-ক্লিক করুন। ডানদিকে ক্যাপচার বিশ্লেষণ ক্লিক করুন. (অ্যান্ড্রয়েড ডিভাইস মনিটর অ্যান্ড্রয়েড মনিটরের মতো একই সময়ে চলতে পারে না।)
    • নতুন গভীর লিঙ্ক এবং অ্যাপ লিঙ্ক সমর্থন যোগ করা হয়েছে. কোড এডিটর স্বয়ংক্রিয়ভাবে AndroidManifest.xml ফাইলে গভীর লিঙ্ক করার জন্য একটি অভিপ্রায় ফিল্টার তৈরি করতে পারে। It can also generate code to help you integrate with the App Indexing API in an activity in a Java file. একটি ডিপ লিঙ্ক টেস্টিং বৈশিষ্ট্য আপনাকে যাচাই করতে সাহায্য করে যে একটি নির্দিষ্ট ডিপ লিঙ্ক একটি অ্যাপ চালু করতে পারে। রান/ডিবাগ কনফিগারেশন ডায়ালগের সাধারণ ট্যাবে, আপনি গভীর লিঙ্ক লঞ্চ বিকল্পগুলি নির্দিষ্ট করতে পারেন। আপনি অ্যান্ড্রয়েড মনিটর লগক্যাট ডিসপ্লে ব্যবহার করে কোনও অ্যাক্টিভিটিতে অ্যাপ ইন্ডেক্সিং API কলগুলি পরীক্ষা করতে পারেন। অ্যান্ড্রয়েড lint টুলে এখন ডিপ লিঙ্ক এবং অ্যাপ ইন্ডেক্সিং এপিআই জড়িত কিছু সমস্যার জন্য সতর্কতা রয়েছে।
    • কোড এডিটরে কাস্টম ভিউ কোড-সম্পূর্ণ করার সময় ছোট নাম ব্যবহার করার ক্ষমতা যোগ করা হয়েছে।
    • পশ্চাদগামী-সামঞ্জস্যতার জন্য ভেক্টর অ্যাসেট স্টুডিওতে আরও VectorDrawable উপাদানগুলির জন্য সমর্থন যোগ করা হয়েছে। ভেক্টর অ্যাসেট স্টুডিও Android 4.4 (API লেভেল 20) এবং তার নিচের সাথে ব্যবহার করার জন্য ভেক্টর ড্রয়েবলগুলিকে PNG রাস্টার ছবিতে রূপান্তর করতে এই উপাদানগুলি ব্যবহার করতে পারে।
    • Android TV এবং Android Auto-এর জন্য নতুন lint চেক যোগ করা হয়েছে যাতে আপনি Android স্টুডিওতে তাৎক্ষণিক, অ্যাকশনেবল ফিডব্যাক দিতে পারেন, সাথে বেশ কিছু দ্রুত সমাধান। উদাহরণস্বরূপ, অ্যান্ড্রয়েড টিভির জন্য, এটি অনুমতি, অসমর্থিত হার্ডওয়্যার, uses-feature উপাদান এবং অনুপস্থিত ব্যানার সমস্যাগুলির জন্য একটি দ্রুত সমাধানের প্রতিবেদন করতে এবং প্রদান করতে পারে। অ্যান্ড্রয়েড অটোর জন্য, এটি আপনার AndroidManifest.xml ফাইল থেকে উল্লেখ করা বর্ণনাকারী ফাইলের সঠিক ব্যবহার যাচাই করতে পারে, MediaBrowserService ক্লাসের জন্য কোনো উদ্দেশ্য ফিল্টার না থাকলে রিপোর্ট করতে পারে এবং কিছু ভয়েস অ্যাকশন সংক্রান্ত সমস্যা চিহ্নিত করতে পারে।
    • অনিরাপদ ব্রডকাস্ট রিসিভার, SSLCertificateSocketFactory এবং HostnameVerifier ক্লাসের ব্যবহার এবং File.setReadable() এবং File.setWritable() কলগুলির জন্য নতুন lint চেক যোগ করা হয়েছে৷ এটি অবৈধ ম্যানিফেস্ট রিসোর্স লুকআপও শনাক্ত করে, বিশেষত কনফিগারেশন অনুসারে পরিবর্তিত সংস্থানগুলির জন্য।
    • স্থিতিশীলতার বেশ কয়েকটি সমস্যা সমাধান করা হয়েছে।

    Android Studio v1.4.1 (October 2015)

    সংশোধন এবং বর্ধিতকরণ:

    • Fixed a Gradle model caching issue that could lead to excessive Gradle syncing when the IDE was restarted.
    • Fixed a native debugging deadlock issue.
    • Fixed an issue blocking users of the Subversion 1.9 version control system.
    • Fixed a Device Chooser dialog problem where after connecting a device that was unauthorized you could no longer select the emulator. Issue: 189658
    • Fixed incorrect translation error reporting for locales that have a region qualifier and a translation in the region (but not in the base locale). Issue: 188577
    • Fixed a deadlock issue in the Theme Editor related to its interaction with the Layout Editor. Issue: 188070
    • Fixed a Theme Editor reload and edit conflict causing attributes to not properly update. Issue: 187726
    • Improved Theme Editor performance.
    • Fixed an issue where the android:required attribute was ignored in the manifest. Issue: 187665

    Android Studio v1.4.0 (September 2015)

    সংশোধন এবং বর্ধিতকরণ:

    • Added the Vector Asset Studio tool for importing vector graphics, such as material icons and SVG files. To use this tool, in the Android view of the Project window, right-click the res folder and select New > Vector Asset .
    • Added new Android Monitor functions, GPU and Network. To use these monitors, click Android Monitor at the bottom of the main window. The Android Device Monitor can't be running at the same time as Android Monitor.
    • Added an early preview of the new Theme Editor. To use this feature, select Tools > Android > Theme Editor .
    • Updated the Android templates for the Design Support Library. Templates now include support for the Material Design specification, as well as the appcompat Support Library for backwards compatibility.

    Android Studio v1.3.2 (August 2015)

    সংশোধন এবং বর্ধিতকরণ:

    • Added support for Android 6.0 (API level 23), including new icons and AVD Manager support for creating devices with new screen densities.
    • Fixed an exception that was occurring during update checks. Issue: 183068
    • Fixed problem where unresolved view coordinates could cause the layout editor to crash. Issue: 178690
    • Fixed issue with invalid resource type warnings. Issue: 182433
    • Fixed lint check that was incorrectly flagging resources as private. Issue: 183120

    Android Studio v1.3.1 (August 2015)

    সংশোধন এবং বর্ধিতকরণ:

    • Fixed support for creating an Android Wear Android Virtual Device (AVD) on Windows.
    • Updated the Project Wizard to use the entered project name.
    • Added support to allow the Android SDK to be stored in a read-only directory.
    • Updated Android plugin for Gradle version to 1.3.0.
    • Fixed issues with launching a debug session from the Android Debug Bridge (adb) Unix shell.
    • Fixed the Java package renaming message to show the correct package name.

    Android Studio v1.3.0 (July 2015)

    সংশোধন এবং বর্ধিতকরণ:

    • Added options to enable developer services , such as Google AdMob and Analytics , in your app from within Android Studio.
    • Added additional annotations , such as @RequiresPermission , @CheckResults , and @MainThread .
    • Added the capability to generate Java heap dumps and analyze thread allocations from the Memory Monitor . You can also convert Android-specific HPROF binary format files to standard HPROF format from within Android Studio.
    • Integrated the SDK Manager into Android Studio to simplify package and tools access and provide update notifications.

      Note: The standalone SDK Manager is still available from the command line, but is recommended for use only with standalone SDK installations.

    • Added the finger command in the emulator console to simulate fingerprint authentication.
    • Added a <public> resource declaration to designate library resources as public and private resources.

      Note: Requires Android plugin for Gradle version 1.3 or higher.

    • Added data binding support to create declarative layouts that bind your application logic to layout elements.
    • Added support for a separate test APK module to build test APKs in Android Studio.
    • Updated the AVD Manager with HAXM optimizations and improved notifications.
    • Added 64-bit ARM and MIPS emulator support for QEMU 2.1.
    • Simplified the resolution of Lint warnings by adding quick fixes, such as the automatic generation of Parcelable implementation.
    • Added live template support for quick insertion of code snippets.

    Android Studio v1.2.2(June 2015)

    সংশোধন এবং বর্ধিতকরণ:

    • Fixed build issues that were blocking builds from completing.

    Android Studio v1.2.1 (May 2015)

    সংশোধন এবং বর্ধিতকরণ:

    • Fixed minor performance and feature issues.

    Android Studio v1.2.0 (April 2015)

    সংশোধন এবং বর্ধিতকরণ:

    • Updated the Android runtime window to include the Memory Monitor tool and added a tab for CPU performance monitoring.
    • Added a Captures tab in the left margin to display the captured memory and CPU performance data files, such as CPU method tracking and memory heap snapshots.
    • Expanded annotation support with additional metadata annotations and inferred nullability.
    • Enhanced the Translations Editor with additional support for Best Current Practice (BCP) 47, which uses 3-letter language and region codes.
    • Integrated IntelliJ 14 and 14.1 features for improved code analysis and performance:
      • Enhanced debugging to show inline values for variables and referring objects, as well as perform inline evaluation of lambda and operator expressions.
      • Added code style detection for tab and indent sizes.
      • Added scratch files for code experiments and prototyping without project files.
      • Added the simultaneous insertion of opening and closing tags in HTML and XML files.
      • Added a built-in Java class decompiler so you can look at what's inside a library for which the source code is not available.

      See What's New in IntelliJ for a complete description of the new features and enhancements.

    • Added additional Project Views for Scratches , Project Files , Problems , Production , and Tests to enhance project management and access.
    • Enhanced the File > Settings menu and dialogs for improved settings access and management.
    • Added support for high-density displays for Windows and Linux.
    • Added support for 280 dpi resources in the res/drawable-280dpi/ folder.

    Android Studio v1.1.0 (February 2015)

    বিভিন্ন সংশোধন এবং বর্ধিতকরণ:

    • Added support for the Android Wear watch template.
    • Modified new project and module creation to include res/mipmap folders for density-specific launcher icons. These res/mipmap folders replace the res/drawable folders for launcher icons.
    • Updated launcher icons to have a Material Design look and added an xxxhdpi launcher icon.
    • Added and enhanced Lint checks for region and language combinations, launcher icons, resource names, and other common code problems.
    • Added support for Best Current Practice (BCP) language tag 47.

    অ্যান্ড্রয়েড স্টুডিও v1.0.1 (ডিসেম্বর 2014)

    বিভিন্ন সংশোধন এবং বর্ধিতকরণ:

    • ফিক্সড AVD ম্যানেজার এবং device.xml ফাইল লক সমস্যা।
    • উইন্ডোজ সিস্টেমে এমুলেটর লগ ঠিক করা হয়েছে।
    • Windows সিস্টেমে বিভিন্ন ড্রাইভে ইনস্টল করা Android Studio এবং Android SDK দিয়ে AVD তৈরির সমস্যা সমাধান করা হয়েছে।
    • নতুন ডাউনলোডের জন্য ডিফল্ট আপডেট চ্যানেলকে স্টেবলে সেট করে। আপনি যদি অ্যান্ড্রয়েড স্টুডিওর 1.0.0 সংস্করণ ইনস্টল করে থাকেন এবং স্থিতিশীল, উত্পাদন-প্রস্তুত সংস্করণ আপডেট চান তবে স্থিতিশীল আপডেট চ্যানেলে পরিবর্তন করতে ফাইল > সেটিংস > আপডেটগুলি ব্যবহার করুন।

    Android Studio v1.0 (December 2014)

    অ্যান্ড্রয়েড স্টুডিওর প্রাথমিক প্রকাশ।

    অ্যান্ড্রয়েড স্টুডিও v0.8.14 (অক্টোবর 2014)

    পরিবর্তনের সম্পূর্ণ তালিকার জন্য tools.android.com দেখুন।

    অ্যান্ড্রয়েড স্টুডিও v0.8.6 (আগস্ট 2014)

    পরিবর্তনের সম্পূর্ণ তালিকার জন্য tools.android.com দেখুন।

    Android Studio v0.8.0 (June 2014)

    Added support for Android Wear projects.

    পরিবর্তনের সম্পূর্ণ তালিকার জন্য tools.android.com দেখুন।

    Android Studio v0.5.2 (May 2014)

    • পরিবর্তনের সম্পূর্ণ তালিকার জন্য tools.android.com দেখুন।

    Android Studio v0.4.6 (March 2014)

    • পরিবর্তনের সম্পূর্ণ তালিকার জন্য tools.android.com দেখুন।

    Android Studio v0.4.2 (Jan 2014)

    • পরিবর্তনের সম্পূর্ণ তালিকার জন্য tools.android.com দেখুন।

    অ্যান্ড্রয়েড স্টুডিও v0.3.2 (অক্টোবর 2013)

    • পরিবর্তনের সম্পূর্ণ তালিকার জন্য tools.android.com দেখুন।

    Android Studio v0.2.x (July 2013)

    • Merged in the latest IntelliJ codebase changes. Includes fixes for issues reported by Studio users such as tweaks to Linux font sizes and font rendering.
    • অ্যান্ড্রয়েড গ্রেডল প্লাগ-ইন 0.5.0 এ আপডেট হয়েছে।

      Caution: This new version is not backwards compatible. When opening a project that uses an older version of the plug-in, Studio will show an error stating Gradle <project_name> project refresh failed.

      আপডেট করা গ্রেডল প্লাগ-ইন নিম্নলিখিত পরিবর্তনগুলি অন্তর্ভুক্ত করে:

      • Fixed IDE model to contain the output file even if it's customized through the DSL. Also fixed the DSL to get/set the output file on the variant object so that it's not necessary to use variant.packageApplication or variant.zipAlign
      • স্থির নির্ভরতা রেজোলিউশন যাতে আমরা আলাদাভাবে পরিবর্তে একসাথে (ডিফল্ট কনফিগার, বিল্ড প্রকার, স্বাদ(গুলি)) এর সমন্বয় সমাধান করি।
      • Fixed dependency for tests of library project to properly include all the dependencies of the library itself.
      • Fixed case where two dependencies have the same leaf name.
      • Fixed issue where Proguard rules file cannot be applied on flavors.

      All Gradle plugin release notes are available are here: http://tools.android.com/tech-docs/new-build-system .

    • Gradle errors from aapt no longer point to merged output files in the build/ folder, they point back to the real source locations.
    • Parallel Builds. It's now possible to use Gradle's parallel builds. Please be aware that parallel builds are in "incubation" (see Gradle's documentation .) This feature is off by default. To enable it, go to Preferences > Compiler and check the box Compile independent modules in parallel .
    • Further work on the new resource repository used for layout rendering, resource folding in the editor, and more:
      • Basic support for .aar library dependencies (eg using a library without a local copy of the sources). উত্স সম্পাদকগুলিতে সম্পদ XML বৈধতা এবং নেভিগেশনের জন্য এখনও কাজ করছে না৷
      • Cycle detection in resource references.
      • Quick Documentation (F1), which can show all translations of the string under the caret, will now also show all resource overlays from the various Gradle flavors and build types, as well as libraries. They are listed in reverse resource overlay order, with strikethrough on the versions of the string that are masked.
      • Fixes to handle updating the merged resources when the set of module dependencies change.
      • XML rendering fixes to properly handle character entity declarations and XML and unicode escapes.
    • লেআউট প্রিভিউ এবং লেআউট এডিটর উইন্ডোজের জন্য স্ক্রিনশট সমর্থন সংরক্ষণ করুন।
    • Template bug fixes.
    • লিন্ট বাগ ফিক্স।
    • Various fixes for crash reports. আপনাকে ধন্যবাদ, এবং ক্র্যাশ রিপোর্ট ফাইল করতে থাকুন!

    Android Studio v0.1.x (May 2013)

    • একটি সাধারণ উইন্ডোজ ইনস্টলেশন সমস্যার সমাধান সহ বিভিন্ন বাগ ফিক্স।

    Older releases of Android Gradle Plugin

    3.6.0 (February 2020)

    অ্যান্ড্রয়েড প্লাগইনের এই সংস্করণটির জন্য নিম্নলিখিতগুলি প্রয়োজন:

    3.6.4 (জুলাই 2020)

    এই ছোটখাট আপডেটটি Android 11-এ প্যাকেজ দৃশ্যমানতার জন্য নতুন ডিফল্ট সেটিংস এবং বৈশিষ্ট্যগুলির সাথে সামঞ্জস্যপূর্ণতা সমর্থন করে৷

    বিস্তারিত জানার জন্য 4.0.1 রিলিজ নোট দেখুন।

    নতুন বৈশিষ্ট্য

    অ্যান্ড্রয়েড গ্রেডল প্লাগইনের এই সংস্করণে নিম্নলিখিত নতুন বৈশিষ্ট্যগুলি অন্তর্ভুক্ত রয়েছে৷

    বাইন্ডিং দেখুন

    ভিউ বাইন্ডিং আপনার কোডে ভিউ উল্লেখ করার সময় কম্পাইল-টাইম নিরাপত্তা প্রদান করে। আপনি এখন findViewById() স্বয়ংক্রিয়-উত্পন্ন বাইন্ডিং ক্লাস রেফারেন্স দিয়ে প্রতিস্থাপন করতে পারেন। ভিউ বাইন্ডিং ব্যবহার শুরু করতে, প্রতিটি মডিউলের build.gradle ফাইলে নিম্নলিখিতগুলি অন্তর্ভুক্ত করুন:

          android {
              viewBinding.enabled = true
          }
          
          android {
              viewBinding.enabled = true
          }
          

    আরও জানতে, ভিউ বাইন্ডিং ডকুমেন্টেশন পড়ুন।

    Maven পাবলিশ প্লাগইনের জন্য সমর্থন

    অ্যান্ড্রয়েড গ্রেডল প্লাগইনে মাভেন পাবলিশ গ্রেডল প্লাগইনের জন্য সমর্থন অন্তর্ভুক্ত রয়েছে, যা আপনাকে Apache Maven সংগ্রহস্থলে বিল্ড আর্টিফ্যাক্ট প্রকাশ করতে দেয়। অ্যান্ড্রয়েড গ্রেডল প্লাগইন আপনার অ্যাপ বা লাইব্রেরি মডিউলে প্রতিটি বিল্ড বৈকল্পিক আর্টিফ্যাক্টের জন্য একটি উপাদান তৈরি করে যা আপনি একটি ম্যাভেন রিপোজিটরিতে একটি প্রকাশনা কাস্টমাইজ করতে ব্যবহার করতে পারেন।

    আরও জানতে, কিভাবে Maven Publish প্লাগইন ব্যবহার করবেন সে সম্পর্কে পৃষ্ঠায় যান।

    নতুন ডিফল্ট প্যাকেজিং টুল

    আপনার অ্যাপের ডিবাগ সংস্করণ তৈরি করার সময়, প্লাগইনটি আপনার APK তৈরি করতে zipflinger নামে একটি নতুন প্যাকেজিং টুল ব্যবহার করে। এই নতুন টুল বিল্ড গতি উন্নতি প্রদান করা উচিত. যদি নতুন প্যাকেজিং টুল আপনার প্রত্যাশা অনুযায়ী কাজ না করে, অনুগ্রহ করে একটি বাগ রিপোর্ট করুন । আপনি আপনার gradle.properties ফাইলে নিম্নলিখিতগুলি অন্তর্ভুক্ত করে পুরানো প্যাকেজিং টুল ব্যবহার করে ফিরে যেতে পারেন:

            android.useNewApkCreator=false
          
    নেটিভ বিল্ড অ্যাট্রিবিউশন

    আপনি এখন আপনার প্রকল্পে প্রতিটি C/C++ ফাইল তৈরি করতে এবং লিঙ্ক করতে ক্ল্যাং কত সময় নেয় তা নির্ধারণ করতে পারেন। Gradle একটি Chrome ট্রেস আউটপুট করতে পারে যাতে এই কম্পাইলার ইভেন্টগুলির জন্য টাইমস্ট্যাম্প রয়েছে যাতে আপনি আপনার প্রকল্পটি তৈরি করতে প্রয়োজনীয় সময়টি আরও ভালভাবে বুঝতে পারেন। এই বিল্ড অ্যাট্রিবিউশন ফাইলটি আউটপুট করতে, নিম্নলিখিতগুলি করুন:

    1. একটি Gradle বিল্ড চালানোর সময় পতাকা যোগ করুন -Pandroid.enableProfileJson=true । যেমন:

      gradlew assembleDebug -Pandroid.enableProfileJson=true

    2. ক্রোম ব্রাউজার খুলুন এবং সার্চ বারে chrome://tracing টাইপ করুন।

    3. লোড বোতামে ক্লিক করুন এবং ফাইলটি খুঁজতে <var>project-root</var>/build/android-profile এ নেভিগেট করুন। ফাইলটির নাম profile-<var>timestamp</var>.json.gz

    আপনি দর্শকের শীর্ষের কাছে নেটিভ বিল্ড অ্যাট্রিবিউশন ডেটা দেখতে পারেন:

    Chrome-এ নেটিভ বিল্ড অ্যাট্রিবিউশন ট্রেস

    আচরণ পরিবর্তন

    প্লাগইনটির এই সংস্করণটি ব্যবহার করার সময়, আপনি আচরণে নিম্নলিখিত পরিবর্তনগুলির সম্মুখীন হতে পারেন৷

    নেটিভ লাইব্রেরিগুলি ডিফল্টরূপে আনকম্প্রেস করা প্যাকেজ৷

    আপনি যখন আপনার অ্যাপ তৈরি করেন, তখন প্লাগইনটি ডিফল্টরূপে extractNativeLibs "false" এ সেট করে। অর্থাৎ, আপনার নেটিভ লাইব্রেরিগুলি পৃষ্ঠায় সারিবদ্ধ এবং প্যাকেজ অসঙ্কুচিত। যদিও এটি একটি বড় আপলোড আকারে পরিণত হয়, আপনার ব্যবহারকারীরা নিম্নলিখিতগুলি থেকে উপকৃত হয়:

    • ছোট অ্যাপ ইনস্টলের আকার কারণ প্ল্যাটফর্মটি লাইব্রেরির একটি অনুলিপি তৈরি না করেই ইনস্টল করা APK থেকে সরাসরি নেটিভ লাইব্রেরি অ্যাক্সেস করতে পারে।
    • ডাউনলোডের আকার ছোট কারণ প্লে স্টোরের কম্প্রেশন সাধারণত ভালো হয় যখন আপনি আপনার APK বা অ্যান্ড্রয়েড অ্যাপ বান্ডেলে আনকম্প্রেসড নেটিভ লাইব্রেরি অন্তর্ভুক্ত করেন।

    আপনি যদি চান যে অ্যান্ড্রয়েড গ্রেডল প্লাগইন এর পরিবর্তে সংকুচিত নেটিভ লাইব্রেরি প্যাকেজ করতে, আপনার অ্যাপের ম্যানিফেস্টে নিম্নলিখিতগুলি অন্তর্ভুক্ত করুন:

            <application
              android:extractNativeLibs="true"
              ... >
            </application>
            
          

    দ্রষ্টব্য: extractNativeLibs ম্যানিফেস্ট বৈশিষ্ট্যটি useLegacyPackaging DSL বিকল্প দ্বারা প্রতিস্থাপিত হয়েছে। আরও তথ্যের জন্য, রিলিজ নোট দেখুন সংকুচিত নেটিভ লাইব্রেরি প্যাকেজ করতে DSL ব্যবহার করুন

    ডিফল্ট NDK সংস্করণ

    আপনি যদি NDK-এর একাধিক সংস্করণ ডাউনলোড করেন, তাহলে Android Gradle প্লাগইন এখন আপনার সোর্স কোড ফাইল কম্পাইল করার জন্য একটি ডিফল্ট সংস্করণ নির্বাচন করে। পূর্বে, প্লাগইনটি NDK এর সর্বশেষ ডাউনলোড করা সংস্করণ নির্বাচন করেছিল। প্লাগইন-নির্বাচিত ডিফল্ট ওভাররাইড করতে মডিউলের build.gradle ফাইলে android.ndkVersion বৈশিষ্ট্য ব্যবহার করুন।

    সরলীকৃত R শ্রেণীর প্রজন্ম

    অ্যান্ড্রয়েড গ্রেডল প্লাগইন আপনার প্রোজেক্টের প্রতিটি লাইব্রেরি মডিউলের জন্য শুধুমাত্র একটি R ক্লাস তৈরি করে এবং সেই R ক্লাসগুলিকে অন্যান্য মডিউল নির্ভরতার সাথে ভাগ করে কম্পাইল ক্লাসপথকে সহজ করে। এই অপ্টিমাইজেশনের ফলে দ্রুত বিল্ড হওয়া উচিত, তবে এর জন্য আপনাকে নিম্নলিখিতগুলি মনে রাখতে হবে:

    • যেহেতু কম্পাইলার আপস্ট্রিম মডিউল নির্ভরতার সাথে R ক্লাসগুলি ভাগ করে, এটি গুরুত্বপূর্ণ যে আপনার প্রকল্পের প্রতিটি মডিউল একটি অনন্য প্যাকেজ নাম ব্যবহার করে।
    • একটি লাইব্রেরির R ক্লাসের অন্যান্য প্রকল্প নির্ভরতার দৃশ্যমানতা লাইব্রেরীকে নির্ভরতা হিসাবে অন্তর্ভুক্ত করার জন্য ব্যবহৃত কনফিগারেশন দ্বারা নির্ধারিত হয়। উদাহরণস্বরূপ, যদি লাইব্রেরি A লাইব্রেরি B কে 'api' নির্ভরতা হিসাবে অন্তর্ভুক্ত করে, লাইব্রেরি A এবং অন্যান্য লাইব্রেরিগুলি যেগুলি লাইব্রেরি A-এর উপর নির্ভর করে লাইব্রেরি B-এর R ক্লাসে অ্যাক্সেস রয়েছে। যাইহোক, অন্যান্য লাইব্রেরির লাইব্রেরি B এর R ক্লাসে অ্যাক্সেস নাও থাকতে পারে। যদি লাইব্রেরি A implementation নির্ভরতা কনফিগারেশন ব্যবহার করে। আরো জানতে, নির্ভরতা কনফিগারেশন সম্পর্কে পড়ুন।
    ডিফল্ট কনফিগারেশন থেকে অনুপস্থিত সংস্থানগুলি সরান৷

    লাইব্রেরি মডিউলগুলির জন্য, যদি আপনি এমন একটি ভাষার জন্য একটি সংস্থান অন্তর্ভুক্ত করেন যা আপনি সম্পদের ডিফল্ট সেটে অন্তর্ভুক্ত করেন না—উদাহরণস্বরূপ, আপনি যদি hello_world একটি স্ট্রিং সম্পদ হিসাবে /values-es/strings.xml এ অন্তর্ভুক্ত করেন কিন্তু আপনি সংজ্ঞায়িত করেন না /values/strings.xml এ সেই রিসোর্স - আপনার প্রোজেক্ট কম্পাইল করার সময় Android Gradle প্লাগইন আর সেই রিসোর্সটি অন্তর্ভুক্ত করে না। এই আচরণের পরিবর্তনের ফলে কম Resource Not Found রানটাইম ব্যতিক্রম এবং উন্নত বিল্ড গতি।

    D8 এখন টীকাগুলির জন্য CLASS ধরে রাখার নীতিকে সম্মান করে৷

    আপনার অ্যাপ কম্পাইল করার সময়, যখন টীকাগুলি একটি CLASS ধরে রাখার নীতি প্রয়োগ করে তখন D8 সম্মান করে এবং সেই টীকাগুলি আর রানটাইমে উপলব্ধ থাকে না। অ্যাপের টার্গেট SDK-কে API লেভেল 23-এ সেট করার সময়ও এই আচরণটি বিদ্যমান, যা আগে Android Gradle প্লাগইন এবং D8-এর পুরানো সংস্করণ ব্যবহার করে আপনার অ্যাপ কম্পাইল করার সময় রানটাইম চলাকালীন এই টীকাগুলিতে অ্যাক্সেসের অনুমতি দিয়েছিল।

    অন্যান্য আচরণ পরিবর্তন
    • aaptOptions.noCompress সমস্ত প্ল্যাটফর্মে (এপিকে এবং বান্ডেল উভয়ের জন্য) আর কেস সংবেদনশীল নয় এবং বড় হাতের অক্ষর ব্যবহার করে এমন পাথগুলিকে সম্মান করে৷
    • ডেটা বাইন্ডিং এখন ডিফল্টরূপে ক্রমবর্ধমান। আরও জানতে, সংখ্যা #110061530 দেখুন।

    • Roboelectric ইউনিট পরীক্ষা সহ সমস্ত ইউনিট পরীক্ষা, এখন সম্পূর্ণরূপে ক্যাশেযোগ্য। আরও জানতে, সংখ্যা #115873047 দেখুন।

    বাগ ফিক্স

    অ্যান্ড্রয়েড গ্রেডল প্লাগইনের এই সংস্করণে নিম্নলিখিত বাগ সংশোধনগুলি অন্তর্ভুক্ত রয়েছে:

    • রোবোলেক্ট্রিক ইউনিট পরীক্ষাগুলি এখন লাইব্রেরি মডিউলগুলিতে সমর্থিত যা ডেটা বাইন্ডিং ব্যবহার করে। আরও জানতে, সংখ্যা #126775542 দেখুন।
    • Gradle এর সমান্তরাল এক্সিকিউশন মোড সক্রিয় থাকা অবস্থায় আপনি এখন একাধিক মডিউল জুড়ে connectedAndroidTest কাজ চালাতে পারবেন।

    পরিচিত সমস্যা

    এই বিভাগে Android Gradle প্লাগইন 3.6.0-এ বিদ্যমান পরিচিত সমস্যাগুলি বর্ণনা করা হয়েছে।

    অ্যান্ড্রয়েড লিন্ট টাস্কের ধীর কর্মক্ষমতা

    অ্যান্ড্রয়েড লিন্ট এর পার্সিং পরিকাঠামোতে রিগ্রেশনের কারণে কিছু প্রকল্পে সম্পূর্ণ হতে অনেক বেশি সময় নিতে পারে, যার ফলে নির্দিষ্ট কোড কনস্ট্রাক্টে ল্যাম্বডাসের জন্য অনুমানকৃত প্রকারের গণনা ধীর হয়।

    সমস্যাটি IDEA-তে একটি বাগ হিসাবে রিপোর্ট করা হয়েছে এবং Android Gradle Plugin 4.0-এ ঠিক করা হবে।

    অনুপস্থিত ম্যানিফেস্ট ক্লাস {:#agp-missing-manifest}

    যদি আপনার অ্যাপটি তার ম্যানিফেস্টে কাস্টম অনুমতিগুলি সংজ্ঞায়িত করে, তাহলে Android Gradle প্লাগইন সাধারণত একটি Manifest.java ক্লাস তৈরি করে যা স্ট্রিং ধ্রুবক হিসাবে আপনার কাস্টম অনুমতিগুলিকে অন্তর্ভুক্ত করে। প্লাগইনটি আপনার অ্যাপের সাথে এই ক্লাসটি প্যাকেজ করে, যাতে আপনি রানটাইমে সেই অনুমতিগুলি আরও সহজে উল্লেখ করতে পারেন।

    ম্যানিফেস্ট ক্লাস তৈরি করা অ্যান্ড্রয়েড গ্রেডল প্লাগইন 3.6.0-এ ভাঙা হয়েছে। আপনি যদি প্লাগইনের এই সংস্করণটি দিয়ে আপনার অ্যাপ তৈরি করেন এবং এটি ম্যানিফেস্ট ক্লাসের উল্লেখ করে, আপনি একটি ClassNotFoundException ব্যতিক্রম দেখতে পারেন। এই সমস্যাটি সমাধান করতে, নিম্নলিখিতগুলির মধ্যে একটি করুন:

    • তাদের সম্পূর্ণ-যোগ্য নাম দ্বারা আপনার কাস্টম অনুমতি উল্লেখ করুন. উদাহরণস্বরূপ, "com.example.myapp.permission.DEADLY_ACTIVITY"

    • নীচে দেখানো হিসাবে আপনার নিজস্ব ধ্রুবক সংজ্ঞায়িত করুন:

                  public final class CustomPermissions {
                    public static final class permission {
                      public static final String DEADLY_ACTIVITY="com.example.myapp.permission.DEADLY_ACTIVITY";
                    }
                  }
                  
                

    3.5.0 (August 2019)

    Android Gradle plugin 3.5.0, along with Android Studio 3.5 , is a major release and a result of Project Marble, which is a focus on improving three main areas of the Android developer tools: system health, feature polish, and fixing bugs. Notably, improving project build speed was a main focus for this update.

    এগুলি এবং অন্যান্য প্রজেক্ট মার্বেল আপডেট সম্পর্কে তথ্যের জন্য, অ্যান্ড্রয়েড ডেভেলপারদের ব্লগ পোস্ট বা নীচের বিভাগগুলি পড়ুন৷

    অ্যান্ড্রয়েড প্লাগইনের এই সংস্করণটির জন্য নিম্নলিখিতগুলি প্রয়োজন:

    3.5.4 (July 2020)

    এই ছোটখাট আপডেটটি Android 11-এ প্যাকেজ দৃশ্যমানতার জন্য নতুন ডিফল্ট সেটিংস এবং বৈশিষ্ট্যগুলির সাথে সামঞ্জস্যপূর্ণতা সমর্থন করে৷

    বিস্তারিত জানার জন্য 4.0.1 রিলিজ নোট দেখুন।

    3.5.3 (ডিসেম্বর 2019)

    This minor update supports Android Studio 3.5.3 and includes various bug fixes and performance improvements.

    3.5.2 (নভেম্বর 2019)

    This minor update supports Android Studio 3.5.2 and includes various bug fixes and performance improvements. To see a list of noteable bug fixes, read the related post on the Release Updates blog .

    3.5.1 (অক্টোবর 2019)

    This minor update supports Android Studio 3.5.1 and includes various bug fixes and performance improvements. To see a list of noteable bug fixes, read the related post on the Release Updates blog .

    Incremental annotation processing

    The Data Binding annotation processor supports incremental annotation processing if you set android.databinding.incremental=true in your gradle.properties file. This optimization results in improved incremental build performance. For a full list of optimized annotation processors, refer to the table of incremental annotation processors .

    Additionally, KAPT 1.3.30 and higher also support incremental annotation processors, which you can enable by including kapt.incremental.apt=true in your gradle.properties file.

    Cacheable unit tests

    When you enable unit tests to use Android resources, assets, and manifests by setting includeAndroidResources to true , the Android Gradle plugin generates a test config file containing absolute paths, which breaks cache relocatability. You can instruct the plugin to instead generate the test config using relative paths, which allows the AndroidUnitTest task to be fully cacheable, by including the following in your gradle.properties file:

          android.testConfig.useRelativePath = true
        

    পরিচিত সমস্যা

    • When using Kotlin Gradle plugin 1.3.31 or earlier, you might see the following warning when building or syncing your project:

                WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced
                        with 'variant.getPackageLibraryProvider()'.
                
              

      To resolve this issue , upgrade the plugin to version 1.3.40 or higher.

    3.4.0 (April 2019)

    অ্যান্ড্রয়েড প্লাগইনের এই সংস্করণটির জন্য নিম্নলিখিতগুলি প্রয়োজন:

    3.4.3 (July 2020)

    এই ছোটখাট আপডেটটি Android 11-এ প্যাকেজ দৃশ্যমানতার জন্য নতুন ডিফল্ট সেটিংস এবং বৈশিষ্ট্যগুলির সাথে সামঞ্জস্যপূর্ণতা সমর্থন করে৷

    বিস্তারিত জানার জন্য 4.0.1 রিলিজ নোট দেখুন।

    3.4.2 (July 2019)

    This minor update supports Android Studio 3.4.2 and includes various bug fixes and performance improvements. To see a list of noteable bug fixes, read the related post on the Release Updates blog .

    3.4.1 (May 2019)

    This minor update supports Android Studio 3.4.1 and includes various bug fixes and performance improvements. To see a list of noteable bug fixes, read the related post on the Release Updates blog .

    নতুন বৈশিষ্ট্য

    • New lint check dependency configurations: The behavior of lintChecks has changed and a new dependency configuration, lintPublish , has been introduced to give you more control over which lint checks are packaged in your Android libraries.

      • lintChecks : This is an existing configuration that you should use for lint checks you want to only run when building your project locally. If you were previously using the lintChecks dependency configuration to include lint checks in the published AAR, you need to migrate those dependencies to instead use the new lintPublish configuration described below.
      • lintPublish : Use this new configuration in library projects for lint checks you want to include in the published AAR, as shown below. This means that projects that consume your library also apply those lint checks.

      The following code sample uses both dependency configurations in a local Android library project.

      dependencies {
        // Executes lint checks from the ':lint' project at build time.
        lintChecks project(':lint')
        // Packages lint checks from the ':lintpublish' in the published AAR.
        lintPublish project(':lintpublish')
      }
              
      dependencies {
        // Executes lint checks from the ':lint' project at build time.
        lintChecks(project(":lint"))
        // Packages lint checks from the ':lintpublish' in the published AAR.
        lintPublish(project(":lintpublish"))
          }
              
      • In general, packaging and signing tasks should see an overall build speed improvement. If you notice a performance regression related to these tasks, please report a bug .

    আচরণ পরিবর্তন

    • Android Instant Apps Feature plugin deprecation warning: If you're still using the com.android.feature plugin to build your instant app, Android Gradle plugin 3.4.0 will give throw you a deprecation warning. To make sure you can still build you instant app on future versions of the plugin, migrate your instant app to using the dynamic feature plugin , which also allows you to publish both your installed and instant app experiences from a single Android App Bundle.

    • R8 enabled by default: R8 integrates desugaring, shrinking, obfuscating, optimizing, and dexing all in one step—resulting in noticeable build performance improvements . R8 was introduced in Android Gradle plugin 3.3.0 and is now enabled by default for both app and Android library projects using plugin 3.4.0 and higher.

    The image below provides a high-level overview of the compile process before R8 was introduced.

    Before R8, ProGuard was a different compile step from dexing and
              desugaring.

    Now, with R8, desugaring, shrinking, obfuscating, optimizing, and dexing (D8) are all completed in one step, as illustrated below.

    With R8, desugaring, shrinking, obfuscating, optimizing, and
      dexing are all performed in a single compile step.

    Keep in mind, R8 is designed to work with your existing ProGuard rules, so you'll likely not need to take any actions to benefit from R8. However, because it's a different technology to ProGuard that's designed specifically for Android projects, shrinking and optimization may result in removing code that ProGuard may have not. So, in this unlikely situation, you might need to add additional rules to keep that code in your build output.

    If you experience issues using R8, read the R8 compatibility FAQ to check if there's a solution to your issue. If a solution isn't documented, please report a bug . You can disable R8 by adding one of the following lines to your project's gradle.properties file:

          # Disables R8 for Android Library modules only.
          android.enableR8.libraries = false
          # Disables R8 for all modules.
          android.enableR8 = false
          
        

    Note: For a given build type, if you set useProguard to false in your app module's build.gradle file, the Android Gradle plugin uses R8 to shrink your app's code for that build type, regardless of whether you disable R8 in your project's gradle.properties ফাইল।

    • ndkCompile is deprecated: You now get a build error if you try to use ndkBuild to compile your native libraries. You should instead use either CMake or ndk-build to Add C and C++ code to your project .

    পরিচিত সমস্যা

    • The correct usage of unique package names are currently not enforced but will become more strict on later versions of the plugin. On Android Gradle plugin version 3.4.0, you can opt-in to check whether your project declares acceptable package names by adding the line below to your gradle.properties file.

                android.uniquePackageNames = true
                
              

      To learn more about setting a package name through the Android Gradle plugin, see Set the application ID .

    3.3.0 (January 2019)

    অ্যান্ড্রয়েড প্লাগইনের এই সংস্করণটির জন্য নিম্নলিখিতগুলি প্রয়োজন:

    3.3.3 (July 2020)

    এই ছোটখাট আপডেটটি Android 11-এ প্যাকেজ দৃশ্যমানতার জন্য নতুন ডিফল্ট সেটিংস এবং বৈশিষ্ট্যগুলির সাথে সামঞ্জস্যপূর্ণতা সমর্থন করে৷

    বিস্তারিত জানার জন্য 4.0.1 রিলিজ নোট দেখুন।

    3.3.2 (March 2019)

    This minor update supports Android Studio 3.3.2 and includes various bug fixes and performance improvements. To see a list of noteable bug fixes, read the related post on the Release Updates blog .

    3.3.1 (February 2019)

    This minor update supports Android Studio 3.3.1 and includes various bug fixes and performance improvements.

    নতুন বৈশিষ্ট্য

    • Improved classpath synchronization: When resolving dependencies on your runtime and compile time classpaths, the Android Gradle plugin attempts to fix certain downstream version conflicts for dependencies that appear across multiple classpaths.

      For example, if the runtime classpath includes Library A version 2.0 and the compile classpath includes Library A version 1.0, the plugin automatically updates the dependency on the compile classpath to Library A version 2.0 to avoid errors.

      However, if the runtime classpath includes Library A version 1.0 and the compile includes Library A version 2.0, the plugin does not downgrade the dependency on the compile classpath to Library A version 1.0, and you will get an error. To learn more, see Fix conflicts between classpaths .

    • Improved incremental Java compilation when using annotation processors: This update decreases build time by improving support for incremental Java compilation when using annotation processors.

      Note: This feature is compatible with Gradle 4.10.1 and higher, except Gradle 5.1 due to Gradle issue 8194 .

      • For projects using Kapt (most Kotlin-only projects and Kotlin-Java hybrid projects): Incremental Java compilation is enabled, even when you use data binding or the retro-lambda plugin. Annotation processing by the Kapt task is not yet incremental.

      • For projects not using Kapt (Java-only projects): If the annotation processors you use all support incremental annotation processing , incremental Java compilation is enabled by default. To monitor incremental annotation processor adoption, watch Gradle issue 5277 .

        If, however, one or more annotation processors do not support incremental builds, incremental Java compilation is not enabled. Instead, you can include the following flag in your gradle.properties file:

        android.enableSeparateAnnotationProcessing=true
                    

        When you include this flag, the Android Gradle plugin executes the annotation processors in a separate task and allows the Java compilation task to run incrementally.

    • Better debug info when using obsolete API: When the plugin detects that you're using an API that's no longer supported, it can now provide more-detailed information to help you determine where that API is being used. To see the additional info, you need to include the following in your project's gradle.properties file:

                android.debug.obsoleteApi=true
              

      You can also enable the flag by passing -Pandroid.debug.obsoleteApi=true from the command line.

    • You can run instrumentation tests on feature modules from the command line.

    আচরণ পরিবর্তন

    • Lazy task configuration: The plugin now uses Gradle's new task creation API to avoid initializing and configuring tasks that are not required to complete the current build (or tasks not on the execution task graph). For example, if you have multiple build variants, such as “release” and “debug” build variants, and you're building the “debug” version of your app, the plugin avoids initializing and configuring tasks for the “release” version of আপনার অ্যাপ।

      Calling certain older methods in the Variants API, such as variant.getJavaCompile() , might still force task configuration. To make sure that your build is optimized for lazy task configuration, invoke new methods that instead return a TaskProvider object, such as variant.getJavaCompileProvider() .

      If you execute custom build tasks, learn how to adapt to Gradle's new task-creation API .

    • For a given build type, when setting useProguard false , the plugin now uses R8 instead of ProGuard to shrink and obfuscate your app's code and resources. To learn more about R8, read this blog post from the Android Developer's Blog.

    • Faster R class generation for library projects: Previously, the Android Gradle plugin would generate an R.java file for each of your project's dependencies and then compile those R classes alongside your app's other classes. The plugin now generates a JAR containing your app's compiled R class directly, without first building intermediate R.java classes. This optimization may significantly improve build performance for projects that include many library subprojects and dependencies, and improve the indexing speed in Android Studio.

    • When building an Android App Bundle , APKs generated from that app bundle that target Android 6.0 (API level 23) or higher now include uncompressed versions of your native libraries by default. This optimization avoids the need for the device to make a copy of the library and thus reduces the on-disk size of your app. If you'd rather disable this optimization, add the following to your gradle.properties file:

      android.bundle.enableUncompressedNativeLibs = false
              
    • The plugin enforces minimum versions of some third-party plugins.

    • Single-variant project sync : Syncing your project with your build configuration is an important step in letting Android Studio understand how your project is structured. However, this process can be time-consuming for large projects. If your project uses multiple build variants, you can now optimize project syncs by limiting them to only the variant you have currently selected.

      You need to use Android Studio 3.3 or higher with Android Gradle Plugin 3.3.0 or higher to enable this optimization. When you meet these requirements, the IDE prompts you to enable this optimization when you sync your project. The optimization is also enabled by default on new projects.

      To enable this optimization manually, click File > Settings > Experimental > Gradle ( Android Studio > Preferences > Experimental > Gradle on a Mac) and select the Only sync the active variant checkbox.

      Note : This optimization fully supports projects that include Java and C++ languages, and has some support for Kotlin. When enabling the optimization for projects with Kotlin content, Gradle sync falls back to using full variants internally.

    • Automatic downloading of missing SDK packages : This functionality has been expanded to support NDK. To learn more, read Auto-download missing packages with Gradle .

    বাগ ফিক্স

    • Android Gradle plugin 3.3.0 fixes the following issues:

      • The build process calling android.support.v8.renderscript.RenderScript instead of the AndroidX version, despite Jetifier being enabled
      • Clashes due to androidx-rs.jar including statically bundled annotation.AnyRes
      • When using RenderScript, you no longer have to manually set the Build Tools version in your build.gradle files

    3.2.0 (September 2018)

    অ্যান্ড্রয়েড প্লাগইনের এই সংস্করণটির জন্য নিম্নলিখিতগুলি প্রয়োজন:

    3.2.1 (October 2018)

    With this update, you no longer need to specify a version for the SDK Build Tools. The Android Gradle plugin now uses version 28.0.3 by default.

    নতুন বৈশিষ্ট্য

    • Support for building Android App Bundles: The app bundle is a new upload format that includes all your app's compiled code and resources while deferring APK generation and signing to the Google Play Store. You no longer have to build, sign, and manage multiple APKs, and users get smaller downloads that are optimized for their device. To learn more, read About Android App Bundles .

    • Support for improved incremental build speeds when using annotation processors: The AnnotationProcessorOptions DSL now extends CommandLineArgumentProvider , which enables either you or the annotation processor author to annotate arguments for the processor using incremental build property type annotations . Using these annotations improves the correctness and performance of incremental and cached clean builds. To learn more, read Pass arguments to annotation processors .

    • Migration tool for AndroidX: When using Android Gradle plugin 3.2.0 with Android 3.2 and higher, you can migrate your project's local and Maven dependencies to use the new AndroidX libraries by selecting Refactor > Migrate to AndroidX from the menu bar. Using this migration tool also sets the following flags to true in your gradle.properties file:

      • android.useAndroidX : true সেট করা হলে, Android প্লাগইন একটি সমর্থন লাইব্রেরির পরিবর্তে উপযুক্ত AndroidX লাইব্রেরি ব্যবহার করে। When this flag is not specified, the plugin sets it to false by default.

      • android.enableJetifier : true সেট করা হলে, অ্যান্ড্রয়েড প্লাগইন স্বয়ংক্রিয়ভাবে বিদ্যমান তৃতীয় পক্ষের লাইব্রেরিগুলিকে তাদের বাইনারিগুলি পুনরায় লেখার মাধ্যমে AndroidX ব্যবহার করতে স্থানান্তরিত করে৷ When this flag is not specified, the plugin sets it to false by default. You can set this flag to true only while android.useAndroidX is also set to true , otherwise you get a build error.

        To learn more, read the AndroidX overview .

    • New code shrinker, R8: R8 is a new tool for code shrinking and obfuscation that replaces ProGuard. You can start using the preview version of R8 by including the following in your project's gradle.properties file:

              android.enableR8 = true
              
              android.enableR8 = true
              

    আচরণ পরিবর্তন

    • Desugaring with D8 is now enabled by default.

    • AAPT2 is now on Google's Maven repo. To use AAPT2, make sure that you have the google() dependency in your build.gradle file, as shown below:

                buildscript {
                      repositories {
                          google() // here
                          jcenter()
                      }
                      dependencies {
                          classpath 'com.android.tools.build:gradle:3.2.0'
                      }
                  }
                  allprojects {
                      repositories {
                          google() // and here
                          jcenter()
                  }
                
                buildscript {
                      repositories {
                          google() // here
                          jcenter()
                      }
                      dependencies {
                          classpath 'com.android.tools.build:gradle:3.2.0'
                      }
                  }
                  allprojects {
                      repositories {
                          google() // and here
                          jcenter()
                  }
                
    • Native multidex is now enabled by default. Previous versions of Android Studio enabled native multidex when deploying the debug version of an app to a device running Android API level 21 or higher. Now, whether you're deploying to a device or building an APK for release, the Android Gradle plugin enables native multidex for all modules that set minSdkVersion=21 or higher.

    • The plugin now enforces a minimum version of the protobuf plugin (0.8.6), Kotlin plugin (1.2.50), and Crashlytics plugin (1.25.4).

    • The feature module plugin, com.android.feature , now enforces the use of only letters, digits, and underscores when specifying a module name. For example, if your feature module name includes dashes, you get a build error. This behavior matches that of the dynamic feature plugin.

    বাগ ফিক্স

    3.1.0 (March 2018)

    অ্যান্ড্রয়েড প্লাগইনের এই সংস্করণটির জন্য নিম্নলিখিতগুলি প্রয়োজন:

    • Gradle 4.4 or higher.

      আরও জানতে, Gradle আপডেট করার বিষয়ে বিভাগটি পড়ুন।

    • Build Tools 27.0.3 or higher.

      Keep in mind, you no longer need to specify a version for the build tools using the android.buildToolsVersion property—the plugin uses the minimum required version by default.

    New DEX compiler, D8

    By default, Android Studio now uses a new DEX compiler called D8. DEX compilation is the process of transforming .class bytecode into .dex bytecode for the Android Runtime (or Dalvik, for older versions of Android). Compared to the previous compiler, called DX, D8 compiles faster and outputs smaller DEX files, all while having the same or better app runtime performance.

    D8 shouldn't change your day-to-day app development workflow. However, if you experience any issues related to the new compiler, please report a bug . You can temporarily disable D8 and use DX by including the following in your project's gradle.properties file:

          android.enableD8=false
        

    For projects that use Java 8 language features , incremental desugaring is enabled by default. You can disable it by specifying the following in your project's gradle.properties file:

          android.enableIncrementalDesugaring=false.
        

    Preview users: If you're already using a preview version of D8, note that it now compiles against libraries included in the SDK build tools —not the JDK. So, if you are accessing APIs that exist in the JDK but not in the SDK build tools libraries, you get a compile error.

    আচরণ পরিবর্তন

    • When building multiple APKs that each target a different ABI, the no longer generates APKs for the following ABIs by default: mips , mips64 , and armeabi .

      If you want to build APKs that target these ABIs, you must use NDK r16b or lower and specify the ABIs in your build.gradle file, as shown below:

                splits {
                    abi {
                        include 'armeabi', 'mips', 'mips64'
                        ...
                    }
                }
              
                splits {
                    abi {
                        include("armeabi", "mips", "mips64")
                        ...
                    }
                }
              
    • The Android plugin's build cache now evicts cache entries that are older than 30 days.

    • Passing "auto" to resConfig no longer automatically picks string resources to package into your APK. If you continue to use "auto" , the plugin packages all string resources your app and its dependencies provide. So, you should instead specify each locale that you want the plugin to package into your APK.

    • Because local modules can't depend on your app's test APK, adding dependencies to your instrumented tests using the androidTestApi configuration, instead of androidTestImplementation , causes Gradle to issue the following warning:

              WARNING: Configuration 'androidTestApi' is obsolete
              and has been replaced with 'androidTestImplementation'
              
              WARNING: Configuration 'androidTestApi' is obsolete
              and has been replaced with 'androidTestImplementation'
              

    সংশোধন করে

    • Fixes an issue where Android Studio doesn't properly recognize dependencies in composite builds.
    • Fixes an issue where you get a project sync error when loading the Android plugin multiple times in a single build–for example, when multiple subprojects each include the Android plugin in their buildscript classpath.

    3.0.0 (October 2017)

    Android Gradle plugin 3.0.0 includes a variety of changes that aim to address performance issues of large projects.

    For example, on a sample skeleton project with ~130 modules and a large number of external dependencies (but no code or resources), you can experience performance improvements similar to the following:

    Android plugin version + Gradle version Android plugin 2.2.0 + Gradle 2.14.1 Android plugin 2.3.0 + Gradle 3.3 Android plugin 3.0.0 + Gradle 4.1
    Configuration (eg running ./gradlew --help ) ~2 mins ~9 সেকেন্ড ~2.5 s
    1-line Java change (implementation change) ~2 mins 15 s ~29 s ~6.4 s

    Some of these changes break existing builds. So, you should consider the\ effort of migrating your project before using the new plugin.

    If you don't experience the performance improvements described above, please file a bug and include a trace of your build using the Gradle Profiler .

    অ্যান্ড্রয়েড প্লাগইনের এই সংস্করণটির জন্য নিম্নলিখিতগুলি প্রয়োজন:

    • Gradle 4.1 or higher. আরও জানতে, Gradle আপডেট করার বিষয়ে বিভাগটি পড়ুন।
    • Build Tools 26.0.2 or higher. With this update, you no longer need to specify a version for the build tools—the plugin uses the minimum required version by default. So, you can now remove the android.buildToolsVersion property.

    3.0.1 (November 2017)

    This is a minor update to support Android Studio 3.0.1, and includes general bug fixes and performance improvements.

    অপ্টিমাইজেশন

    • Better parallelism for multi-module projects through a fine grained task graph.
    • When making changes to dependency, Gradle performs faster builds by not re-compiling modules that do not have access to that dependency's API. You should restrict which dependencies leak their APIs to other modules by using Gradle's new dependency configurations : implementation , api , compileOnly , and runtimeOnly .
    • Faster incremental build speed due to per-class dexing. Each class is now compiled into separate DEX files, and only the classes that are modified are re-dexed. You should also expect improved build speeds for apps that set minSdkVersion to 20 or lower, and use legacy multi-dex .
    • Improved build speeds by optimizing certain tasks to use chached outputs. To benefit from this optimization, you need to first enable the Gradle build cache .
    • Improved incremental resource processing using AAPT2, which is now enabled by default. If you are experiencing issues while using AAPT2, please report a bug . You can also disable AAPT2 by setting android.enableAapt2=false in your gradle.properties file and restarting the Gradle daemon by running ./gradlew --stop from the command line.

    নতুন বৈশিষ্ট্য

    • Variant-aware dependency management . When building a certain variant of a module, the plugin now automatically matches variants of local library module dependencies to the variant of the module you are building.
    • Includes a new Feature module plugin to support Android Instant Apps and the Android Instant Apps SDK (which you can download using the SDK manager ). To learn more about creating Feature modules with the new plugin, read Structure of an instant app with multiple features .
    • Built-in support for using certain Java 8 language features and Java 8 libraries. Jack is now deprecated and no longer required , and you should first disable Jack to use the improved Java 8 support built into the default toolchain. For more information, read Use Java 8 language features .
    • Added support for running tests with Android Test Orchestrator , which allows you to run each of your app's tests within its own invocation of Instrumentation. Because each test runs in its own Instrumentation instance, any shared state between tests doesn't accumulate on your device's CPU or memory. And, even if one test crashes, it takes down only its own instance of Instrumentation, so your other tests still run.

      • Added testOptions.execution to determine whether to use on-device test orchestration. If you want to use Android Test Orchestrator , you need to specify ANDROID_TEST_ORCHESTRATOR , as shown below. By default, this property is set to HOST , which disables on-device orchestration and is the standard method of running tests.

      গ্রোভি

              android {
                testOptions {
                  execution 'ANDROID_TEST_ORCHESTRATOR'
                }
              }
              

      কোটলিন

              android {
                testOptions {
                  execution = "ANDROID_TEST_ORCHESTRATOR"
                }
              }
              
    • New androidTestUtil dependency configuration allows you to install another test helper APK before running your instrumentation tests, such as Android Test Orchestrator:

      গ্রোভি

              dependencies {
                androidTestUtil 'com.android.support.test:orchestrator:1.0.0'
                ...
              }
              

      কোটলিন

              dependencies {
                androidTestUtil("com.android.support.test:orchestrator:1.0.0")
                ...
              }
              
    • Added testOptions.unitTests.includeAndroidResources to support unit tests that require Android resources, such as Roboelectric . When you set this property to true , the plugin performs resource, asset, and manifest merging before running your unit tests. Your tests can then inspect com/android/tools/test_config.properties on the classpath for the following keys:

      • android_merged_assets : the absolute path to the merged assets directory.

        Note: For library modules, the merged assets do not contain the assets of dependencies (see issue #65550419 ).

      • android_merged_manifest : the absolute path to the merged manifest file.

      • android_merged_resources : the absolute path to the merged resources directory, which contains all the resources from the module and all its dependencies.

      • android_custom_package : the package name of the final R class. If you dynamically modify the application ID, this package name may not match the package attribute in the app's manifest.

    • Support for fonts as resources (which is a new feature introduced in Android 8.0 (API level 26) ).
    • Support for language-specific APKs with Android Instant Apps SDK 1.1 and higher.
    • You can now change the output directory for your external native build project, as shown below:

      গ্রোভি

              android {
                  ...
                  externalNativeBuild {
                      // For ndk-build, instead use the ndkBuild block.
                      cmake {
                          ...
                          // Specifies a relative path for outputs from external native
                          // builds. You can specify any path that's not a subdirectory
                          // of your project's temporary build/ directory.
                          buildStagingDirectory "./outputs/cmake"
                      }
                  }
              }
              

      কোটলিন

              android {
                  ...
                  externalNativeBuild {
                      // For ndk-build, instead use the ndkBuild block.
                      cmake {
                          ...
                          // Specifies a relative path for outputs from external native
                          // builds. You can specify any path that's not a subdirectory
                          // of your project's temporary build/ directory.
                          buildStagingDirectory = "./outputs/cmake"
                      }
                  }
              }
              
    • You can now use CMake 3.7 or higher when building native projects from Android Studio.
    • New lintChecks dependency configuration allows you to build a JAR that defines custom lint rules, and package it into your AAR and APK projects.

      Your custom lint rules must belong to a separate project that outputs a single JAR and includes only compileOnly dependencies. Other app and library modules can then depend on your lint project using the lintChecks configuration:

      গ্রোভি

              dependencies {
                  // This tells the Gradle plugin to build ':lint-checks' into a lint.jar file
                  // and package it with your module. If the module is an Android library,
                  // other projects that depend on it automatically use the lint checks.
                  // If the module is an app, lint includes these rules when analyzing the app.
                  lintChecks project(':lint-checks')
              }
              

      কোটলিন

              dependencies {
                  // This tells the Gradle plugin to build ':lint-checks' into a lint.jar file
                  // and package it with your module. If the module is an Android library,
                  // other projects that depend on it automatically use the lint checks.
                  // If the module is an app, lint includes these rules when analyzing the app.
                  lintChecks(project(":lint-checks"))
              }
              

    আচরণ পরিবর্তন

    • Android plugin 3.0.0 removes certain APIs, and your build will break if you use them. For example, you can no longer use the Variants API to access outputFile() objects or use processManifest.manifestOutputFile() to get the manifest file for each variant. To learn more, read API changes .
    • You no longer need to specify a version for the build tools (so, you can now remove the android.buildToolsVersion property). By default, the plugin automatically uses the minimum required build tools version for the version of Android plugin you're using.
    • You now enable/disable PNG crunching in the buildTypes block, as shown below. PNG crunching is enabled by default for all builds except debug builds because it increases build times for projects that include many PNG files. So, to improve build times for other build types, you should either disable PNG crunching or convert your images to WebP .

      গ্রোভি

            android {
              buildTypes {
                release {
                  // Disables PNG crunching for the release build type.
                  crunchPngs false
                }
              }
            }
            

      কোটলিন

            android {
              buildTypes {
                release {
                  // Disables PNG crunching for the release build type.
                  isCrunchPngs = false
                }
              }
            }
            
    • The Android plugin now automatically builds executable targets that you configure in your external CMake projects.
    • You must now add annotation processors to the processor classpath using the annotationProcessor dependency configuration.
    • Using the deprecated ndkCompile is now more restricted. You should instead migrate to using either CMake or ndk-build to compile native code that you want to package into your APK. To learn more, read Migrate from ndkcompile .

    3.0.0 (October 2017)

    Android Gradle plugin 3.0.0 includes a variety of changes that aim to address performance issues of large projects.

    For example, on a sample skeleton project with ~130 modules and a large number of external dependencies (but no code or resources), you can experience performance improvements similar to the following:

    Android plugin version + Gradle version Android plugin 2.2.0 + Gradle 2.14.1 Android plugin 2.3.0 + Gradle 3.3 Android plugin 3.0.0 + Gradle 4.1
    Configuration (eg running ./gradlew --help ) ~2 mins ~9 সেকেন্ড ~2.5 s
    1-line Java change (implementation change) ~2 mins 15 s ~29 s ~6.4 s

    Some of these changes break existing builds. So, you should consider the\ effort of migrating your project before using the new plugin.

    If you don't experience the performance improvements described above, please file a bug and include a trace of your build using the Gradle Profiler .

    অ্যান্ড্রয়েড প্লাগইনের এই সংস্করণটির জন্য নিম্নলিখিতগুলি প্রয়োজন:

    • Gradle 4.1 or higher. আরও জানতে, Gradle আপডেট করার বিষয়ে বিভাগটি পড়ুন।
    • Build Tools 26.0.2 or higher. With this update, you no longer need to specify a version for the build tools—the plugin uses the minimum required version by default. So, you can now remove the android.buildToolsVersion property.

    3.0.1 (November 2017)

    This is a minor update to support Android Studio 3.0.1, and includes general bug fixes and performance improvements.

    অপ্টিমাইজেশন

    • Better parallelism for multi-module projects through a fine grained task graph.
    • When making changes to dependency, Gradle performs faster builds by not re-compiling modules that do not have access to that dependency's API. You should restrict which dependencies leak their APIs to other modules by using Gradle's new dependency configurations : implementation , api , compileOnly , and runtimeOnly .
    • Faster incremental build speed due to per-class dexing. Each class is now compiled into separate DEX files, and only the classes that are modified are re-dexed. You should also expect improved build speeds for apps that set minSdkVersion to 20 or lower, and use legacy multi-dex .
    • Improved build speeds by optimizing certain tasks to use chached outputs. To benefit from this optimization, you need to first enable the Gradle build cache .
    • Improved incremental resource processing using AAPT2, which is now enabled by default. If you are experiencing issues while using AAPT2, please report a bug . You can also disable AAPT2 by setting android.enableAapt2=false in your gradle.properties file and restarting the Gradle daemon by running ./gradlew --stop from the command line.

    নতুন বৈশিষ্ট্য

    • Variant-aware dependency management . When building a certain variant of a module, the plugin now automatically matches variants of local library module dependencies to the variant of the module you are building.
    • Includes a new Feature module plugin to support Android Instant Apps and the Android Instant Apps SDK (which you can download using the SDK manager ). To learn more about creating Feature modules with the new plugin, read Structure of an instant app with multiple features .
    • Built-in support for using certain Java 8 language features and Java 8 libraries. Jack is now deprecated and no longer required , and you should first disable Jack to use the improved Java 8 support built into the default toolchain. For more information, read Use Java 8 language features .
    • Added support for running tests with Android Test Orchestrator , which allows you to run each of your app's tests within its own invocation of Instrumentation. Because each test runs in its own Instrumentation instance, any shared state between tests doesn't accumulate on your device's CPU or memory. And, even if one test crashes, it takes down only its own instance of Instrumentation, so your other tests still run.

      • Added testOptions.execution to determine whether to use on-device test orchestration. If you want to use Android Test Orchestrator , you need to specify ANDROID_TEST_ORCHESTRATOR , as shown below. By default, this property is set to HOST , which disables on-device orchestration and is the standard method of running tests.

      গ্রোভি

              android {
                testOptions {
                  execution 'ANDROID_TEST_ORCHESTRATOR'
                }
              }
              

      কোটলিন

              android {
                testOptions {
                  execution = "ANDROID_TEST_ORCHESTRATOR"
                }
              }
              
    • New androidTestUtil dependency configuration allows you to install another test helper APK before running your instrumentation tests, such as Android Test Orchestrator:

      গ্রোভি

              dependencies {
                androidTestUtil 'com.android.support.test:orchestrator:1.0.0'
                ...
              }
              

      কোটলিন

              dependencies {
                androidTestUtil("com.android.support.test:orchestrator:1.0.0")
                ...
              }
              
    • Added testOptions.unitTests.includeAndroidResources to support unit tests that require Android resources, such as Roboelectric . When you set this property to true , the plugin performs resource, asset, and manifest merging before running your unit tests. Your tests can then inspect com/android/tools/test_config.properties on the classpath for the following keys:

      • android_merged_assets : the absolute path to the merged assets directory.

        Note: For library modules, the merged assets do not contain the assets of dependencies (see issue #65550419 ).

      • android_merged_manifest : the absolute path to the merged manifest file.

      • android_merged_resources : the absolute path to the merged resources directory, which contains all the resources from the module and all its dependencies.

      • android_custom_package : the package name of the final R class. If you dynamically modify the application ID, this package name may not match the package attribute in the app's manifest.

    • Support for fonts as resources (which is a new feature introduced in Android 8.0 (API level 26) ).
    • Support for language-specific APKs with Android Instant Apps SDK 1.1 and higher.
    • You can now change the output directory for your external native build project, as shown below:

      গ্রোভি

              android {
                  ...
                  externalNativeBuild {
                      // For ndk-build, instead use the ndkBuild block.
                      cmake {
                          ...
                          // Specifies a relative path for outputs from external native
                          // builds. You can specify any path that's not a subdirectory
                          // of your project's temporary build/ directory.
                          buildStagingDirectory "./outputs/cmake"
                      }
                  }
              }
              

      কোটলিন

              android {
                  ...
                  externalNativeBuild {
                      // For ndk-build, instead use the ndkBuild block.
                      cmake {
                          ...
                          // Specifies a relative path for outputs from external native
                          // builds. You can specify any path that's not a subdirectory
                          // of your project's temporary build/ directory.
                          buildStagingDirectory = "./outputs/cmake"
                      }
                  }
              }
              
    • You can now use CMake 3.7 or higher when building native projects from Android Studio.
    • New lintChecks dependency configuration allows you to build a JAR that defines custom lint rules, and package it into your AAR and APK projects.

      Your custom lint rules must belong to a separate project that outputs a single JAR and includes only compileOnly dependencies. Other app and library modules can then depend on your lint project using the lintChecks configuration:

      গ্রোভি

              dependencies {
                  // This tells the Gradle plugin to build ':lint-checks' into a lint.jar file
                  // and package it with your module. If the module is an Android library,
                  // other projects that depend on it automatically use the lint checks.
                  // If the module is an app, lint includes these rules when analyzing the app.
                  lintChecks project(':lint-checks')
              }
              

      কোটলিন

              dependencies {
                  // This tells the Gradle plugin to build ':lint-checks' into a lint.jar file
                  // and package it with your module. If the module is an Android library,
                  // other projects that depend on it automatically use the lint checks.
                  // If the module is an app, lint includes these rules when analyzing the app.
                  lintChecks(project(":lint-checks"))
              }
              

    আচরণ পরিবর্তন

    • Android plugin 3.0.0 removes certain APIs, and your build will break if you use them. For example, you can no longer use the Variants API to access outputFile() objects or use processManifest.manifestOutputFile() to get the manifest file for each variant. To learn more, read API changes .
    • You no longer need to specify a version for the build tools (so, you can now remove the android.buildToolsVersion property). By default, the plugin automatically uses the minimum required build tools version for the version of Android plugin you're using.
    • You now enable/disable PNG crunching in the buildTypes block, as shown below. PNG crunching is enabled by default for all builds except debug builds because it increases build times for projects that include many PNG files. So, to improve build times for other build types, you should either disable PNG crunching or convert your images to WebP .

      গ্রোভি

            android {
              buildTypes {
                release {
                  // Disables PNG crunching for the release build type.
                  crunchPngs false
                }
              }
            }
            

      কোটলিন

            android {
              buildTypes {
                release {
                  // Disables PNG crunching for the release build type.
                  isCrunchPngs = false
                }
              }
            }
            
    • The Android plugin now automatically builds executable targets that you configure in your external CMake projects.
    • You must now add annotation processors to the processor classpath using the annotationProcessor dependency configuration.
    • Using the deprecated ndkCompile is now more restricted. You should instead migrate to using either CMake or ndk-build to compile native code that you want to package into your APK. To learn more, read Migrate from ndkcompile .

    2.3.0 (February 2017)

    2.3.3 (June 2017)

    This is a minor update that adds compatibility with Android Studio 2.3.3 .

    2.3.2 (May 2017)

    This is a minor update that adds compatibility with Android Studio 2.3.2 .

    2.3.1 (April 2017)

    This is a minor update to Android plugin 2.3.0 that fixes an issue where some physical Android devices did not work properly with Instant Run (see Issue #235879 ).

    নির্ভরতা:
    নতুন:
    • Uses Gradle 3.3, which includes performance improvements and new features. For more details, see the Gradle release notes .
    • Build cache : stores certain outputs that the Android plugin generates when building your project (such as unpackaged AARs and pre-dexed remote dependencies). Your clean builds are much faster while using the cache because the build system can simply reuse those cached files during subsequent builds, instead of recreating them. Projects using Android plugin 2.3.0 and higher use the build cache by default. To learn more, read Improve Build Speed with Build Cache .
      • Includes a cleanBuildCache task that clears the build cache .
      • If you are using the experimental version of build cache (included in earlier versions of the plugin), you should update your plugin to the latest version.
    পরিবর্তন:

    2.2.0 (September 2016)

    নির্ভরতা:
    নতুন:
    • Uses Gradle 2.14.1, which includes performance improvements and new features, and fixes a security vulnerability that allows local privilege escalation when using the Gradle daemon. For more details, see the Gradle release notes .
    • Using the externalNativeBuild {} DSL, Gradle now lets you link to your native sources and compile native libraries using CMake or ndk-build. After building your native libraries, Gradle packages them into your APK. To learn more about using CMake and ndk-build with Gradle, read Add C and C++ Code to Your Project .
    • When you run a build from the command line , Gradle now attempts to auto-download any missing SDK components or updates that your project depends on. To learn more, read Auto-download missing packages with Gradle .
    • A new experimental caching feature lets Gradle speed up build times by pre-dexing, storing, and reusing the pre-dexed versions of your libraries. To learn more about using this experimental feature, read the Build Cache guide.
    • Improves build performance by adopting a new default packaging pipeline which handles zipping, signing, and zipaligning in one task. You can revert to using the older packaging tools by adding android.useOldPackaging=true to your gradle.properties file. While using the new packaging tool, the zipalignDebug task is not available. However, you can create one yourself by calling the createZipAlignTask(String taskName, File inputFile, File outputFile) method.
    • APK signing now uses APK Signature Scheme v2 in addition to traditional JAR signing. All Android platforms accept the resulting APKs. Any modification to these APKs after signing invalidates their v2 signatures and prevents installation on a device. To disable this feature, add the following to your module-level build.gradle file:

      গ্রোভি

      android {
        ...
        signingConfigs {
          config {
            ...
            v2SigningEnabled false
          }
        }
      }
            

      কোটলিন

      android {
        ...
        signingConfigs {
          create("config") {
            ...
            v2SigningEnabled = false
          }
        }
      }
            
    • For multidex builds, you can now use ProGuard rules to determine which classes Gradle should compile into your app's main DEX file. Because the Android system loads the main DEX file first when starting your app, you can prioritize certain classes at startup by compiling them into the main DEX file. After you create a ProGuard configuration file specifically for your main DEX file, pass the configuration file's path to Gradle using buildTypes.multiDexKeepProguard . Using this DSL is different from using buildTypes.proguardFiles , which provides general ProGuard rules for your app and does not specify classes for the main DEX file.
    • Adds support for the android:extractNativeLibs flag, which can reduce the size of your app when you install it on a device. When you set this flag to false in the <application> element of your app manifest, Gradle packages uncompressed and aligned versions of your native libraries with your APK. This prevents PackageManager from copying out your native libraries from the APK to the device's file system during installation and has the added benefit of making delta updates of your app smaller.
    • You can now specify versionNameSuffix and applicationIdSuffix for product flavors. ( Issue 59614 )
    পরিবর্তন:
    • getDefaultProguardFile now returns the default ProGuard files that Android plugin for Gradle provides and no longer uses the ones in the Android SDK.
    • Improved Jack compiler performance and features:
      • Jack now supports Jacoco test coverage when setting testCoverageEnabled to true .
      • Improved support for annotation processors. Annotation processors on your classpath, such as any compile dependencies, are automatically applied to your build. You can also specify an annotation processor in your build and pass arguments by using the javaCompileOptions.annotationProcessorOptions {} DSL in your module-level build.gradle file:

        গ্রোভি

        android {
          ...
          defaultConfig {
            ...
            javaCompileOptions {
              annotationProcessorOptions {
                className 'com.example.MyProcessor'
                // Arguments are optional.
                arguments = [ foo : 'bar' ]
              }
            }
          }
        }
            

        কোটলিন

        android {
          ...
          defaultConfig {
            ...
            javaCompileOptions {
              annotationProcessorOptions {
                className = "com.example.MyProcessor"
                // Arguments are optional.
                arguments(mapOf(foo to "bar"))
              }
            }
          }
        }
            

        If you want to apply an annotation processor at compile time but not include it in your APK, use the annotationProcessor dependency scope:

        গ্রোভি

        dependencies {
            compile 'com.google.dagger:dagger:2.0'
            annotationProcessor 'com.google.dagger:dagger-compiler:2.0'
           // or use buildVariantAnnotationProcessor to target a specific build variant
        }
            

        কোটলিন

        dependencies {
            implementation("com.google.dagger:dagger:2.0")
            annotationProcessor("com.google.dagger:dagger-compiler:2.0")
           // or use buildVariantAnnotationProcessor to target a specific build variant
        }
            
      • For a list of parameters you can set, run the following from the command line:

        java -jar /build-tools/jack.jar --help-properties
        
      • By default, if the Gradle daemon's heap size is at least 1.5 GB, Jack now runs in the same process as Gradle. To adjust the daemon heap size, add the following to your gradle.properties file:
        # This sets the daemon heap size to 1.5GB.
        org.gradle.jvmargs=-Xmx1536M
        

    2.1.0 (April 2016)

    2.1.3 (August 2016)

    This update requires Gradle 2.14.1 and higher. Gradle 2.14.1 includes performance improvements, new features, and an important security fix . For more details, see the Gradle release notes .

    নির্ভরতা:
    নতুন:
    • Added support for the N Developer Preview, JDK 8, and Java 8 language features using the Jack toolchain. To find out more, read the N Preview guide .

      Note: Instant Run does not currently work with Jack and will be disabled while using the new toolchain. You only need to use Jack if you are developing for the N Preview and want to use the supported Java 8 language features.

    • 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:

      গ্রোভি

      android {
        ...
        compileOptions {
          incremental false
        }
      }
      

      কোটলিন

      android {
        ...
        compileOptions {
          incremental = false
        }
      }
      
    • Added support for dexing-in-process which performs dexing within the build process rather than in a separate, external VM processes. This not only makes incremental builds faster, but also speeds up full builds. The feature is enabled by default for projects that have set the Gradle daemon's maximum heap size to at least 2048 MB. You can do this by including the following in your project's gradle.properties file:

      ```none org.gradle.jvmargs = -Xmx2048m ```

      If you have defined a value for javaMaxHeapSize in your module-level build.gradle file, you need to set org.gradle.jvmargs to the value of javaMaxHeapSize + 1024 MB. For example, if you have set javaMaxHeapSize to "2048m", you need to add the following to your project's gradle.properties file:

      ```none org.gradle.jvmargs = -Xmx3072m ```

      To disable dexing-in-process, add the following code to your module-level build.gradle file:

      গ্রোভি

      android {
        ...
        dexOptions {
            dexInProcess false
        }
      }
      

      কোটলিন

      android {
        ...
        dexOptions {
            dexInProcess = false
        }
      }
      

    2.0.0 (April 2016)

    নির্ভরতা:
    নতুন:
    • Enables Instant Run by supporting bytecode injection, and pushing code and resource updates to a running app on the emulator or a physical device.
    • 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 to the connected device.
    • Added 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:

      গ্রোভি

      android {
        ...
        dexOptions {
          maxProcessCount = 4 // this is the default value
        }
      }
      

      কোটলিন

      android {
        ...
        dexOptions {
          maxProcessCount = 4 // this is the default value
        }
      }
      
        </li>
      
        <li>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 <code>build.gradle</code> file:
      

      গ্রোভি

      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
          }
        }
      }
      
        </li>
      
        <li>Added logging support and improved performance for the resource shrinker.
        The resource shrinker now logs all of its operations into a <code>resources.txt</code>
        file located in the same folder as the Proguard log files.
        </li>
      </ul>
      

    Changed behavior:
    • When minSdkVersion is set to 18 or higher, APK signing uses SHA256.
    •   <li>DSA and ECDSA keys can now sign APK packages.
      
          <p class="note">
            <strong>Note:</strong> The <a href=
            "/training/articles/keystore.html">Android keystore</a> provider no
            longer supports <a href=
            "/about/versions/marshmallow/android-6.0-changes.html#behavior-keystore">
            DSA keys on Android 6.0</a> (API level 23) and higher.
          </p>
      
        </li>
      </ul>
      

    স্থির সমস্যা:
    • Fixed an issue that caused duplicate AAR dependencies in both the test and main build configurations.

    Android plugin for Gradle, revision 1.5.0 (November 2015)

    নির্ভরতা:
    • গ্রেডেল 2.2.1 বা উচ্চতর।
    • বিল্ড টুলস 21.1.1 বা উচ্চতর।
    সাধারণ নোট:
    • Integrated the Data Binding plugin into the Android plugin for Gradle. To enable it, add the following code to each per-project build.gradle file that uses the plugin:
    • android {
          dataBinding {
              enabled = true
          }
      }
              
      android {
          dataBinding {
              enabled = true
          }
      }
              
    • Added a new Transform API to allow third-party plugins to manipulate compiled .class files before they're converted to .dex files. The Transform API simplifies injecting custom class manipulations while offering more flexibility regarding what you can manipulate. To insert a transform into a build, create a new class implementing one of the Transform interfaces, and register it with android.registerTransform(theTransform) or android.registerTransform(theTransform, dependencies) . There's no need to wire tasks together. Note the following about the Transform API:
      • A transform can apply to one or more of the following: the current project, subprojects, and external libraries.
      • A transform must be registered globally, which applies them to all variants.
      • Internal code processing, through the Java Code Coverage Library (JaCoCo), ProGuard, and MultiDex, now uses the Transform API. However, the Java Android Compiler Kit (Jack) doesn't use this API: only the javac/dx code path does.
      • Gradle executes the transforms in this order: JaCoCo, third-party plugins, ProGuard. The execution order for third-party plugins matches the order in which the transforms are added by the third party plugins; third-party plugin developers can't control the execution order of the transforms through an API.
    • Deprecated the dex getter from the ApplicationVariant class. You can't access the Dex task through the variant API anymore because it's now accomplished through a transform. There's currently no replacement for controlling the dex process.
    • Fixed incremental support for assets.
    • Improved MultiDex support by making it available for test projects, and tests now automatically have the com.android.support:multidex-instrumentation dependency.
    • Added the ability to properly fail a Gradle build and report the underlying error cause when the Gradle build invokes asynchronous tasks and there's a failure in the worker process.
    • Added support for configuring a specific Application Binary Interface (ABI) in variants that contain multiple ABIs.
    • Added support for a comma-separated list of device serial numbers for the ANDROID_SERIAL environment variable when installing or running tests.
    • Fixed an installation failure on devices running Android 5.0 (API level 20) and higher when the APK name contains a space.
    • Fixed various issues related to the Android Asset Packaging Tool (AAPT) error output.
    • Added JaCoCo incremental instrumentation support for faster incremental builds. The Android plugin for Gradle now invokes the JaCoCo instrumenter directly. To force a newer version of the JaCoCo instrumenter, you need to add it as a build script dependency.
    • Fixed JaCoCo support so it ignores files that aren't classes.
    • Added vector drawable support for generating PNGs at build time for backward-compatibility. Android plugin for Gradle generates PNGs for every vector drawable found in a resource directory that doesn't specify an API version or specifies an android:minSdkVersion attribute of 20 or lower in the <uses-sdk> element in the app manifest. You can set PNG densities by using the generatedDensities property in the defaultConfig or productFlavor sections of a build.gradle file.
    • Added sharing of the mockable android.jar , which the plugin generates only once and uses for unit testing. Multiple modules, such as app and lib , now share it. Delete $rootDir/build to regenerate it.
    • Changed the processing of Java resources to occur before the obfuscation tasks instead of during the packaging of the APK. This change allows the obfuscation tasks to have a chance to adapt the Java resources following packages obfuscation.
    • Fixed an issue with using Java Native Interface (JNI) code in the experimental library plugin.
    • Added the ability to set the platform version separately from the android:compileSdkVersion attribute in the experimental library plugin.

    Android plugin for Gradle, revision 1.3.1 (August 2015)

    নির্ভরতা:
    • গ্রেডেল 2.2.1 বা উচ্চতর।
    • বিল্ড টুলস 21.1.1 বা উচ্চতর।
    সাধারণ নোট:
    • Fixed the ZipAlign task to properly consume the output of the previous task when using a customized filename.
    • Fixed Renderscript packaging with the NDK .
    • Maintained support for the createDebugCoverageReport build task.
    • Fixed support for customized use of the archiveBaseName property in the build.gradle build file.
    • Fixed the Invalid ResourceType lint warning caused by parameter method annotation lookup when running lint outside of Android Studio.

    Android plugin for Gradle, revision 1.3.0 (July 2015)

    নির্ভরতা:
    • গ্রেডেল 2.2.1 বা উচ্চতর।
    • বিল্ড টুলস 21.1.1 বা উচ্চতর।
    সাধারণ নোট:
    • Added support for the com.android.build.threadPoolSize property to control the Android task thread pool size from the gradle.properties file or the command line. The following example sets this property to 4.

              
              -Pcom.android.build.threadPoolSize=4
              
            
    • Set the default build behavior to exclude LICENSE and LICENSE.txt files from APKs. To include these files in an APK, remove these files from the packagingOptions.excludes property in the build.gradle file. যেমন:
      android {
            packagingOptions.excludes = []
          }
            
      android {
            packagingOptions.excludes.clear()
          }
          
    • Added the sourceSets task to inspect the set of all available source sets.
    • Enhanced unit test support to recognize multi-flavor and build variant source folders. For example, to test an app with multi-flavors flavor1 and flavorA with the Debug build type, the test source sets are:
      • পরীক্ষা
      • testFlavor1
      • testFlavorA
      • testFlavor1FlavorA
      • testFlavor1FlavorADebug

      Android tests already recognized multi-flavor source folders.

    • Improved unit test support to:
      • Run javac on main and test sources, even if the useJack property is set to true in your build file.
      • Correctly recognize dependencies for each build type.
    • Added support for specifying instrumentation test-runner arguments from the command line. যেমন:
      ./gradlew connectedCheck \
         -Pandroid.testInstrumentationRunnerArguments.size=medium \
         -Pandroid.testInstrumentationRunnerArguments.class=TestA,TestB
              
    • Added support for arbitrary additional Android Asset Packaging Tool (AAPT) parameters in the build.gradle file. যেমন:

      android {
          aaptOptions {
            additionalParameters "--custom_option", "value"
          }
      }
            
      android {
          aaptOptions {
            additionalParameters += listOf("--custom_option", "value")
          }
      }
            
    • Added support for a test APK module as a separate test module, using the targetProjectPath and targetVariant properties to set the APK path and target variant.

      Note: A test APK module does not support product flavors and can only target a single variant. Also, Jacoco is not supported yet.

    • Added resource name validation before merging resources.
    • When building an AAR (Android ARchive) package for library modules, do not provide an automatic @{applicationId} placeholder in the manifest merger settings. Instead, use a different placeholder, such as @{libApplicationId} and provide a value for it if you want to include application Ids in the archive library.

    Android plugin for Gradle, revision 1.2.0 (April 2015)

    নির্ভরতা:
    • গ্রেডেল 2.2.1 বা উচ্চতর।
    • বিল্ড টুলস 21.1.1 বা উচ্চতর।
    সাধারণ নোট:
    • Enhanced support for running unit tests with Gradle.
      • Added support to include Java-style resources in the classpath when running unit tests directly from Gradle.
      • Added unit test dependency support for Android Archive (AAR) artifacts.
      • Added support for the unitTestVariants property so unit test variants can be manipulated using the build.gradle file.
      • Added the unitTest.all code block under testOptions to configure customized tasks for unit test. The following sample code shows how to add unit test configuration settings using this new option:
        android {
          testOptions {
            unitTest.all {
              jvmArgs '-XX:MaxPermSize=256m' // Or any other gradle option.
            }
          }
        }
        
        android {
          testOptions {
            unitTest.all {
              jvmArgs += listOf("-XX:MaxPermSize=256m") // Or any other gradle option.
            }
          }
        }
                    
      • Fixed the handling of enums and public instance fields in the packaging of the mockable-android.jar file.
      • Fixed library project task dependencies so test classes recompile after changes.
    • Added the testProguardFile property to apply ProGuard files when minifying a test APK.
    • Added the timeOut property to the adbOptions code block for setting the maximum recording time for Android Debug Bridge screen recording.
    • Added support for 280 dpi resources.
    • Improved performance during project evaluation.

    Android plugin for Gradle, revision 1.1.3 (March 2015)

    নির্ভরতা:
    • গ্রেডেল 2.2.1 বা উচ্চতর।
    • বিল্ড টুলস 21.1.1 বা উচ্চতর।
    সাধারণ নোট:
    • Fixed issue with duplicated dependencies on a test app that triggered a ProGuard failure.
    • Fixed Comparator implementation which did not comply with the JDK Comparator contract and generated a JDK 7 error.

    গ্রেডলের জন্য অ্যান্ড্রয়েড প্লাগইন, সংশোধন 1.1.2 (ফেব্রুয়ারি 2015)

    নির্ভরতা:
    • গ্রেডেল 2.2.1 বা উচ্চতর।
    • বিল্ড টুলস 21.1.1 বা উচ্চতর।
    সাধারণ নোট:
    • ইউনিট পরীক্ষার জন্য একটি উপহাসযোগ্য JAR তৈরি করার সময় সাধারণ পথ।
    • build.gradle ফাইলে archivesBaseName সেটিং ঠিক করা হয়েছে।
    • একটি লাইব্রেরি পরীক্ষার অ্যাপ্লিকেশন তৈরি করার সময় ম্যানিফেস্ট মার্জারে অমীমাংসিত স্থানধারক ব্যর্থতা সংশোধন করা হয়েছে৷

    Android plugin for Gradle, revision 1.1.1 (February 2015)

    নির্ভরতা:
    • গ্রেডেল 2.2.1 বা উচ্চতর।
    • বিল্ড টুলস 21.1.1 বা উচ্চতর।
    সাধারণ নোট:
    • Modified build variants so only variants that package a Wear app trigger Wear-specific build tasks.
    • Changed dependency related issues to fail at build time rather than at debug time. This behavior allows you to run diagnostic tasks (such as 'dependencies') to help resolve the conflict.
    • Fixed the android.getBootClasspath() method to return a value.

    Android plugin for Gradle, revision 1.1.0 (February 2015)

    নির্ভরতা:
    • গ্রেডেল 2.2.1 বা উচ্চতর।
    • বিল্ড টুলস 21.1.1 বা উচ্চতর।
    সাধারণ নোট:
    • Added new unit test support
      • Enabled unit tests to run on the local JVM against a special version of the android.jar file that is compatible with popular mocking frameworks, for example Mockito.
      • Added new test tasks testDebug , testRelease , and testMyFlavorDebug when using product flavors.
      • Added new source folders recognized as unit tests: src/test/java/ , src/testDebug/java/ , src/testMyFlavor/java/ .
      • Added new configurations in the build.gradle file for declaring test-only dependencies, for example, testCompile 'junit:junit:4.11' , testMyFlavorCompile 'some:library:1.0' .

        Note: Test-only dependencies are not currently compatible with Jack (Java Android Compiler Kit).

      • Added the android.testOptions.unitTests.returnDefaultValues option to control the behaviour of the mockable android.jar.
    • Replaced Test in test task names with AndroidTest . For example, the assembleDebugTest task is now assembleDebugAndroidTest task. Unit test tasks still have UnitTest in the task name, for example assembleDebugUnitTest .
    • Modified ProGuard configuration files to no longer apply to the test APK. If minification is enabled, ProGuard processes the test APK and applies only the mapping file that is generated when minifying the main APK.
    • Updated dependency management
      • Fixed issues using provided and package scopes.

        Note: These scopes are incompatible with AAR (Android ARchive) packages and will cause a build with AAR packages to fail.

      • Modified dependency resolution to compare the dependencies of an app under test and the test app. If an artifact with the same version is found for both apps, it's not included with the test app and is packaged only with the app under test. If an artifact with a different version is found for both apps, the build fails.
    • Added support for anyDpi resource qualifier in resource merger.
    • Improved evaluation and IDE sync speeds for projects with a large number of Android modules .

    Android plugin for Gradle, revision 1.0.1 (January 2015)

    নির্ভরতা:
    • Gradle 2.2.1 up to 2.3.x.

      Note: This version of the Android plugin for Gradle is not compatible with Gradle 2.4 and higher.

    • বিল্ড টুলস 21.1.1 বা উচ্চতর।
    সাধারণ নোট:
    • Fixed issue with Gradle build failure when accessing the extractReleaseAnnotations module. ( Issue 81638 ).
    • Fixed issue with Disable passing the --no-optimize setting to the Dalvik Executable (dex) bytecode. ( Issue 82662 ).
    • Fixed manifest merger issues when importing libraries with a targetSdkVersion less than 16.
    • Fixed density ordering issue when using Android Studio with JDK 8.

    Android plugin for Gradle, revision 1.0.0 (December 2014)

    নির্ভরতা:
    • Gradle 2.2.1 up to 2.3.x.

      Note: This version of the Android plugin for Gradle is not compatible with Gradle 2.4 and higher.

    • বিল্ড টুলস 21.1.1 বা উচ্চতর।
    সাধারণ নোট:
    • Initial plugin release.