অ্যান্ড্রয়েড স্টুডিও কনফিগার করুন

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

অ্যান্ড্রয়েড স্টুডিও সাহায্য মেনুর মাধ্যমে দুটি কনফিগারেশন ফাইলে অ্যাক্সেস প্রদান করে:

  • studio.vmoptions : Customize options for Android Studio's Java Virtual Machine (JVM), such as heap size and cache size. Note that on Linux machines this file may be named studio64.vmoptions , depending on your version of Android Studio.
  • idea.properties : Customize Android Studio properties, such as the plugins folder path or maximum supported file size.

For specific documentation about emulator and device setup and use, see the following topics:

আপনার কনফিগারেশন ফাইল খুঁজুন

Both configuration files are stored in the configuration directory for Android Studio. To find the configuration directory, see Directories .

You can use the following environment variables to point to specific override files elsewhere:

  • STUDIO_VM_OPTIONS : set the name and location of the .vmoptions file.
  • STUDIO_PROPERTIES : set the name and location of the .properties file.

You can configure which JDKs are used by visiting Java versions in Android builds .

আপনার VM বিকল্পগুলি কাস্টমাইজ করুন

The studio.vmoptions file lets you customize options for Android Studio's JVM. অ্যান্ড্রয়েড স্টুডিওর কর্মক্ষমতা উন্নত করতে, সামঞ্জস্য করার সবচেয়ে সাধারণ বিকল্প হল সর্বাধিক হিপ সাইজ, তবে আপনি অন্যান্য ডিফল্ট সেটিংস যেমন প্রাথমিক হিপ সাইজ, ক্যাশের আকার এবং জাভা আবর্জনা সংগ্রহের সুইচগুলিকে ওভাররাইড করতে studio.vmoptions ফাইলটি ব্যবহার করতে পারেন।

To create a new studio.vmoptions file or to open your existing one, follow these steps:

  1. সাহায্য > কাস্টম VM বিকল্পগুলি সম্পাদনা করুন ক্লিক করুন। If you have never edited VM options for Android Studio before, the IDE prompts you to create a new studio.vmoptions file. ফাইল তৈরি করতে Create এ ক্লিক করুন।
  2. The studio.vmoptions file opens in Android Studio's editor window. আপনার কাস্টমাইজড VM বিকল্পগুলি যোগ করতে ফাইলটি সম্পাদনা করুন৷ For a full list of customizable JVM options, see Oracle's Java HotSpot VM Options page .

আপনার তৈরি করা studio.vmoptions ফাইলটি ডিফল্ট studio.vmoptions ফাইলে যোগ করা হয়েছে, যা আপনার অ্যান্ড্রয়েড স্টুডিও ইনস্টলেশন ফোল্ডারের ভিতরে bin/ ডিরেক্টরিতে অবস্থিত।

Don't directly edit the studio.vmoptions file found inside the Android Studio program folder. আপনি যখন Android স্টুডিওর ডিফল্ট VM বিকল্পগুলি দেখতে ফাইলটি অ্যাক্সেস করতে পারেন, শুধুমাত্র আপনার নিজস্ব studio.vmoptions ফাইল সম্পাদনা করা নিশ্চিত করে যে আপনি Android স্টুডিওর জন্য গুরুত্বপূর্ণ ডিফল্ট সেটিংস ওভাররাইড করবেন না। অতএব, আপনার studio.vmoptions ফাইলে, শুধুমাত্র আপনার পছন্দের বৈশিষ্ট্যগুলিকে ওভাররাইড করুন এবং আপনি পরিবর্তন করেননি এমন কোনো বৈশিষ্ট্যের জন্য Android স্টুডিওকে ডিফল্ট মান ব্যবহার চালিয়ে যেতে দিন।

Maximum heap size

By default, Android Studio has a maximum heap size of 1280MB. আপনি যদি একটি বড় প্রকল্পে কাজ করেন, বা আপনার সিস্টেমে প্রচুর RAM থাকে, তাহলে আপনি কোর IDE, গ্রেডল ডেমন এবং কোটলিন ডেমনের মতো অ্যান্ড্রয়েড স্টুডিও প্রসেসের জন্য সর্বাধিক হিপ সাইজ বাড়িয়ে কর্মক্ষমতা উন্নত করতে পারেন।

