Вот мой код build.gradle
Код: Выделить всё
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
}
}
plugins {
alias(libs.plugins.jetbrains.kotlin.android)
}
apply plugin : 'com.android.library'
android {
namespace 'com.example.app_wrapper'
compileSdkVersion 34
defaultConfig {
minSdkVersion 31
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation 'flutter_debug:1.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.6.0'
implementation 'com.google.code.gson:gson:2.8.8'
implementation fileTree(include: ['*.aar'], dir: 'libs')
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:4.9.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
compileOnly libs.androidx.core.core.ktx
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... odule-into