# プラグイン uses-permission タグの重複修正機能

Cordovaのプラグイン、特に`cordova-plugin-media-capture`や`cordova-plugin-camera`の最新版において、`android:maxSdkVersion`属性の変更が加えられています。これにより、複数のプラグインを組み合わせる際に`AndroidManifest.xml`の設定に関する重複エラーが発生する可能性が増えています。

具体的には、以下のようなビルドエラーが発生しています。\
&#x20;(下記は、パーミッション`WRITE_EXTERNAL_STORAGE`が重複している例です。)

```
/tmp/download/platforms/android/app/src/main/AndroidManifest.xml:14:5-108 Error:
 Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:14:5-108 duplicated with element declared at AndroidManifest.xml:13:5-108
```

### **機能の詳細**

この問題の解決のために、`uses-permission`タグの重複を検出し、自動的に統一する機能をリリースしました。

### **使い方**

1. プロジェクトを開きます。
2. ヘッダーメニューの「ビルド」をクリックし、リストの中から「ビルド環境の設定」を選択します。
3. Androidの環境設定ページに移動し、「重複パーミッションの削除」オプションを探します。
4. 「重複パーミッションの削除」を有効化し、設定を保存します。

これで、次回のビルド時からuses-permissionタグの重複を自動的に修正する機能が有効になります。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ja.docs.monaca.io/release_notes/puraguin-uses-permission-taguno.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
