gradle

com.android.builder.dexing.DexArchiveBuilderException: Error while dexing

核能气质少年 提交于 2020-02-24 09:07:03
问题 I am getting this issue when I am trying to run my project - com.android.builder.dexing.DexArchiveBuilderException: Failed to process .gradle\caches\transforms-1\files-1.1\firebase-analytics-impl-11.8.0.aar\0e3311be69809df8820438f9666651f5\jars\classes.jar com.android.builder.dexing.DexArchiveBuilderException: Error while dexing. com.android.tools.r8.CompilationFailedException: Compilation failed to complete com.android.tools.r8.utils.AbortException: Error: Type com.google.android.gms.common

com.android.builder.dexing.DexArchiveBuilderException: Error while dexing

喜你入骨 提交于 2020-02-24 09:07:03
问题 I am getting this issue when I am trying to run my project - com.android.builder.dexing.DexArchiveBuilderException: Failed to process .gradle\caches\transforms-1\files-1.1\firebase-analytics-impl-11.8.0.aar\0e3311be69809df8820438f9666651f5\jars\classes.jar com.android.builder.dexing.DexArchiveBuilderException: Error while dexing. com.android.tools.r8.CompilationFailedException: Compilation failed to complete com.android.tools.r8.utils.AbortException: Error: Type com.google.android.gms.common

Gradle构建多模块SpringBoot项目

╄→гoц情女王★ 提交于 2020-02-23 19:08:42
Gradle构建多模块SpringBoot项目 直接贴源码:https://github.com/MistraR/gradle-multi-module.git gradle-multi-module 在README.md和源码注释中说的很详细了,这里就不展开了。 依赖: 加载结果: 我的公众号:Coding抠腚 一个没有福报的Java程序员。偶尔发发自己最近学到的干货。学习路线,经验,技术分享。技术问题交流探讨。 来源: CSDN 作者: Mistra丶 链接: https://blog.csdn.net/Axela30W/article/details/104459494

Android: Unresolved reference when using junit 4.13

元气小坏坏 提交于 2020-02-23 11:29:08
问题 After updating junit version to 4.13 in gradle dependencies, classes and annotations like Assert , @Test , etc. under the junit package are displayed as red when used in my code. Lint check says: Unresolved reference: <any junit class> However, when I build and run my tests, it will build and run just fine. I have tried: restarting Android Studio Invalidate caches and restart Clean and rebuild project added testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" What works

gradle: Skipping task ':compileJava' as it has no source files

ぐ巨炮叔叔 提交于 2020-02-23 09:22:10
问题 i try gradle -d compileJava in my try project, and gradle raise "Skipping task ':compileJava' as it has no source files.". the worse thing is that i can't see anything created in build/. i create this project only with running gradle init and creating a "src/Ex.java". my question is: How to load default "compileJava" or define my "compileJava" to fix this warning. 回答1: By default, Java source files need to go into src/main/java (or src/test/java for test sources). Either adapt your directory

Expiring Daemon because JVM heap space is exhausted

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-23 08:36:32
问题 I just updated the Android Studio to 3.5 Beta 1 and I'm getting Expiring Daemon because JVM heap space is exhausted message while the build is running. Also, the build is taking more time to complete. Does anyone have any idea regarding this? 回答1: I was able to solve this for my React Native project by configuring the following: // gradle.properties org.gradle.daemon=true org.gradle.configureondemand=true org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile

Gitlab CI - Publish Failed Test Results to Pages

纵饮孤独 提交于 2020-02-23 04:15:08
问题 I'm creating a simple java project using Gradle which generates a test report (i.e. BDD Cucumber, JUnit, etc.). This project is deployed to Gitlab where the project is built as part of the Gitlab CI process. My JUnit reports are generated in the folder build/reports/tests/test/ relative to the project path (as an index.html and some CSS files, etc.). How do I configure my .gitlab-ci.yml to publish the content of build/reports/tests/test/ to the Gitlab Pages even after my test cases fail ?

Duplicate class from androidx.core:core:1.0.0 and com.android.support:support-compat:26.1.0

五迷三道 提交于 2020-02-23 03:51:48
问题 This is my build.gradle : buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' repositories { maven { url 'https://maven.fabric.io/public' } google() } android { compileSdkVersion 26 buildToolsVersion '26.0.2' useLibrary 'org.apache.http.legacy' defaultConfig {

Duplicate class from androidx.core:core:1.0.0 and com.android.support:support-compat:26.1.0

为君一笑 提交于 2020-02-23 03:51:19
问题 This is my build.gradle : buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' repositories { maven { url 'https://maven.fabric.io/public' } google() } android { compileSdkVersion 26 buildToolsVersion '26.0.2' useLibrary 'org.apache.http.legacy' defaultConfig {

IntelliJ Error:Abnormal build process termination

好久不见. 提交于 2020-02-22 14:35:28
idea编译的错误 Information:6/7/16, 12:14 PM - Compilation completed with 1 error and 0 warnings in 10ms Error:Abnormal build process termination: /Users/USERNAME/Downloads/jdk1.8.0_91/bin/java -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\" -Djdt.compiler.useSingleThread=true -Dpreload.project.path=/Users/USERNAME/IdeaProjects/Test -Dpreload.config.path=/Users/USERNAME/Library/Preferences/IdeaIC2016.1/options -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=2119707358466010108 -Dfile.encoding=UTF-8 -Djps.file