Android Studio Gradle project refresh failed:Configuration with name 'default' not found

痞子三分冷 提交于 2019-12-04 18:10:22
armysheng

Try command gradlew tasks --info in terminal,

you may see "Evaluating project ':libraries:wheel' using empty build file."

maybe its because wheel is not an android studio project, AS didn't find build.gradle file

I fix this problem by import the library with android studio rather than direct copy it the YOURPRO\libraries.

How to use a library project in android studio And it works.

Note that it will be more tidy if your create a libraries folder and drag

wheel file after your import. Remember to add

include:libraries:pullToRefreshListView in your settings.gradle file

compile fileTree(dir: 'libraries', include: ['wheel'])

Use this in app's gradle file in dependencies instead of

compile project('libraries:wheel')

Saeid

Add your library folder in your root location of your project and copy all the library files there. For ex YourProject/library then sync it and rest things seems OK to me.

Too check Configuration with name 'default' not found. Android Studio and Android Studio Gradle Configuration with name 'default' not found.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!