sql server - Gradle Could not resolve: com.microsoft.sqlserver:sqljdbc4:4.0 -
please me resolve error...
added dependency in build.gradle
**// https://mvnrepository.com/artifact/com.microsoft.sqlserver/sqljdbc4 testcompile group: 'com.microsoft.sqlserver', name: 'sqljdbc4', version: '4.0'**
after refresh gradle project, getting error below:
**could not resolve: com.microsoft.sqlserver:sqljdbc4:4.0**
"it worked me after adding in locally, here steps in eclipse neon."
step 1. create 'lib' folder under main project step 2. copy jar file 'sqljdbc4' lib folder step 3. add below dependency in 'build.gradle' file repositories { jcenter() mavencentral() flatdir { dirs 'lib' } } dependencies { compile name: "sqljdbc4-4.0" } step 4. right click on main project , refresh gradle
Comments
Post a Comment