gpt4 book ai didi

android - 无法解析com.stripe:stripe-android

转载 作者:行者123 更新时间:2023-12-03 05:14:44 24 4
gpt4 key购买 nike

我的项目build.gradle像自爆,但在同步后始终出现错误消息:无法解析com.stripe:stripe-android:+。但是,我认为条纹是android studio中的一种标准。请赐教我.....

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':CircularImageView')
compile project(':UrlImageViewHelper')
compile project(':ViewPagerIndicator')
compile project(':DevsmartAndroid')
compile project(':DenivipVideoComponents_PT3.8')
compile project(':BluejayDbLibrary')
compile project(':google-play-services_lib')
compile project(':AmazonLib')
compile files('libs/FlurryAnalytics-5.5.0.jar')
compile files('libs/opentok-android-sdk.jar')
compile ('com.stripe:stripe-android:+')
}

完整的构建文件,

应用插件:“android”

依赖项{
编译fileTree(dir:'libs',包括:'* .jar')
编译项目(':CircularImageView')
编译项目(':UrlImageViewHelper')
编译项目(':ViewPagerIndicator')
编译项目(':DevsmartAndroid')
编译项目(':DenivipVideoComponents_PT3.8')
编译项目(':BluejayDbLibrary')
编译项目(':google-play-services_lib')
编译项目(':AmazonLib')
编译文件('libs / FlurryAnalytics-5.5.0.jar')
编译文件('libs / opentok-android-sdk.jar')
编译('com.stripe:stripe-android:+')
编译'com.google.android.gms:play-services-analytics:8.3.0'

}

android {
compileSdkVersion 19
buildToolsVersion“22.0.1”
defaultConfig{
applicationId "com.bluejayPT.patient"
}

buildTypes {
release {
buildConfigField "boolean", "ENABLE_DEBUG", "false"
}
debug {

buildConfigField "boolean", "ENABLE_DEBUG", "true"
}
}

lintOptions {
checkReleaseBuilds false
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest_PT.xml'
//manifest.srcFile 'AndroidManifest_SK.xml'
java.srcDirs = ['.apt_generated','src']
resources.srcDirs = ['.apt_generated','src']
aidl.srcDirs = ['.apt_generated','src']
renderscript.srcDirs = ['.apt_generated','src']

assets.srcDirs = ['assets']
jni.srcDirs = []
jniLibs.srcDir('libs')

}

instrumentTest.setRoot('tests')

debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}

}

最佳答案

我有解决办法

在下面添加

allprojects {
repositories {
jcenter()
}

}

到项目build.gradle中,此问题得以解决,因为我的项目最初从eclipse迁移到了android studio,这意味着基于mavenCentral()而不是jcenter()的Eclipse存储库。

关于android - 无法解析com.stripe:stripe-android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34319901/

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