我想将一个大的 AAR 库(“crypteriumsdk”)放入一个可以按需安装的动态功能模块中。但是当我这样做时,它找不到它的资源(主题):
找不到资源样式/CrypteriumTheme(又名 com.crypter.cryptocyrrency:style/CrypteriumTheme)。
我还添加tools:replace="android:theme"
到application
主清单(应用程序模块)中。
这里有什么问题?
settings.gradle
:
include ':crypteriumsdk'
include ':wallet'
include ':app'
wallet.gradle
:
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation project(":app")
implementation project(':crypteriumsdk') // added the library here
}