Membuat atau mengimpor project
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Android Studio for Platform (ASfP) membantu Anda menyiapkan lingkungan pengembangan
untuk Android Open Source Project (AOSP). Halaman ini menjelaskan cara
memulai project baru atau mengimpor project yang ada.
Membuat project baru
Jika Anda belum membuka project, klik New Project di layar
Selamat Datang. 
Jika Anda sudah membuka project, pilih ASfP > Project > New Project
dari menu.
Lengkapi detail konfigurasi project di wizard: 
- Jalur modul: Tentukan jalur absolut ke root checkout kode sumber AOSP Anda (misalnya,
/path/to/aosp
).
- Target peluncuran: Masukkan target peluncuran yang Anda gunakan untuk membangun (misalnya,
aosp_arm64-eng
).
- Nama project: Beri nama deskriptif untuk project Anda.
- Direktori / modul: Cantumkan direktori atau modul awal yang ingin Anda sertakan dalam project, yang dipisahkan dengan koma. Ini harus berupa
jalur relatif dari root repositori (misalnya,
frameworks/base,
packages/apps/Settings
). Anda dapat menambahkan atau menyempurnakan pilihan ini nanti.
Klik Finish. ASfP membuat struktur project dan file konfigurasi .asfp-project
.
Setelah penyiapan project awal, Anda dapat menyesuaikan project lebih lanjut dengan
mengedit file .asfp-project
yang ada di root project. File ini memungkinkan
Anda:
- Menambahkan atau menghapus direktori dan modul.
- Mengaktifkan dukungan untuk bahasa lain seperti Rust atau C++.
- Konfigurasi flag build dan variabel lingkungan.
- Tentukan sumber pengujian.
Untuk mengetahui informasi mendetail tentang semua opsi konfigurasi, lihat Ringkasan
Project. Setelah mengedit .asfp-project
, Anda harus menyinkronkan project agar perubahan diterapkan.
Mengimpor project yang ada
ASfP tidak memiliki tindakan "impor" terpisah. Untuk membuka konfigurasi project ASfP yang ada:
- Pilih ASfP > Project > New Project.
- Di kolom Project Name, buka dan pilih direktori
yang berisi file
.asfp-project
yang ada dan ingin Anda buka. Kolom di
wizard akan diisi berdasarkan file .asfp-project
yang dipilih.
- Klik Finish. ASfP akan membuka dan mengindeks project.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-09-04 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[],[],null,["Android Studio for Platform (ASfP) helps you set up your development environment\nfor the [Android Open Source Project (AOSP)](https://source.android.com/). This page explains how to\nstart a new project or import an existing one.\n\nCreate a new project\n\n1. If you don't have a project open, click **New Project** on the Welcome\n screen.\n\n2. If you already have a project open, select **ASfP \\\u003e Project \\\u003e New Project**\n from the menu.\n\n3. Fill in the project configuration details in the wizard:\n\n - **Module paths:** Specify the absolute path to the root of your AOSP source code checkout (for example, `/path/to/aosp`).\n - **Lunch target:** Enter the lunch target you use for building (for example, `aosp_arm64-eng`).\n - **Project name:** Give your project a descriptive name.\n - **Directories / modules:** List the initial directories or modules you want to include in your project, separated by commas. These should be relative paths from the repository root (for example, `frameworks/base,\n packages/apps/Settings`). You can add more or refine this selection later.\n4. Click **Finish** . ASfP creates the project structure and the `.asfp-project`\n configuration file.\n\nConfigure and customize your project\n\nAfter the initial project setup, you can further customize your project by\nediting the `.asfp-project` file located in the project root. This file lets\nyou:\n\n- Add or remove directories and modules.\n- Enable support for other languages like Rust or C++.\n- Configure build flags and environment variables.\n- Specify test sources.\n\nFor detailed information on all configuration options, see the [Projects\noverview](/studio/platform/projects). After editing `.asfp-project`, you'll need to sync the project for\nthe changes to take effect.\n\nImport an existing project\n\nASfP doesn't have a separate \"import\" action. To open an existing ASfP project\nconfiguration:\n\n1. Select **ASfP \\\u003e Project \\\u003e New Project**.\n2. In the **Project Name** field, navigate to and select the directory containing the existing `.asfp-project` file you want to open. The fields in the wizard will populate based on the selected `.asfp-project` file.\n3. Click **Finish**. ASfP opens and indexes the project."]]