gpt4 book ai didi

java - 错误:(46,0)在org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@1e88544b上找不到属性 'compile'

转载 作者:行者123 更新时间:2023-12-03 06:32:47 27 4
gpt4 key购买 nike

我买了源代码,我收到此错误:

Error:(46, 0) Could not find property 'compile' on
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@1e88544b
apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.pongodev.recipesapp"
minSdkVersion 11
targetSdkVersion 21
versionCode 5
versionName "3.0.3"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

// Main libraries, you always need this libraries in your project. do not remove them.

// Important library to create material design. do not remove this.
compile project(':materialDesign')

// Library to create tabbar

// Library to create ripple effect. work together with materialDesign library.

// Library to create rounded, circle, and any shape image.

// Library load lazy images.

// Library to create simple list.

// Library to create complex clickable list.

// Library to create material dialog.

// Library to create animation imageview.

compile
'com.android.support:appcompat-v7:24.2.0' compile
'com.android.support:support-v4:24.2.0' compile
'com.google.android.gms:play-services:9.4.0' compile
'com.jpardogo.materialtabstrip:library:1.0.6' compile
'com.github.traex.rippleeffect:library:1.2.2' compile 'com.makeramen:roundedimageview:1.4.0'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.android.support:recyclerview-v7:24.2.0'
compile 'com.android.support:cardview-v7:24.2.0'
compile 'com.afollestad:material-dialogs:0.6.0'
compile 'com.flaviofaria:kenburnsview:1.0.5'
compile 'com.google.android.gms:play-services-ads:9.4.0'
compile 'com.google.android.gms:play-services-auth:9.4.0'
compile 'com.google.android.gms:play-services-gcm:9.4.0'
}

最佳答案

如果您正确复制了Gradle构建脚本,则该脚本将在末尾用完。
这些行应该全部读compile 'asdfasdfasdf',而不是一行上的compile,然后再读下一行。

所以块

compile
'com.android.support:appcompat-v7:24.2.0' compile
'com.android.support:support-v4:24.2.0' compile
'com.google.android.gms:play-services:9.4.0' compile
'com.jpardogo.materialtabstrip:library:1.0.6' compile
'com.github.traex.rippleeffect:library:1.2.2' compile 'com.makeramen:roundedimageview:1.4.0'

应该最应该阅读
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:support-v4:24.2.0'
compile 'com.google.android.gms:play-services:9.4.0'
compile 'com.jpardogo.materialtabstrip:library:1.0.6'
compile 'com.github.traex.rippleeffect:library:1.2.2'
compile 'com.makeramen:roundedimageview:1.4.0'

关于java - 错误:(46,0)在org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@1e88544b上找不到属性 'compile',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39380237/

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