Configuration with name 'default' not found


I try to compile a big project with Bitrise.
There are 4 includes librairies and one git submodule correctly include in my project.

I have no problem to compile in debug or release mode with android studio.
I have no problem to compile with ./gradlew assembleDevelopmentRelease
I only have problem with bitrise.

My problem occurs at the beginning just after the step gitClone during install-missing-android-tool@2.0.3 :

Ensure required Android SDK components
Searching for missing SDK components using:
$ ./gradlew "dependencies"
Download https://maven. …
Download https://jcenter

FAILURE: Build failed with an exception.
*What went wrong:
A problem occurred configuring project ‘:myApp’.
Could not resolve all dependencies for configuration ‘:myApp:_developmentDebugApk’.
Configuration with name ‘default’ not found.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 1 mins 7.921 secs
exit status 1

Update :
I downgraded install-missing-android-tool version to 1.1.0 and I succeeded this step. But I retrieve the same problem at the step Gradle Runner …

Have you any idea about this problem ?

1 Like

Ok the problem comes from an imported library :
This lib was not correctly import for bitrise.

Solution :

  • Move your lib folder in a folder libs/

  • In the gradle import the lib with the following lines :

      compile fileTree(dir: 'libs', include: ['ZXingLib'])
      compile project(':libs:ZXingLib')
  • In settings.gradle :
    include ':libs:ZXingLib'

1 Like

Glad to hear it got resolved :slight_smile: If any issue comes up which is related to this topic, feel free to share it. Happy building :slight_smile:

1 Like