0
/usr/local/TeamCity/buildAgent/work/app/XXX.java:339: error: cannot find symbol
        if (!original.url().toString().startsWith(BuildConfig.API_OAUTH) && AccessToken.getInstance() != null) { 
                                                             ^ 
  symbol:   variable API_OAUTH 
  location: class BuildConfig 

TeamCity can't build my Android project. I think that it does not know what kind of build type is needed. Or am I mistaken and the error in something other?

SurvivalMachine
  • 7,946
  • 15
  • 57
  • 87
Ilnar Karimov
  • 339
  • 2
  • 6
  • 19

1 Answers1

0

My solution:

Yeah, TeamCity didnt know which buildvariants it should to build. So i set a special gradle tasks in teamcity's settings.

clean assembleProductionRelease testProductionReleaseUnitTest
Ilnar Karimov
  • 339
  • 2
  • 6
  • 19