小编hai*_*der的帖子

Google Places api AutocompletePrediction prediction.getDescription()MissingAfter升级到Play服务到9.4.0

由于firebase将play-services升级到9.4.0之后,因为它必须为firebase添加最新版本9.0.0或更高版本,因此我面临的问题是AutocompletePrediction预测.getDescription()现在显示为在我的项目中找不到,除了Gradle更新之外我还没改变任何东西,我认为新的播放服务缺少.getDescription方法,PLZ帮助我这是我的新Gradle`comped'com.google.firebase:firebase-core:9.4.0'

compile 'org.osmdroid:osmdroid-android:5.1@aar'
compile 'com.github.MKergall.osmbonuspack:OSMBonusPack:v5.7'
compile 'com.google.android.gms:play-services:9.4.0'
compile 'com.google.android.gms:play-services-ads:9.4.0'
compile 'com.google.android.gms:play-services-identity:9.4.0'
compile 'com.google.android.gms:play-services-gcm:9.4.0'
Run Code Online (Sandbox Code Playgroud)

} apply plugin:'com.google.gms.google-services'public and this one is my java file where >getDescription is missingPlaceAutocomplete getItem(int position){return mResultList.get(position); }

private ArrayList<PlaceAutocomplete> getPredictions(CharSequence constraint) {
    if (mGoogleApiClient != null) {
        Log.i(TAG, "Executing autocomplete query for: " + constraint);
        PendingResult<AutocompletePredictionBuffer> results =
                Places.GeoDataApi
                        .getAutocompletePredictions(mGoogleApiClient, constraint.toString(),
                                mBounds, mPlaceFilter);
        // Wait for predictions, set the timeout.
        AutocompletePredictionBuffer autocompletePredictions = results
                .await(60, TimeUnit.SECONDS);
        final Status status = autocompletePredictions.getStatus();
        if (!status.isSuccess()) {
            Toast.makeText(getContext(), …
Run Code Online (Sandbox Code Playgroud)

java android google-api google-places-api

4
推荐指数
1
解决办法
5609
查看次数

Admob Native Express和Native Advanced Ads之间有什么区别

Admob Native Express和Native Advanced Ads之间有什么区别?是否有单独的Ad ids for Native express或原生高级广告,我已经看到本机高级使用2个ID,其中一个是广告ID,另一个是App id但是表达需要一个

android

1
推荐指数
1
解决办法
2161
查看次数

标签 统计

android ×2

google-api ×1

google-places-api ×1

java ×1