0
私はAndroid Studio 1.1とAP1 21(コースの一部として必要なバージョン)を使用しています。私はGoogle Maps Activity
を使って新しいプロジェクトを作成します。 setUpMapIfNeeded
方法では、Error:(48, 21) error: cannot find symbol method getMap()
:自動的に生成されたコードの中でエラー:(48、21)エラー:シンボルメソッドが見つかりませんgetMap()
は、私は、次のエラーメッセージが表示されます
private void setUpMapIfNeeded() {
// Do a null check to confirm that we have not already instantiated the map.
if (mMap == null) {
// Try to obtain the map from the SupportMapFragment.
mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
.getMap();
// Check if we were successful in obtaining the map.
if (mMap != null) {
setUpMap();
}
}
}
任意のアイデアこの問題を解決する方法?ありがとう!