source-sets Questions
5
Solved
After upgrade to Android Studio Chipmunk, my test failed because I can't access file inside shared folder that defined in build.gradle like this.
sourceSets {
androidTest.java.srcDirs += "src...
Forkey asked 24/5, 2022 at 7:31
10
Solved
I want to add integration tests to my Gradle build (Version 1.0). They should run separately from my normal tests because they require a webapp to be deployed to localhost (they test that webapp). ...
Krutz asked 20/7, 2012 at 14:30
2
Solved
I just upgraded from Bumblebee to Chipmunk, and I am having multiple dependency-resolution issues in my instrumented androidTests.
These are what my source sets look like:
sourceSets {
test.java.s...
Emperor asked 12/5, 2022 at 15:50
1
Solved
My project uses several Gradle source sets for its production code base instead of just main:
domain
dal
rest
test
dbUnitTest
This has proven very useful for limiting dependencies and enforcing...
Tera asked 21/2, 2020 at 21:22
1
Seemingly the same root cause as this question, but the answer there will not work for me. I have a custom source set called commonTest that I use for sharing certain test utility code across the t...
Stammel asked 1/4, 2018 at 18:22
1
Solved
I have 8000+ files named (1.txt, 2.txt, 3.txt, etc) on my /assets/files folder. However I don't need all of them for my debug build. I only need the first 30 of them. Indeed, if I leave all those f...
Telegraph asked 27/2, 2020 at 19:5
2
Solved
Gradle: how to get default resources output dir?
println sourceSets.main.resources.outputDir
Error:
Needs to set a non-null value before it can be retrieved
Melvinmelvina asked 27/6, 2017 at 20:48
6
Solved
I've got an old eclipse project I've moved into android studio and setup to use flavors. It seemed to be working fine till I started trying to use different java files between my flavors.
My proje...
Subordinate asked 19/10, 2013 at 1:1
3
Solved
Is it possible to use Kotlin package functions and package properties in different sourcesets? When I try to do so, I have NoSuchMethodError thrown.
Example
I have Gradle project with Kotlin co...
Sacculate asked 25/5, 2015 at 21:3
1
Suppose I have a build.gradle thus:
dependencies {
compile 'com.group:some-app:1.0.1'
compile 'com.group:some-app:1.0.1:sources'
}
sourceSets {
main {
other {
srcDir 'src/main/other'
}
}
}...
Sigismondo asked 29/8, 2018 at 15:42
1
Solved
I'm creating a Gradle task for my Android project that needs to know the path to the compiled .class files. How can I get this path? I've found suggestions (here and here; also see the Gradle docs ...
Guaiacum asked 7/4, 2016 at 13:41
1
Solved
This Question is similar to Make one source set dependent on another
Besides the main SourceSet I also have a testenv SourceSet.
The code in the testenv SourceSet references the main code, therefo...
Bibliomania asked 20/8, 2015 at 15:29
1
Solved
I've created custom source set in Gradle project to keep all generated code:
sourceSets {
generated {
java {
srcDir 'src/generated/java'
}
resources {
srcDir 'src/generated/resources'
}
}
...
Georgenegeorges asked 16/1, 2014 at 12:30
2
Solved
I'm converting my app to use gradle, and I'm trying to use the buildTypes. I have a Constants class which I wish to modify for my release build. So I have a file at src/main/java/my/package/name/Co...
Superstition asked 13/9, 2013 at 9:4
1
© 2022 - 2024 — McMap. All rights reserved.