A gradle plugin for add frameworkJar in to classpath for using android hiden api Using the plugins DSL:
pluginManagement { repositories { maven { url = uri("https://www.jitpack.io/") } } } plugins { id("io.github.liu-wanshun.frameworkJar") version "1.0.0" }Using apply plugin (the old way)
Learn how to apply plugins to subprojects
buildscript { repositories { maven { url = uri("https://www.jitpack.io/") } } dependencies { classpath("io.github.liu-wanshun.frameworkJar:plugins:1.0.0") } } apply(plugin = "io.github.liu-wanshun.frameworkJar")Kotlin DSL / Groovy DSL :
dependencies { // this should replace with your frameworkJar frameworkJar("androidx.core:core:1.0.0") }