Bitrise Build Issue Report template
Description of the issue
Hi
Me and my team are currently using a file only for a specific environment. Therefore, our project structure is like below :
.
+-- app
| +-- src
| | +-- A
| | | +-- com.package.test
| | | | +-- Test.kt
| | +-- B
| | +-- main
| | | +-- com.package.test
We have in our gradle file, the following configuration
buildTypes {
a {
//...
buildConfigField "com.package.test.Test", "test", "new com.package.test.Test()"
}
}
When we build our project locally it works fine, but on Bitrise.io, it looks like it couldn’t find the Test.kt
file.
Environment:
Bitrise.io only. It works perfectly on local
Step: Gradle Runner and Android Lint
After running the gradle task lintADebug
it failed at
Task :app:compileADebugJavaWithJavac
Reproducibility
Just do the same project structure as I have described above
Build log
> Task :app:compileADebugJavaWithJavac
/bitrise/src/app/build/generated/source/buildConfig/.../[REDACTED]/BuildConfig.java:16: error: cannot find symbol
public static final [REDACTED].Test test = new [REDACTED].Test();
^
symbol: class Test
location: package [REDACTED].internal
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
> Task :app:compileADebugJavaWithJavac FAILED
The only solution we have found is to move the specific file into the main folder. However, we do not want this file to be build on other build variant… Please let me know if you know how to figure it out. Any assistance would be appreciated.