Я уже добавил зависимость для модуля приложения в модуль управления. А когда я делаю наоборот (помещаю ссылку на модуль управления в приложение), все работает правильно.
[img]https://i. sstatic.net/bZ1p8C2U.png[/img]
build.gradle модуля приложения:
Код: Выделить всё
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
apply plugin: 'dagger.hilt.android.plugin'
android {
namespace 'horizon.maeandroid'
compileSdk 34
defaultConfig {
applicationId "horizon.maeandroid"
minSdkVersion 23
targetSdkVersion 30
versionCode 281
versionName "7.2.19"
multiDexEnabled true
setProperty("archivesBaseName", "ace_" + versionName)
javaCompileOptions {
annotationProcessorOptions {
arguments = ["dagger.hilt.android.module.withPackageName": "horizon.maeandroid.app"]
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
resValue("string", "DNS_SENTRY", '""')
}
debug {
resValue("string", "DNS_SENTRY", '""')
}
}
viewBinding {
enabled = true
}
flavorDimensions "version"
productFlavors {
beta {
dimension "version"
applicationIdSuffix ".beta"
versionNameSuffix "-beta"
buildConfigField("String", "CLIENTES_URI", '"clientes?ativo"')
}
production {
dimension "version"
buildConfigField("String", "CLIENTES_URI", '"clientes?ativo&producao"')
}
goiania {
dimension "version"
buildConfigField("String", "CLIENTES_URI", '"clientes?ativo&producao"')
}
}
}
dependencies {
implementation('com.mikepenz:materialdrawer:6.1.3@aar') {
transitive = true
}
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'com.android.volley:volley:1.2.1'
implementation 'com.github.bumptech.glide:glide:4.14.1'
implementation 'com.github.lecho:hellocharts-android:1.5.8'
implementation 'com.google.code.gson:gson:2.10'
implementation 'com.google.android.material:material:1.6.1'
implementation 'com.google.android.gms:play-services-location:17.1.0'
implementation 'com.mikepenz:google-material-typeface:2.2.0.3.original@aar'
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
implementation 'io.sentry:sentry-android:5.5.1'
implementation 'com.yarolegovich:lovely-dialog:1.1.1'
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation "com.google.dagger:hilt-android:2.44"
annotationProcessor 'com.google.dagger:hilt-android-compiler:2.44'
}
Код: Выделить всё
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
apply plugin: 'dagger.hilt.android.plugin'
android {
namespace 'horizon.maeandroid.gestao'
compileSdk 34
defaultConfig {
applicationId "horizon.maeandroid"
minSdk 23
targetSdk 30
versionCode 281
versionName "7.2.19"
multiDexEnabled true
setProperty("archivesBaseName", "ace_" + versionName)
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["dagger.hilt.android.module.withPackageName": "horizon.maeandroid.gestao"]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
viewBinding {
enabled = true
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.12.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation "com.google.dagger:hilt-android:2.44"
annotationProcessor 'com.google.dagger:hilt-android-compiler:2.44'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.google.code.gson:gson:2.10'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'com.android.volley:volley:1.2.1'
implementation 'com.github.bumptech.glide:glide:4.14.1'
implementation 'com.github.lecho:hellocharts-android:1.5.8'
implementation 'com.google.code.gson:gson:2.10'
implementation 'com.google.android.material:material:1.6.1'
implementation 'com.google.android.gms:play-services-location:17.1.0'
implementation 'com.mikepenz:google-material-typeface:2.2.0.3.original@aar'
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
implementation 'io.sentry:sentry-android:5.5.1'
implementation 'com.yarolegovich:lovely-dialog:1.1.1'
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation project(':app')
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... in-another
Мобильная версия