tôi cố gắng sử dụng mới Hạt phụ thuộc cho Google Dịch vụ 6.5 Chơi +Dịch vụ chơi phụ thuộc hạt lỗi
Trong gradle tôi thiết lập:.
dependencies {
compile 'com.android.support:appcompat-v7:21.0.2'
compile 'com.google.maps.android:android-maps-utils:0.3'
compile 'com.google.android.gms:play-services-base:6.5.87'
compile 'com.google.android.gms:play-services-location:6.5.87'
compile 'com.google.android.gms:play-services-maps:6.5.87'
}
nhưng tôi nhận lại được lỗi này:
Error:Execution failed for task ':app:processDebugResources'.
Error: more than one library with package name 'com.google.android.gms'
You can temporarily disable this error with android.enforceUniquePackageName=false
However, this is temporary and will be enforced in 1.0
Tôi đã cập nhật tất cả SDK.
Cách chính xác để sử dụng tính năng mới này là gì? Cảm ơn.
SOLVED
Vấn đề là android-bản đồ-utils đã có Service Chơi 6.5. +, Do đó lỗi.
trả lời ở đây: http://stackoverflow.com/questions/24795074/error-more-than-one-library-with-package-name-com-google-android -gms – jonathanrz
Xung đột dường như nằm giữa thư viện android-maps-utils và bất kỳ thư viện nào trong số các dịch vụ phát. Tôi không chắc chắn nếu android-maps-utils không còn cần thiết hoặc nếu có thứ gì đó bị đóng gói sai. –