How to create a release android library package (aar) in Android Studio (not debug)

后端 未结 9 836
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-02 07:50

I have built my android library package (aar) and the result of build is created in \"..\\app\\build\\outputs\\aar\" folder. The file within this folder is called \"app-deb

9条回答
  •  难免孤独
    2020-12-02 08:28

    You can use command line

    ./gradlew :assemble
    
    ./gradlew :assemble
    //for example
    ./gradlew :assembleRelease
    
    //or
    ./gradlew :bundleAar
    //for example
    ./gradlew :bundleReleaseAar
    
    //output is located
    /build/outputs/aar/-.aar
    

    Alternatively you can use AndroidStudio UI

    View -> Tool Windows -> Gradle
     -> Tasks -> build or others -> assembleRelease
    
    

提交回复
热议问题