I looked at the general information in Android Developers here and previous questions in Stack Overflow here1, here2, here3, and here4.
I would like to create a new "utility library" that I can use from other projects, but there is something I don't understand. Here's what I do:
First, I start new project in Android Studio 2.2 (OS X 10.11):
Application name: Test
Package name: com.example.tomihasa.test
Minimum SDK: API 15: Android 4.0.3
Activity: Empty Activity
( ) Backwards Compatibility (AppCompat)
Second, I start a new library: File, New, New Module, Android Library
Application/Library name: MyLibrary
Package name: com.example.tomihasa.mylibrary
Minimum SDK: API 15: Android 4.0.3
I now have directories:
/Users/tomihasa/AndroidStudioProjects/Test
/Users/tomihasa/AndroidStudioProjects/Test/mylibrary
Why is mylibrary inside Test? Should it be somewhere else if I want to use it elsewhere? How can I move it?
Third, in settings.gradle I have:
include ':app', ':mylibrary'
Fourth, I build the MyLibrary:
Build, Make Module 'mylibrary'.
I can not find any .JAR or .AAR package as mentioned in here.
What am I missing?