i trying catch on android project built gradle, , having trouble android's support libraries:
$ ./gradlew [ ... succeeding part ... ] failure: build failed exception. * went wrong: problem occurred configuring project ':myproject'. > not resolve dependencies configuration ':myproject:_debugcompile'. > not find com.android.support:appcompat-v7:23.1.1. searched in following locations: https://jcenter.bintray.com/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.pom https://jcenter.bintray.com/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.jar required by: android_core: myproject:unspecified
the appcompat
libraries available in sdk folder, , environment set (android_home
, redundant android_skd
too). still using ant on other projects, , build well.
i have added mavencentral()
build.gradle
configuration file, reluctantly both top project , sub-project.
now guess need tell gradle search local installs, did not find how it. surprised need change build configuration. works others, although others use android studio.
here solution problem.
although have android support library working ant-based projects, turns out gradle (seems to) expect flavour of libraries. after installing android support repository, started work fine.
if facing same problem, may check sdk install repository.
on cli:
$ android list sdk -a | grep "android support" 146- android support repository, revision 25 147- android support library, revision 23.1.1
i should thank offline colleague kuwata-san leading solution!
Comments
Post a Comment