gradle-plugin

Android Studio Gradle build error :app:mergeDebugResources, Crunching Cruncher loader.png failed

别来无恙 提交于 2019-12-12 04:05:18
问题 I am trying to integrate Google Signin in my Android App. I am facing issue with building apk when I include Google Services Dependencies. Below are my gradle files and error log. The google services lib is also prompting me to use gradle-wrapper 2.10 and not 2.8 PROJECT LEVEL GRADLE FILE: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0'

How can one turn off sonar analyser but still get coverage report?

拜拜、爱过 提交于 2019-12-11 18:07:31
问题 It has been cleared here that from Sonarqube version 6.2 that coverage reports are merged and there won't be separate unit and integration coverage report anymore. We still interested to have these two coverage reports separately. So, We have three sonar projects: unit-tests, integration-tests, whole-project(which is responsible to create overall coverage report) Problem: All source files are analysed in all three projects. Since the number of files are too many, it takes several minutes to

Gradle sync failed: Could not find method Dependencies() for arguments

若如初见. 提交于 2019-12-11 16:47:56
问题 Full error: Gradle sync failed: Could not find method Dependencies() for arguments [build_aewao5k4tyewg69imdynjiuxi$_run_closure1$_closure3@7c332105] on object of type org.gradle.api.internal.initialization.DefaultScriptHandler. Top level build.gradle: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() google() jcenter() } Dependencies { classpath 'com.android.tools.build:gradle:3.0.1' } } 回答1: Use

exportedHeaders DSL does not seem to include the headers

不问归期 提交于 2019-12-11 13:11:54
问题 I am trying to make use of the "Multiple NDK Projects" feature of the experimental gradle plugin. I am using Android Studio 2.1 and gradle plugin 0.7.0 stable. The blog seems to say that the header files specified in the exportedHeaders section of the native library will be included during compilation exportedHeaders { srcDir "src" } This does not seem to work for me. Say for example I have the following folder structure, I would expect Addition.h to be available in native.cpp, ie I should be

Gradle and AspectJ - avoid weaving my own packages during compile time

半城伤御伤魂 提交于 2019-12-11 11:29:55
问题 I'm creating an aspectj project, which is NOT spring related. All the aspects were written by me. So Far I've been working with "ant" build to compile my agent, and now I'm trying to move to gradle. My problem - I don't want my classes to be instrumented, but the ajc weaves my code as well, so if I'm adding a point cut to "someFunction()" function and my code com.myproject.MyClass has a function called "someFunction" it will be instrumented. How can I configure the gradle aspectj plugin to

How to configure Gradle Java plugin from a custom Gradle plugin

巧了我就是萌 提交于 2019-12-11 07:59:26
问题 I've written a custom Gradle plugin in Kotlin 1.2.50 for use with Gradle 4.8. I've successfully applied the Java plugin from my plugin's apply method: override fun apply(project: Project) { project.pluginManager.apply(JavaPlugin::class.java) // configure Java plugin here } How do I configure the Java plugin? e.g., I want to achieve the equivalent of the following that would normally be in a build.gradle.kts : java { sourceCompatibility = VERSION_1_10 targetCompatibility = VERSION_1_10 } 回答1:

Run gradle task after project is built with distribution plugin

こ雲淡風輕ζ 提交于 2019-12-11 06:08:43
问题 I'm using gradle 4.1 My project has five modules. After build I generate five jars in each module. My goal is to create a zip archive and upload it to artifactory server. I can only generate my zip deploy artifact with my jars only when build of other modules is complete. I see that it copies jars from libs directory, but I'm looking for a way to do this after the overall build of the project. I saw some examples with dependsOn, but it doesn't seem to be working. Here is what I have: apply

How to set “-aspectpath” for the FreeFair AspectJ Gradle Plugin?

血红的双手。 提交于 2019-12-11 02:08:50
问题 I am trying to use an AspectJ Annotation that is in a Library, that I am pulling into my project. My project uses Gradle, so I am attempting to use FreeFair AspectJ Gradle Plugin. I need to be able to set the AspectJ -aspectpath argument, to the Library Dependency that Gradle is pulling in. FreeFair, does not seem to have much Documentation, mainly just Sample Code. In their sample code, I see that I can use this to set the -aspectpath to a local "project": aspect project(":aspectj:aspect")

Updated android studio and got fail with Gstreamer build

删除回忆录丶 提交于 2019-12-10 18:50:26
问题 Updated to Android Studio 3.0.0 with new android gradle plugin. While buildin project got message: What went wrong: Execution failed for task `':app:externalNativeBuildDebug'`. Expected output file at `gst-build-arm64-v8a/libgstreamer_android.so` for target `gstreamer_android` but there was none but libgstreamer_android.so library file is already there. For native code I use ndk-build. Does anyone have this issue? 回答1: Add to build.gradle file of our android module field targets. android {

Task with name 'mockableAndroidJar' not found in project ':app'

匆匆过客 提交于 2019-12-10 17:55:35
问题 after changing gradle android plugin version to 3.2.1 classpath 'com.android.tools.build:gradle:3.2.1' I received such build error: Task with name 'mockableAndroidJar' not found in project ':app'. Invalidate cache and restart doesn't help 回答1: Happened to me too, fixed by upgrading Android Studio to version 3.2.1 Seems like they've changed the gradle task name from mockableAndroidJar to createMockableJar 来源: https://stackoverflow.com/questions/53048368/task-with-name-mockableandroidjar-not