1. Are you ready for the Galaxy S20? Here is everything we know so far!

How do I create an AAR in Android Studio with Prefab exports?

Discussion in 'Android Development' started by Dan Coleman, Jan 18, 2021.

  1. Dan Coleman

    Dan Coleman Lurker
    Thread Starter

    I have an Android project for a library (using the com.android.library plugin), that includes C++ code. When I run the assemble task in gradle, the outputted AAR contains the native library in the /jni folder. However, there is no "prefab" folder. On the documentation page for libraries, the bottom section suggests that the /prefab folder should be there.

    I can find information on how to set up a project to import prefabs from an AAR, but I can't find any information on how to build an AAR with prefab exports. Is there a way to set up an Android project with gradle to do this? Are there settings I have to add to specify which native libraries should be exposed?

    I'm using Android Studio 4.1.1, gradle 6.8, and Android gradle plugin 4.1.1.
     


    #1 Dan Coleman, Jan 18, 2021
    Last edited: Jan 18, 2021

    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - create AAR Android
  1. cwg01
    Replies:
    3
    Views:
    1,043
  2. kumaranil13k
    Replies:
    4
    Views:
    458
  3. 5g Moto Android 11
    Replies:
    2
    Views:
    682
  4. Muhammad Faizan Ali Khan
    Replies:
    2
    Views:
    377
  5. App Update
    Replies:
    0
    Views:
    279
  6. Mehak Gul
    Replies:
    1
    Views:
    284
  7. ghostanime2001
    Replies:
    16
    Views:
    1,908
  8. Muhammad Faizan Ali Khan
    Replies:
    1
    Views:
    505
  9. Muhammad Faizan Ali Khan
    Replies:
    1
    Views:
    333
  10. chethan1703
    Replies:
    0
    Views:
    1,778

Share This Page

Loading...