Android Google place picker立即关闭

Android Google place picker立即关闭,android,google-maps,Android,Google Maps,我已经设置了所有需要的东西,但每当我打开google place picker时,它会在加载后立即关闭。我还尝试用我的项目包和SHA-1密钥限制api 我添加了这个依赖项 implementation 'com.google.android.gms:play-services-places:17.0.0' 在清单中,它有元数据标记,如 <meta-data android:name="com.google.android.geo.API_KEY"

我已经设置了所有需要的东西,但每当我打开google place picker时,它会在加载后立即关闭。我还尝试用我的项目包和SHA-1密钥限制api

我添加了这个依赖项

    implementation 'com.google.android.gms:play-services-places:17.0.0'
在清单中,它有元数据标记,如

    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="@string/google_maps_key" />
日志正在打印


地点选择器于2019年7月29日被谷歌关闭。

请显示您的错误log@AnisurRahmanTonu请参阅编辑的问题,我已添加日志这是完整的日志?是@AnisurRahmanTonuSee related您可能希望查看Google问题跟踪程序中的Place Picker公共功能请求:
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    if (hasPermissions()) {
        PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();
        try {
            startActivityForResult(builder.build(this), PLACE_PICKER_REQUEST);
        } catch (Exception e) {
            Log.e("112233", e.getStackTrace().toString());
        }
    }
2019-11-03 17:07:31.625 20912-20912/com.kashif.locationsample D/ViewRootImpl@57f08c4[MainActivity]: ViewPostIme pointer 0

2019-11-03 17:07:31.721 20912-20912/com.kashif.locationsample D/ViewRootImpl@57f08c4[MainActivity]: ViewPostIme pointer 1

2019-11-03 17:07:31.837 20912-20912/com.kashif.locationsample D/ViewRootImpl@57f08c4[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1

2019-11-03 17:07:31.837 20912-20912/com.kashif.locationsample D/InputMethodManager: prepareNavigationBarInfo() DecorView@d20f601[MainActivity]

2019-11-03 17:07:31.837 20912-20912/com.kashif.locationsample D/InputMethodManager: getNavigationBarColor() -855310

2019-11-03 17:07:32.519 20912-20912/com.kashif.locationsample D/InputTransport: Input channel destroyed: fd=87

2019-11-03 17:07:33.149 20912-20912/com.kashif.locationsample D/ViewRootImpl@57f08c4[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1

2019-11-03 17:07:33.150 20912-20912/com.kashif.locationsample D/InputMethodManager: prepareNavigationBarInfo() DecorView@d20f601[MainActivity]

2019-11-03 17:07:33.150 20912-20912/com.kashif.locationsample D/InputMethodManager: getNavigationBarColor() -855310

2019-11-03 17:07:33.151 20912-20912/com.kashif.locationsample D/InputMethodManager: prepareNavigationBarInfo() DecorView@d20f601[MainActivity]

2019-11-03 17:07:33.151 20912-20912/com.kashif.locationsample D/InputMethodManager: getNavigationBarColor() -855310

2019-11-03 17:07:33.151 20912-20912/com.kashif.locationsample V/InputMethodManager: Starting input: tba=com.kashif.locationsample ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false

2019-11-03 17:07:33.151 20912-20912/com.kashif.locationsample D/InputMethodManager: startInputInner - Id : 0

2019-11-03 17:07:33.152 20912-20912/com.kashif.locationsample I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus

2019-11-03 17:07:33.154 20912-20912/com.kashif.locationsample D/InputTransport: Input channel constructed: fd=87

2019-11-03 17:07:33.155 20912-20912/com.kashif.locationsample D/ViewRootImpl@57f08c4[MainActivity]: setWindowStopped(false) old=false