Android: How to add a gradle repository


I’m only aware of android_add_gradle_dependency to a dependency as described here:

android_add_gradle_repository seems not to exist… :-/

🚨 Android app freezes on start

As a workaround, I tried to add the dependency as jar in module/android/libs, but it doesn’t show up after TriggerToolkit refresh.


I’m also missing a way to add JUnit as test dependency to a module.


With Gradle 4 at least there doesn’t seem to be any way to add repositories at runtime. Will be revisiting the quest for Forge 2.8 and Gradle 5 but I’m not holding my breath.


Sad, but not critical anymore for me.