Android Studio automatically checks for possible heap size optimizations and notifies you if it detects that performance can be improved.

The memory settings, which let you configure maximum amount of RAM
          for Android Studio processes.

Figure 1. A notification about recommended memory settings.

If you use a 64-bit system that has at least 5 GB of RAM, you can also adjust the heap sizes for your project manually. এটি করতে, এই পদক্ষেপগুলি অনুসরণ করুন:

  1. Click File > Settings from the menu bar ( Android Studio > Preferences on macOS).
  2. Click Appearance & Behavior > System Settings > Memory Settings .

    The memory settings, which let you configure maximum amount of RAM
   for Android Studio processes.

    Figure 2. Configure the maximum amount of RAM in Memory Settings.

  3. Adjust the heap sizes.

  4. প্রয়োগ করুন ক্লিক করুন।

    If you change the heap size for the IDE, you must restart Android Studio before the new memory settings are applied.

আইডিই সেটিংস রপ্তানি এবং আমদানি করুন

You can export a Settings.jar file that contains all or a subset of your preferred IDE settings for a project. You can then import the JAR file into your other projects and/or make the JAR file available to your colleagues to import into their projects.

For more information, see Share IDE settings at IntelliJ IDEA.

আপনার IDE বৈশিষ্ট্য কাস্টমাইজ করুন

idea.properties ফাইল আপনাকে অ্যান্ড্রয়েড স্টুডিওর জন্য IDE বৈশিষ্ট্যগুলি কাস্টমাইজ করতে দেয়, যেমন ব্যবহারকারী-ইনস্টল করা প্লাগইনগুলির পথ এবং IDE দ্বারা সমর্থিত সর্বাধিক ফাইলের আকার৷ The idea.properties file is merged with the default properties for the IDE, so you can specify only the override properties.

To create a new idea.properties file or to open your existing file, follow these steps:

  1. সাহায্য > কাস্টম বৈশিষ্ট্য সম্পাদনা করুন ক্লিক করুন। If you have never edited the IDE properties before, Android Studio prompts you to create a new idea.properties file. ফাইল তৈরি করতে হ্যাঁ ক্লিক করুন।
  2. The idea.properties file opens in Android Studio's editor window. Edit the file to add your customized IDE properties.

The following idea.properties file includes commonly customized IDE properties. For a complete list of properties, read about the idea.properties file for IntelliJ IDEA .

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure
# you're using forward slashes.
#---------------------------------------------------------------------
# idea.plugins.path=${idea.config.path}/plugins
#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger the file is, the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=2500
#---------------------------------------------------------------------
# This option controls console cyclic buffer: keeps the console output size not higher than the
# specified buffer size (Kb). Older lines are deleted. In order to disable cycle buffer use
# idea.cycle.buffer.size=disabled
#---------------------------------------------------------------------
idea.cycle.buffer.size=1024
#---------------------------------------------------------------------
# Configure if a special launcher should be used when running processes from within IDE.
# Using Launcher enables "soft exit" and "thread dump" features.
#---------------------------------------------------------------------
idea.no.launcher=false
#---------------------------------------------------------------------
# To avoid too long classpath
#---------------------------------------------------------------------
idea.dynamic.classpath=false
#---------------------------------------------------------------------
# There are two possible values of idea.popup.weight property: "heavy" and "medium".
# If you have WM configured as "Focus follows mouse with Auto Raise", then you have to
# set this property to "medium". It prevents problems with popup menus on some
# configurations.
#---------------------------------------------------------------------
idea.popup.weight=heavy
#---------------------------------------------------------------------
# Use default anti-aliasing in system, i.e. override value of
# "Settings|Editor|Appearance|Use anti-aliased font" option. May be useful when using Windows
# Remote Desktop Connection for instance.
#---------------------------------------------------------------------
idea.use.default.antialiasing.in.editor=false
#---------------------------------------------------------------------
# Disabling this property may lead to visual glitches like blinking and fail to repaint
# on certain display adapter cards.
#---------------------------------------------------------------------
sun.java2d.noddraw=true
#---------------------------------------------------------------------
# Removing this property may lead to editor performance degradation under Windows.
#---------------------------------------------------------------------
sun.java2d.d3d=false
#---------------------------------------------------------------------
# Workaround for slow scrolling in JDK6.
#---------------------------------------------------------------------
swing.bufferPerWindow=false
#---------------------------------------------------------------------
# Removing this property may lead to editor performance degradation under X Window.
#---------------------------------------------------------------------
sun.java2d.pmoffscreen=false
#---------------------------------------------------------------------
# Workaround to avoid long hangs while accessing clipboard under Mac OS X.
#---------------------------------------------------------------------
# ide.mac.useNativeClipboard=True
#---------------------------------------------------------------------
# Maximum size (kilobytes) IDEA will load for showing past file contents -
# in Show Diff or when calculating Digest Diff.
#---------------------------------------------------------------------
# idea.max.vcs.loaded.size.kb=20480

