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

Gradle problem:Using an .AAR in both Release and Debug

Discussion in 'Android Development' started by RebelCommander, Aug 10, 2020.

  1. RebelCommander

    Thread Starter

    I have a app comprising some unit tests, which test functions packaged in an AAR file, which itself contains unmanaged (C++) binaries. This file is created through another build process that dumps it in it's Release or Debug forms in a directory of the form build/Android.${Configuration} .

    I have figured out how to bring this file into my project as a module by adding the AAR through the 'Project Structure' dialog, which is pretty standard. However, I must point it at either the Release or Debug AAR.

    For my needs up to now, that has been fine: Debug all the way. Now I need to support Release bits also. [FWIW the need is driven by a request to put it into a build/test harness that runs in an Azure pipeline and wants Release]. The user would have access to either build type when running/debugging locally, but the server builds would default to Release.

    What is the gradle "school solution" to this?

    There must be one.
     


Loading...
Similar Threads - Gradle problem Using
  1. Pravinkumar Putta
    Replies:
    2
    Views:
    672
  2. Pei Liu
    Replies:
    1
    Views:
    1,018
  3. Sathish Mohan
    Replies:
    0
    Views:
    312
  4. kannanthayumanavan
    Replies:
    5
    Views:
    1,711
  5. Mekhi Greene
    Replies:
    3
    Views:
    592
  6. ClintonBrits
    Replies:
    1
    Views:
    446
  7. mcpixel
    Replies:
    0
    Views:
    441
  8. mcpixel
    Replies:
    2
    Views:
    895
  9. jamesmark147
    Replies:
    3
    Views:
    1,072
  10. AKMAL_TNA
    Replies:
    3
    Views:
    580

Share This Page

Loading...