sınıf yolunu bulamıyorum bir android eklentisi ile ilgili classpath bulamıyorum diyerek bu hatayı alıyorum. gradle kullanarak 1.2.Gradle android eklentisi için
buradaCould not find method classpath() for arguments [org.gradle.api.plugins:gradle-android-plugin:1.2.1]
benim build.gradle
dosya
//setup external dependency plugins we will use to build a android application
buildscript {
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-android-plugin:1.2.1'
}
}
//apply eclipse plugin
apply plugin: 'eclipse'
//apply android plugin
apply plugin: 'android'
apply plugin: 'maven'
task hello << {
String value = 'wagwan'
println 'Hello world!' + value.toUpperCase()
}
Teşekkür
düzenleme: Burada
hatadır yeni bir hata ben şimdi alma:FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve group:org.gradle.api.plugins, module:gradle-android-plugin, version:1.2.1.
Required by:
:RssUnified:unspecified
> Could not GET 'http://repo1.maven.org/maven2/org/gradle/api/plugins/gradle-android-plugin/1.2.1/gradle-android-plugin-1.2.1.pom'.
> Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/org/gradle/api/plugins/gradle-android-plugin/1.2.1/gradle-android-plugin-1.2.1.pom'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Düzenlemede yukarıda belirtilen hata iletisini almıyorum. Eklenti başarıyla indirilebilir. Aynı kodu Gradle 1.2 ile çalıştırdım. –
Sanırım cmd komutum işte doğru internet proxy kullanmıyor. windows 7 cmd.exe için kullanılan internet proxy nasıl değiştirebileceğim hakkında herhangi bir fikir? – jonney
"Gradle.properties" içinde [Gradle için bir HTTP proxy'si kurabilirsiniz] (http://www.gradle.org/docs/current/userguide/build_environment.html). –