কম মেমরির মেশিনের জন্য IDE কনফিগার করুন

আপনি যদি প্রস্তাবিত স্পেসিফিকেশনগুলির চেয়ে কম ( সিস্টেমের প্রয়োজনীয়তাগুলি দেখুন) এর চেয়ে কম মেশিনে অ্যান্ড্রয়েড স্টুডিও চালাচ্ছেন তবে আপনি আপনার মেশিনে কর্মক্ষমতা উন্নত করতে আইডিইটি কাস্টমাইজ করতে পারেন:

  • Reduce the maximum heap size available to Android Studio: Reduce the maximum heap size for Android Studio to 512Mb. For more information on changing maximum heap size, see Maximum heap size .
  • আপডেট গ্রেডল এবং অ্যান্ড্রয়েড গ্রেডল প্লাগইন: সর্বশেষ পারফরম্যান্সের উন্নতির সুযোগ নিতে গ্রেডল এবং অ্যান্ড্রয়েড গ্রেডল প্লাগইনের সর্বশেষ সংস্করণগুলিতে আপডেট করুন। Gradle এবং Android Gradle প্লাগইন আপডেট করার বিষয়ে আরও তথ্যের জন্য, Android Gradle প্লাগইন রিলিজ নোটগুলি দেখুন।
  • পাওয়ার সেভ মোড সক্ষম করুন: পাওয়ার সেভ মোডকে অনেকগুলি মেমরি- এবং ব্যাটারি-নিবিড় ব্যাকগ্রাউন্ড অপারেশনগুলি বন্ধ করতে সক্ষম করুন, ত্রুটি হাইলাইটিং এবং অন-ফ্লাই ইন্সপেকশনস, অটো-পপআপ কোড সমাপ্তি এবং স্বয়ংক্রিয় ইনক্রিমেন্টাল ব্যাকগ্রাউন্ড সংকলন সহ। To turn on Power Save Mode, click File > Power Save Mode .
  • Disable unnecessary lint checks: To change which lint checks Android Studio runs on your code, do the following:

    1. Click File > Settings (on macOS, Android Studio > Preferences ) to open the Settings dialog.
    2. In the left pane, expand the Editor section and click Inspections .
    3. আপনার প্রকল্পের জন্য উপযুক্ত হিসাবে লিন্ট চেক নির্বাচন বা অনির্বাচন করতে চেকবক্সে ক্লিক করুন।
    4. আপনার পরিবর্তনগুলি সংরক্ষণ করতে প্রয়োগ করুন বা ঠিক আছে ক্লিক করুন।
  • Debug on a physical device: Improve overall performance for Android Studio by debugging on a physical device . Debugging on an emulator uses more memory than debugging on a physical device.

  • Include only necessary Google Play services as dependencies: Only include necessary Google Play Services as dependencies in your project. Dependencies increase the amount of memory necessary, so limiting them improves memory usage and performance. আরও তথ্যের জন্য, Google Play পরিষেবাগুলির জন্য নির্ভরতা ঘোষণা দেখুন।

  • গ্রেডলের জন্য উপলব্ধ সর্বোচ্চ স্তূপের আকার হ্রাস করুন: গ্রেডের সর্বাধিক স্তূপের আকারের মানটি তার ডিফল্ট থেকে 1,536 এমবি এর ডিফল্ট থেকে org.gradle.jvmargs সম্পত্তি gradle.properties ফাইলগুলিতে ওভাররাইড করে দেখানো হয়েছে: দেখানো হয়েছে:

    # Make sure to gradually decrease this value and note
    # changes in performance. Allocating too little memory can
    # also decrease performance.
    org.gradle.jvmargs = -Xmx1536m
    
  • সমান্তরাল সংকলন সক্ষম নয় তা নিশ্চিত করুন: অ্যান্ড্রয়েড স্টুডিও সমান্তরালভাবে স্বতন্ত্র মডিউলগুলি সংকলন করতে পারে তবে আপনার যদি কম-মেমরি সিস্টেম থাকে তবে এই বৈশিষ্ট্যটি অক্ষম করুন। এই সেটিং চেক করতে, নিম্নলিখিতগুলি করুন:

    1. Click File > Settings (on macOS, Android Studio > Preferences ) to open the Settings dialog.
    2. In the left pane, expand Build, Execution, Deployment and then click Compiler .
    3. Ensure that the Compile independent modules in parallel option is unchecked.
    4. If you have made a change, click Apply or OK for your change to take effect.

