STEPS
- First switch your folder structure from Android to Project.
- Now search for the libs folder inside app - build folder.
- Once you have pasted the .jar file inside libs folder.
- Right click on the jar file and at end click on Add as library.
- This will take care of adding compile files('libs/ojdbc14.jar') in build.gradle [You don't have to manually enter this in your build file].
For manually, go to build.gradle and compile attached library. (For example)
.....
compile files('libs/ojdbc14.jar')
}
click on sync project
Now you can start using the library in your project.
2 comments:
java.sql.SQLException:The Network Adapter could not establish the connection
java.sql.SQLException:The Network Adapter could not establish the connection
Post a Comment