gradle

plugin request for plugin already on the classpath must not include a version

ε祈祈猫儿з 提交于 2020-03-25 18:23:21
问题 I've done web search for "plugin request for plugin already on the classpath must not include a version site:stackoverflow.com" and found nothing that particular. Search for "plugin request for plugin already on the classpath must not include a version" (w/out SO) found: https://discuss.gradle.org/t/error-plugin-already-on-the-classpath-must-not-include-a-version/31814 where I've read in answers e.g.: I didn’t find any reference to this use case in Grade plugins documentation. The error Build

plugin request for plugin already on the classpath must not include a version

狂风中的少年 提交于 2020-03-25 18:23:13
问题 I've done web search for "plugin request for plugin already on the classpath must not include a version site:stackoverflow.com" and found nothing that particular. Search for "plugin request for plugin already on the classpath must not include a version" (w/out SO) found: https://discuss.gradle.org/t/error-plugin-already-on-the-classpath-must-not-include-a-version/31814 where I've read in answers e.g.: I didn’t find any reference to this use case in Grade plugins documentation. The error Build

How can I stop Gradle deleting .jars from my project's module path?

你。 提交于 2020-03-25 16:56:53
问题 I'm trying to develop a Gradle project which involves JavaFX. Specs: Linux Mint 18.3, Java 11, Eclipse 2019-06, JavaFX: either 13 or 11... A couple of useful answers to questions have helped me over the past hours: this one tells me (with useful clonable example) how to configure things, at least using a Java file to hold my project's main class (in fact I ultimately want to write all my code in Groovy ideally), in order to overcome the error "JavaFX runtime components are missing, and are

AndroidStudio3.4 gradle-5.1.1-all.zip 下载失败问题相关尝试

狂风中的少年 提交于 2020-03-24 10:53:42
3 月,跳不动了?>>> 错误提示: gradle-5.1.1-all.zip 下载失败,导致无法编译 1.复制连接到迅雷中进行下载: https://services.gradle.org/distributions/gradle-5.1.1-all.zip 2.下载完成后。打开目录 /Users/mac用户名/.gradle/wrapper/dists/gradle-5.1.1-all 3.删除里面的临时文件,并把gradle-5.1.1-all.zip 拖入此目录。 4.重启android studio 自动解压 5.重启后提示版本不对 6.打开sdk manager 选择28 点击确定(菜单-->Tools-->sdk manager) 先配置下ide的下载镜像,参考: https://www.cnblogs.com/pingxin/p/p00078.html 我先的是:南阳理工学院镜像服务器地址:mirror.nyist.edu.cn 端口:80 配置完镜像地址,再进入sdk管理界面选择对应要安装sdk. 开始安装sdk28 经过漫长下载,重启android studio3.4 总结:安装完新版as3.4以后,要重新安装下新版NDK(有条件直接找下载地址通过迅雷下载),并绑定。 ndk谷歌下载页面: https://developer.android.com/ndk

Android Studio 导入新工程项目

…衆ロ難τιáo~ 提交于 2020-03-24 08:12:52
Android Studio 导入新工程项目 https://blog.csdn.net/Arthur_diyun/article/details/85123277 build.gradle classpath 'com.android.tools.build:gradle:3.2.0' gradle distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip app compileSdkVersion 28 defaultConfig { applicationId "net.lvorytower.schoolmate.myapplication" minSdkVersion 19 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0

how does gradle resolve conflicting dependency versions

不问归期 提交于 2020-03-23 15:41:04
问题 Say I have 3 modules with 3 different build.gradle property files. Module A v1 has the following entries in build.gradle ATLAS_VERSION = 1 Module B v1 has the following entries in build.gradle ATLAS_VERSION = 2 MODULE_A_VERSION = 1 Module C v1 has the following entries in its build.gradle ATLAS_VERSION = 3 MODULE_B_VERSION = 1 So my question is: what ATLAS version will be resolved during runtime? 回答1: According to this Gradle documentation Managing Transitive Dependencies, in case you don't

How to migrate from Kotlin 1.2 to 1.3 with the kotlin-dsl Gradle plugin?

房东的猫 提交于 2020-03-23 15:37:20
问题 I am currently using the kotlin-dsl Gradle plugin 0.18.2, Kotlin 1.2.51 and Gradle 4.10.2 in my Android project (take a look at the temporary project-setup branch). I like to migrate to Kotlin 1.3 . However, I have difficulties in finding out which combination of version works. I raised the dependencies to their latest version: // in build.gradle.kts: id("org.gradle.kotlin.kotlin-dsl") version "1.0.4" ... // in build.gradle: org.jetbrains.kotlin:kotlin-stdlib:1.3.10 As soon as I run a Gradle

How to migrate from Kotlin 1.2 to 1.3 with the kotlin-dsl Gradle plugin?

徘徊边缘 提交于 2020-03-23 15:37:20
问题 I am currently using the kotlin-dsl Gradle plugin 0.18.2, Kotlin 1.2.51 and Gradle 4.10.2 in my Android project (take a look at the temporary project-setup branch). I like to migrate to Kotlin 1.3 . However, I have difficulties in finding out which combination of version works. I raised the dependencies to their latest version: // in build.gradle.kts: id("org.gradle.kotlin.kotlin-dsl") version "1.0.4" ... // in build.gradle: org.jetbrains.kotlin:kotlin-stdlib:1.3.10 As soon as I run a Gradle

Problem with Grade sync in Android Studio

江枫思渺然 提交于 2020-03-23 12:11:31
问题 When I try to synch grade I got the following message: 1:09 PM Gradle sync failed: Could not find com.android.tools.build:gradle:3.6.1. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.6.1/gradle-3.6.1.pom - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.6.1/gradle-3.6.1.jar - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.6.1/gradle-3.6.1.pom - https://repo.maven.apache.org/maven2

Gradle Sync failed: Premature end of Content-length delimited message body (Expected: 27633912;received : 12844960)

懵懂的女人 提交于 2020-03-22 09:29:41
问题 I have installed Android Studio 3.1.4 and the Gradle (Version 4.4) is not synchronizing; it says: Gradle Sync failed: Premature end of Content-length delimited message body (Expected: 27633912;received : 12844960) Build.Gradle 回答1: This was happening because of "unstable" internet connection. I used a stable connection and gradle synchronized successfully. 来源: https://stackoverflow.com/questions/51980686/gradle-sync-failed-premature-end-of-content-length-delimited-message-body-expe