Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › Adding libraries to Android Developer
New Posts  All Forums:Forum Nav:

Adding libraries to Android Developer

post #1 of 2
Thread Starter 
Android Studio***

So I have moved on to try to develop my first android app, but adding libraries doesn't seem as straight forward as using eclipse does. I wrote some code using PostgreSQL, and it even have the API for auto-complete, yet when I go to run my app, I get an error about finding the module that was already imported with no issues. So I ask, what is the proper way to install a .jar file? I have tried to add a new module from the jar files, moving it into the libs folder, but it does not seem to correct this issue. Thoughts? I'm completely new to this program.

Error Message:
Code:
java.lang.ClassNotFoundException: org.postgresql.Driver

Edited by TheOwlHootHoot - 6/8/16 at 7:33am
Big Black Thunder
(34 items)
 
  
CPUMotherboardGraphicsRAM
Ivy Bridge i7 - 3770k @ 3.50GHz Asrock Z77 Extreme 4 980ti G1 12GB Crucial Ballistix Tactical Tracer 
Hard DriveHard DriveHard DriveHard Drive
120gb SSD Samsung 1.5 TB - Samsung 500gb - MacBook Pro Hard Drive 500g - Hitachi 
Optical DriveCoolingCoolingCooling
HP Light-scribe DVD-RW Thermaltake Water 2.0 Extreme 140mm Cougar Vortex 120mm Cougar Vortex 
CoolingCoolingCoolingCooling
120mm Cougar Vortex 120mm Cougar Vortex 120mm Cougar Vortex 140mm Cougar Vortex 
CoolingCoolingCoolingCooling
140mm Cougar Vortex 140mm Cougar Vortex 140mm Cougar Vortex 140mm Cougar Vortex 
CoolingOSMonitorMonitor
140mm Cougar Vortex Windows 8.1 64bit ASUS VS238H-P Black 23" 2ms LCD Dell 1440p 27 inch 
MonitorKeyboardPowerCase
ASUS VS238H-P Black 23" 2ms LCD Razer Ansasi Thermaltake TR2 RX 850W Power Supply NZXT Switch 810 
MouseMouse PadAudioAudio
Razer Deathadder 2013 Steel Series Cyber Acoustics CA 3602 - Platinum - 2.1-channe...  Razer Electra 
OtherOther
Avermedia HD DVR Sunbeam PL-RS-6 Rheosmart 6 Fan Controller 5.25... 
  hide details  
Reply
Big Black Thunder
(34 items)
 
  
CPUMotherboardGraphicsRAM
Ivy Bridge i7 - 3770k @ 3.50GHz Asrock Z77 Extreme 4 980ti G1 12GB Crucial Ballistix Tactical Tracer 
Hard DriveHard DriveHard DriveHard Drive
120gb SSD Samsung 1.5 TB - Samsung 500gb - MacBook Pro Hard Drive 500g - Hitachi 
Optical DriveCoolingCoolingCooling
HP Light-scribe DVD-RW Thermaltake Water 2.0 Extreme 140mm Cougar Vortex 120mm Cougar Vortex 
CoolingCoolingCoolingCooling
120mm Cougar Vortex 120mm Cougar Vortex 120mm Cougar Vortex 140mm Cougar Vortex 
CoolingCoolingCoolingCooling
140mm Cougar Vortex 140mm Cougar Vortex 140mm Cougar Vortex 140mm Cougar Vortex 
CoolingOSMonitorMonitor
140mm Cougar Vortex Windows 8.1 64bit ASUS VS238H-P Black 23" 2ms LCD Dell 1440p 27 inch 
MonitorKeyboardPowerCase
ASUS VS238H-P Black 23" 2ms LCD Razer Ansasi Thermaltake TR2 RX 850W Power Supply NZXT Switch 810 
MouseMouse PadAudioAudio
Razer Deathadder 2013 Steel Series Cyber Acoustics CA 3602 - Platinum - 2.1-channe...  Razer Electra 
OtherOther
Avermedia HD DVR Sunbeam PL-RS-6 Rheosmart 6 Fan Controller 5.25... 
  hide details  