Set proxy settings

Proxies serve as intermediary connection points between HTTP clients and web servers that add security and privacy to internet connections.

To support running Android Studio behind a firewall, use the Android Studio IDE HTTP Proxy settings page to set the HTTP proxy settings.

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

অ্যান্ড্রয়েড স্টুডিও প্রক্সি সেট আপ করুন

Android Studio supports HTTP proxy settings so you can run Android Studio behind a firewall or secure network. To set the HTTP proxy settings in Android Studio:

  1. From the menu bar, click File > Settings (on macOS, click Android Studio > Preferences ).
  2. In the left pane, click Appearance & Behavior > System Settings > HTTP Proxy . HTTP প্রক্সি পৃষ্ঠা প্রদর্শিত হবে।
  3. প্রতিটি সেটিংস নিজেই প্রবেশ করতে প্রক্সি সেটিংস বা ম্যানুয়াল প্রক্সি কনফিগারেশনের জন্য একটি স্বয়ংক্রিয় প্রক্সি কনফিগারেশন ইউআরএল ব্যবহার করতে অটো-সনাক্তকারী প্রক্সি সেটিংস নির্বাচন করুন। For a detailed explanation of these settings, see HTTP Proxy .
  4. Click Apply or OK for your changes to take effect.

Gradle HTTP প্রক্সি সেটিংসের জন্য অ্যান্ড্রয়েড প্লাগইন

কমান্ড লাইন থেকে বা অ্যান্ড্রয়েড স্টুডিও ইনস্টল না করা মেশিনগুলিতে অ্যান্ড্রয়েড প্লাগইন চালানোর সময়, গ্রেড বিল্ড ফাইলে অ্যান্ড্রয়েড গ্রেডল প্লাগইন প্রক্সি সেটিংস সেট করুন।

For application-specific HTTP proxy settings, set the proxy settings in the build.gradle file as required for each application module:

plugins {
  id 'com.android.application'
}

android {
    ...

    defaultConfig {
        ...
        systemProp.http.proxyHost=proxy.company.com
        systemProp.http.proxyPort=443
        systemProp.http.proxyUser=userid
        systemProp.http.proxyPassword=password
        systemProp.http.auth.ntlm.domain=domain
    }
    ...
}

For project-wide HTTP proxy settings, set the proxy settings in the gradle/gradle.properties file:

# Project-wide Gradle settings.
...

systemProp.http.proxyHost=proxy.company.com
systemProp.http.proxyPort=443
systemProp.http.proxyUser=username
systemProp.http.proxyPassword=password
systemProp.http.auth.ntlm.domain=domain

systemProp.https.proxyHost=proxy.company.com
systemProp.https.proxyPort=443
systemProp.https.proxyUser=username
systemProp.https.proxyPassword=password
systemProp.https.auth.ntlm.domain=domain

...

For information about using Gradle properties for proxy settings, see the Gradle User Guide .

