2
我試圖使用街景視圖API實現自動完成地點搜索。 我下面是我的依賴關係:Android studio無法解析導入com.google.android.gms.location.places.Place;
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.android.gms:play-services-maps:11.0.4'
testCompile 'junit:junit:4.12'
}
的元數據如下:
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
我已經安裝了所有需要的SDK,但我的機器人工作室無法解決的地方在下面的部分進口:
import com.google.android.gms.location.places.Place;
import com.google.android.gms.location.places.ui.PlaceAutocomplete;
這是它的樣子: Error
它是添加母庫的好方法? – Amy