gpt4 book ai didi

android - 包 com.google.api.client.extensions.android.http 不存在

转载 作者:搜寻专家 更新时间:2023-11-01 08:22:21 26 4
gpt4 key购买 nike

我直接点。当我尝试运行该应用程序时出现了一些错误

package com.google.api.client.extensions.android.http does not exist

package com.google.api.client.extensions.android.json does not exist

package io.reactivex does not exist

build.gradle 文件

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.facebook.android:facebook-android-sdk:4.16.0'
compile 'com.pkmmte.view:circularimageview:1.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.yalantis:ucrop:2.2.1'
compile 'com.android.support:design:23.3.0'
compile 'com.google.android.gms:play-services-gcm:11.0.4'
compile 'com.writingminds:FFmpegAndroid:0.3.2'
compile 'com.google.apis:google-api-services-youtube:v3-rev186-1.23.0'
compile group: 'com.google.oauth-client', name: 'google-oauth-client-java6', version: '1.23.0'
compile group: 'com.google.oauth-client', name: 'google-oauth-client-jetty', version: '1.23.0'
compile 'com.github.PierfrancescoSoffritti:AndroidYouTubePlayer:4.1.7'
//compile "android.arch.lifecycle:runtime:1.0.0-alpha2"
//compile "android.arch.lifecycle:extensions:1.0.0-alpha2"
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.netflix.rxjava:rxjava-android:0.16.1'
compile 'com.google.api-client:google-api-client:1.23.0'
implementation "android.arch.lifecycle:livedata:1.1.1"
implementation "android.arch.lifecycle:viewmodel:1.1.1"
implementation "android.arch.lifecycle:extensions:1.1.1"
compile files('libs/YouTubeAndroidPlayerApi.jar')
testCompile 'junit:junit:4.12'
}

我需要在 build.gradle 中编译一些库吗?让我知道并感谢所有人!

最佳答案

尝试:

compile 'io.reactivex:rxjava:1.0.10'
compile 'com.google.api-client:google-api-client:1.23.0'

compile 'com.netflix.rxjava:rxjava-android:0.16.1'
compile 'com.google.api-client:google-api-client:1.23.0'

编辑

compile group: 'com.google.api-client', name: 'google-api-client', version: '1.22.0'
compile group: 'com.google.api-client', name: 'google-api-client-android', version: '1.22.0'

关于android - 包 com.google.api.client.extensions.android.http 不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49487476/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com