Error: Configuration with name 'default' not found in Android Studio

前端 未结 11 1890
时光说笑
时光说笑 2020-11-27 15:03

I am using the volley library to perform network operation in android. So I am trying to add this library in my project which is created in Android Studio and gradle system

11条回答
  •  一个人的身影
    2020-11-27 15:35

    Check the settings.gradle file. The modules which are included may be missing or in another directory. For instance, with below line in settings.gradle, gradle searches common-lib module inside your project directory:

    include ':common-lib'
    

    If it is missing, you can find and copy this module into your project or reference its path in settings.gradle file:

    include ':common-lib'
    project(':common-lib').projectDir = new File('') // 
    

提交回复
热议问题