Reply
post #2 of 2
Thread Starter 
In case anyone had problem importing and making module dependencies here was my solution. DO IT MANUALLY.

Under my app build.gradle I added this:
Code:
dependencies{
        compile project(':postgresql')
    }

And under my settings.gradle I change it to this:
Code:
include ':app'
include ':postgresql'

It seems the problem was a combination of include with a comma and the adding of decencies to my app. Hope this helps someone else who has this problem.
Big Black Thunder
(34 items)
 
  
CPUMotherboardGraphicsRAM
Ivy Bridge i7 - 3770k @ 3.50GHz Asrock Z77 Extreme 4 980ti G1 12GB Crucial Ballistix Tactical Tracer 
Hard DriveHard DriveHard DriveHard Drive
120gb SSD Samsung 1.5 TB - Samsung 500gb - MacBook Pro Hard Drive 500g - Hitachi 
Optical DriveCoolingCoolingCooling
HP Light-scribe DVD-RW Thermaltake Water 2.0 Extreme 140mm Cougar Vortex 120mm Cougar Vortex 
CoolingCoolingCoolingCooling
120mm Cougar Vortex 120mm Cougar Vortex 120mm Cougar Vortex 140mm Cougar Vortex 
CoolingCoolingCoolingCooling
140mm Cougar Vortex 140mm Cougar Vortex 140mm Cougar Vortex 140mm Cougar Vortex 
CoolingOSMonitorMonitor
140mm Cougar Vortex Windows 8.1 64bit ASUS VS238H-P Black 23" 2ms LCD Dell 1440p 27 inch 
MonitorKeyboardPowerCase
ASUS VS238H-P Black 23" 2ms LCD Razer Ansasi Thermaltake TR2 RX 850W Power Supply NZXT Switch 810 
MouseMouse PadAudioAudio
Razer Deathadder 2013 Steel Series Cyber Acoustics CA 3602 - Platinum - 2.1-channe...  Razer Electra 
OtherOther
Avermedia HD DVR Sunbeam PL-RS-6 Rheosmart 6 Fan Controller 5.25... 
  hide details  
Reply
Big Black Thunder
(34 items)
 
  
CPUMotherboardGraphicsRAM
Ivy Bridge i7 - 3770k @ 3.50GHz Asrock Z77 Extreme 4 980ti G1 12GB Crucial Ballistix Tactical Tracer 
Hard DriveHard DriveHard DriveHard Drive
120gb SSD Samsung 1.5 TB - Samsung 500gb - MacBook Pro Hard Drive 500g - Hitachi 
Optical DriveCoolingCoolingCooling
HP Light-scribe DVD-RW Thermaltake Water 2.0 Extreme 140mm Cougar Vortex 120mm Cougar Vortex 
CoolingCoolingCoolingCooling
120mm Cougar Vortex 120mm Cougar Vortex 120mm Cougar Vortex 140mm Cougar Vortex 
CoolingCoolingCoolingCooling
140mm Cougar Vortex 140mm Cougar Vortex 140mm Cougar Vortex 140mm Cougar Vortex 
CoolingOSMonitorMonitor
140mm Cougar Vortex Windows 8.1 64bit ASUS VS238H-P Black 23" 2ms LCD Dell 1440p 27 inch 
MonitorKeyboardPowerCase
ASUS VS238H-P Black 23" 2ms LCD Razer Ansasi Thermaltake TR2 RX 850W Power Supply NZXT Switch 810 
MouseMouse PadAudioAudio
Razer Deathadder 2013 Steel Series Cyber Acoustics CA 3602 - Platinum - 2.1-channe...  Razer Electra 
OtherOther
Avermedia HD DVR Sunbeam PL-RS-6 Rheosmart 6 Fan Controller 5.25... 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › Adding libraries to Android Developer