2015-10-13 57 views
1

假設我在Android Studio項目中包含多個庫。找出哪個權限從哪個庫中合併

庫的清單由ManifestMerger自動合併。

之後,我有一些額外的權限。

問:

什麼是找出哪些權限是必需的(合併)由lib下,沒有檢查每個LIB艙單一個簡單的方法?

回答

2

你可以找到這裏的清單合併創建的日誌:

app/build/outputs/logs/manifest-merger-debug-report.txt 

例如,你可以找到像這樣的android.permission.INTERNET

uses-permission#android.permission.INTERNET 
ADDED from /MyApplication/app/src/main/AndroidManifest.xml:6:5-66 
MERGED from [com.google.android.gms:play-services-ads:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-ads/8.1.0/AndroidManifest.xml:20:5-66 
MERGED from [com.google.android.gms:play-services-analytics:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-analytics/8.1.0/AndroidManifest.xml:21:5-67 
MERGED from [com.google.android.gms:play-services-ads:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-ads/8.1.0/AndroidManifest.xml:20:5-66 
MERGED from [com.google.android.gms:play-services-appinvite:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-appinvite/8.1.0/AndroidManifest.xml:19:5-67 
MERGED from [com.google.android.gms:play-services-maps:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-maps/8.1.0/AndroidManifest.xml:21:5-66 
MERGED from [com.google.android.gms:play-services-gcm:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-gcm/8.1.0/AndroidManifest.xml:22:5-67 
MERGED from [com.google.android.gms:play-services-maps:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-maps/8.1.0/AndroidManifest.xml:21:5-66 
MERGED from [com.google.android.gms:play-services-maps:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-maps/8.1.0/AndroidManifest.xml:21:5-66 
MERGED from [com.google.android.gms:play-services-measurement:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-measurement/8.1.0/AndroidManifest.xml:21:5-67 
MERGED from [com.google.android.gms:play-services-analytics:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-analytics/8.1.0/AndroidManifest.xml:21:5-67 
MERGED from [com.google.android.gms:play-services-ads:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-ads/8.1.0/AndroidManifest.xml:20:5-66 
MERGED from [com.google.android.gms:play-services-wallet:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-wallet/8.1.0/AndroidManifest.xml:20:5-66 
MERGED from [com.google.android.gms:play-services-maps:8.1.0] /MyApplication/app/build/intermediates/exploded-aar/com.google.android.gms/play-services-maps/8.1.0/AndroidManifest.xml:21:5-66 
    android:name 
     ADDED from /MyApplication/app/src/main/AndroidManifest.xml:6:22-64 
+0

謝謝!這就是我需要的。 – FlanschiFox

相關問題