0

I am trying to integrate UnityAds in my Android Studio project.

And for that unity-ads.aar package needs to be added as a module and in the later part, that module must be added as a dependency.

I have successfully added the unity-ads.aar package as a module but when I go to the Project Structure-> Dependencies. There's no unity-ads below the <All Modules>. Only the app module is present.

According to the documentation the unity-ads should be present on that window from where I will be able to add that unity-ads as a dependency in my project.

This picture will help to understand the problem

What could be the problem????

How can I add that module as a dependency in my project???

Martin Zeitler
  • 1
  • 19
  • 155
  • 216
Junior
  • 170
  • 2
  • 10

2 Answers2

0

To add the unity-ads.aar module in your app.

Download latest version here

After the download extract it anywhere you want.

open your project. Go to File -> Project Structure -> Dependencies (add new dependency)enter image description here

Select import jar/aar package. enter image description here

Give the path of the unity-ads.aar file. Click ok and you're done.

Ayush Pal
  • 154
  • 3
  • 8
0

Open settings.gradle and add the missing line:

include :unity-ads3.7.1
Martin Zeitler
  • 1
  • 19
  • 155
  • 216