উইন্ডোজে অ্যান্ড্রয়েড স্টুডিও পারফরম্যান্স অপ্টিমাইজ করুন

Android Studio performance on Windows can be impacted by a variety of factors. This section describes how you can optimize Android Studio settings to get the best possible performance on Windows.

Minimize the impact of antivirus software on build speed

Some antivirus software can interfere with the Android Studio build process, causing builds to run dramatically slower. আপনি যখন অ্যান্ড্রয়েড স্টুডিওতে একটি বিল্ড চালান, গ্রেডল আপনার অ্যাপ্লিকেশনটির সংস্থান এবং উত্স কোড সংকলন করে এবং তারপরে একটি এপিকে বা এএবি -তে সংকলিত সংস্থানগুলি প্যাকেজ করে। During this process, many files are created on your computer. যদি আপনার অ্যান্টিভাইরাস সফ্টওয়্যারটিতে রিয়েল-টাইম স্ক্যানিং সক্ষম করা থাকে তবে অ্যান্টিভাইরাস সফ্টওয়্যারটি সেই ফাইলটি স্ক্যান করার সময় কোনও ফাইল তৈরি করার সময় প্রতিটি সময় তৈরি হওয়ার সময় বিল্ড প্রক্রিয়াটিকে থামাতে বাধ্য করতে পারে।

To avoid this issue, you can exclude certain directories from real-time scanning in your antivirus software. For Windows, Build Analyzer can help you identify the directories that should be excluded from active scanning and exclude them.

The following list shows the default location of each Android Studio directory that you can exclude from real-time scanning:

Gradle cache
%USERPROFILE%\.gradle
অ্যান্ড্রয়েড স্টুডিও প্রকল্প
%USERPROFILE%\AndroidStudioProjects
অ্যান্ড্রয়েড এসডিকে
%USERPROFILE%\AppData\Local\Android\SDK

অ্যান্ড্রয়েড স্টুডিও সিস্টেম ফাইল

সিনট্যাক্স: %LOCALAPPDATA%\Google\ <product><version>

Example: C:\Users\YourUserName\AppData\Local\Google\AndroidStudio4.1

গ্রুপ নীতি নিয়ন্ত্রিত পরিবেশের জন্য ডিরেক্টরি অবস্থানগুলি কাস্টমাইজ করুন

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

নিম্নলিখিত তালিকাটি দেখায় যে কীভাবে প্রতিটি অ্যান্ড্রয়েড স্টুডিও ডিরেক্টরিটির অবস্থানটি কাস্টমাইজ করা যায়, যেখানে C:\WorkFolder হ'ল ডিরেক্টরি যা আপনার গ্রুপ নীতি ইতিমধ্যে বাদ দেয়:

Gradle cache
Define the GRADLE_USER_HOME environment variable to point to C:\WorkFolder \.gradle .
Android Studio projects
Move or create project directories in an appropriate subdirectory of C:\WorkFolder . For example, C:\WorkFolder \AndroidStudioProjects .
অ্যান্ড্রয়েড এসডিকে

অবস্থান কাস্টমাইজ করতে এই পদক্ষেপগুলি অনুসরণ করুন:

  1. In Android Studio, open the Settings dialog ( Preferences on macOS), then navigate to Appearance & Behavior > System Settings > Android SDK .

  2. Change the value of Android SDK Location to C:\WorkFolder \AndroidSDK .

    আবার এসডিকে ডাউনলোড করা এড়াতে, %USERPROFILE%\AppData\Local\Android\SDK ডিফল্টরূপে নতুন স্থানে অবস্থিত বিদ্যমান এসডিকে ডিরেক্টরিটি অনুলিপি করুন।

অ্যান্ড্রয়েড স্টুডিও সিস্টেম ফাইল

অবস্থান কাস্টমাইজ করতে এই পদক্ষেপগুলি অনুসরণ করুন:

  1. In Android Studio, click Help > Edit Custom Properties .

    Android Studio prompts you to create an idea.properties file if you don't already have one.

  2. Add the following line to your idea.properties file:

    idea.system.path=c:/workfolder/studio/caches/trunk-system