• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Android studio library import packages

Hello. I am trying to create a java library. I got that far. Then I want to import packages from the the Android studio sdk. The I go to file project structure and try to add a dependency to my library. I add
com.android.support:appcompat-v7:23.0.1 to my dependencies because this is what my other android studio apps did to import most of the sdk packages I think. Then I build it. I get this error

Error:(4, 13) Failed to resolve: com.android.support:appcompat-v7:23.0.1
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

How do I add the android sdk into a new java library file that I create in android studio, Thanks alot guys.
 
Back
Top Bottom