gradle

Execution failed for task ‘:app:androidDependencies’ on Circle CI but not locally

人盡茶涼 提交于 2021-02-08 10:24:20
问题 Note that I posted this question on Circle CI's discussion forum too, so I'd like some feedback relating to my Gradle environment (i.e. downloading dependencies from Maven based on build type/variant), or heck, if you can help me out altogether on this issue as a whole! For some reason, I can't get the dependencies (Square's Reader SDK in this case, and yes, I confirmed with the Square team that only aar files should be downloaded instead of jar from Maven - note errors towards the bottom of

gradle wsimport

孤街醉人 提交于 2021-02-08 09:15:22
问题 I'm running wsimport from my commandline to generate java classes from WSDL as below. wsimport -J-Djavax.xml.accessExternalDTD=all -J-D-Djavax.xml.accessExternalSchema=all -b http://www.w3.org/2001/XMLSchema.xsd -b customization.xjb -s genSrc https://example.com/XYZ.asmx?wsdl I want to create the equivalent gradle task. I shouldn't be using any random custom gradle plugins due to company restrictions. What's the best way to go about it? 回答1: Found on web use ant task more detail on metro

gradle wsimport

只愿长相守 提交于 2021-02-08 09:13:06
问题 I'm running wsimport from my commandline to generate java classes from WSDL as below. wsimport -J-Djavax.xml.accessExternalDTD=all -J-D-Djavax.xml.accessExternalSchema=all -b http://www.w3.org/2001/XMLSchema.xsd -b customization.xjb -s genSrc https://example.com/XYZ.asmx?wsdl I want to create the equivalent gradle task. I shouldn't be using any random custom gradle plugins due to company restrictions. What's the best way to go about it? 回答1: Found on web use ant task more detail on metro

Mars Android 接入指南

情到浓时终转凉″ 提交于 2021-02-08 09:00:06
Mars Android 接入指南 https://github.com/Tencent/mars/wiki/Mars-Android-%E6%8E%A5%E5%85%A5%E6%8C%87%E5%8D%97 gradle 接入 gradle 接入使用的日志加密算法是不加密的,长连接短连接加解包也是默认的,如需自定义请参考 本地编译 。注意 gradle接入因为考虑依赖包体积的大小,只提供了 armeabi 和 x86_64 两种 CPU 架构的 so, 如果你使用的其他 so 有其他架构的,务必不要使用 gradle 依赖,参考 本地编译 编出你需要的 so,否则会报 Couldn’t find “xxxx.so” 的错误 目前 gradle 接入支持两种方式:mars-core 和 mars-wrapper。只是做个 sample 的话建议可以使用 mars-wrapper, 但是如果在实际 App 中使用 mars,建议使用 mars-core 或 本地编译 在 app 的 gradle 文件 app/build.gradle,添加 Mars 的库依赖: dependencies { compile 'com.tencent.mars:mars-core:1.2.2' } 或者 dependencies { compile 'com.tencent.mars:mars

Logs from one Test class are displayed in other class's Standard output section in Gradle Test reports

泄露秘密 提交于 2021-02-08 08:53:41
问题 I am using TestNG (with gradle) for parallel test execution. Gradle Task for executing my tests :- task executeTests(type: Test) { useTestNG{ options -> options.parallel = 'classes' options.threadCount = 2 } } I have some logging in tests. In Gradle reports logs of one test class are being printed in standard output section of some other test class when we execute tests in parallel. To debug, I created 3 classes with one test each and printed Thread.currentThread().getId() with logs. In

Include tests from other module

为君一笑 提交于 2021-02-08 08:42:14
问题 My project looks like this: ├───module1-test-cases │ └───src │ └───test │ └───groovy │ └───specs │ └───module1test └───module2-test-cases └───src └───test └───groovy └───specs └───module2test There is a lot different modules, each module has its own build.gradle file, so i can run tests for separate modules Example of build.gradle dependencies{ compile("org.codehaus.groovy:groovy-all:2.3.3") compile project(":core") compile("commons-codec:commons-codec:1.10") testCompile("junit:junit:4.11")

`runBlocking` coroutine builder is not resolved in the project (Other builders are resolved)

☆樱花仙子☆ 提交于 2021-02-08 08:20:52
问题 As the title suggest, the coroutine builder runBlocking is missing in the coroutine liblary I just added in my build.gradle. Funny thing is every other thing appears to be available, GlobalScope , CoroutineScope.launch CoroutineScope.async all present. runBlocking isn't. What am I doing wrong? here is my build.gradle buildscript { ext { ktor_version = "1.1.1" kotlin_version = "1.3.20-eap-52" } dependencies { classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.44" classpath "org

`runBlocking` coroutine builder is not resolved in the project (Other builders are resolved)

隐身守侯 提交于 2021-02-08 08:20:03
问题 As the title suggest, the coroutine builder runBlocking is missing in the coroutine liblary I just added in my build.gradle. Funny thing is every other thing appears to be available, GlobalScope , CoroutineScope.launch CoroutineScope.async all present. runBlocking isn't. What am I doing wrong? here is my build.gradle buildscript { ext { ktor_version = "1.1.1" kotlin_version = "1.3.20-eap-52" } dependencies { classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.44" classpath "org

Error while launching activity in Android Studio

感情迁移 提交于 2021-02-08 05:57:36
问题 I am trying to make an Android Studio app that has more than one java file. However, when I was trying to run my app, it said: Error while executing: am start -n "com.example.company.appname/com.example.company.appname.Text" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.company.appname/.Text } Error type 3 Error: Activity class {com.example.company.appname/com.example

Upgrading Gradle 5.3.1 to 6.5. Older version downloaded dependency OK, but fails on 6.5

天大地大妈咪最大 提交于 2021-02-08 05:56:06
问题 I have whittled down my problem to a very simple project that declares a module dependency on a module artifact served from my client's artifactory instance. This is working fine with 5.3.1. As can be seen from the logs below there is a line which indicates DefaultExternalResourceArtifactResolver is loading the associated .jar for this dependency from my maven2 repo (see: {{{ A }}}) However, when I attempted to upgrade to Gradle 6.5, I get the message org.gradle.api.internal.artifacts