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. Senthil Kumar P
    Replies:
    1
    Views:
    46
  2. nullshxt
    Replies:
    2
    Views:
    159
  3. Samsung
    Replies:
    0
    Views:
    158
  4. Chen Dol Dawd
    Replies:
    1
    Views:
    223
  5. chethan1703
    Replies:
    0
    Views:
    256
  6. dorlow
    Replies:
    3
    Views:
    308
  7. Kayleigh Blue
    Replies:
    3
    Views:
    341
  8. Rhemsuda
    Replies:
    2
    Views:
    666
  9. matthewpederson
    Replies:
    0
    Views:
    462
  10. Acsrel
    Replies:
    0
    Views:
    553

Share This Page

Loading...