作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我买了源代码,我收到此错误:
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/
我使用 parse.com 启动程序进行了两天的讲座,没有出现任何问题。我走了几分钟,没有看到任何东西被改变,现在它不会同步。我已经搜索过,但没有发现任何我看不到的错误。提前感谢您的帮助。 这是错误:
我买了源代码,我收到此错误: Error:(46, 0) Could not find property 'compile' on org.gradle.api.internal.artifacts.
我是一名优秀的程序员,十分优秀!