Spiker
Spiker

Reputation: 575

How to Create a SDK in Android Studio form the app

Upvotes: 2

Views: 2653

Answers (1)

sschrass
sschrass

Reputation: 7166

If your SDK is an Android-Library, declare

apply plugin: 'com.android.library'

instead of

apply plugin: 'com.android.application'

in the corresponding build.gradle. You will get an .aar-File (Android ARchive) that would need to be refereced from others in order to use your SDK.

If your SDK is a plain-old-java-Library (no Android resources) you also can use Maven to package it as jar.

Upvotes: 1

Related Questions