ms-ninja
دوشنبه 10 خرداد 1400, 00:11 صبح
با سلام خدمت تمامی دوستان گرامی
3 روزی است درگیر خطاب عجیبی هستم
Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
> java.lang.reflect.InvocationTargetException (no error message)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Gradle app
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'
ext.versionMajor = 1
ext.versionMinor = 0
ext.versionPatch = 6
ext.isSnapshot = false // set to false when publishing new releases
ext.minimumSdkVersion = 19
ext.targetSdkVersion = 30
private Integer GenerateVersionCode() {
return ext.minimumSdkVersion * 10000000 + ext.versionMajor * 10000 + ext.versionMinor * 100 + ext.versionPatch
}
private String GenerateVersionName() {
String versionName = "${ext.versionMajor}.${ext.versionMinor}.${ext.vers ionPatch}"
if (ext.isSnapshot) {
versionName += "-" + "SNAPSHOT"
}
return versionName;
}
android {
ndkVersion "21.3.6528147"
compileSdkVersion project.ext.targetSdkVersion
applicationVariants.all { variant ->
variant.resValue "string", "versionName", variant.versionName
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
defaultConfig {
applicationId "com.nodroon.nod"
minSdkVersion 24
targetSdkVersion project.ext.targetSdkVersion
versionCode GenerateVersionCode()
versionName GenerateVersionName()
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk {
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
}
externalNativeBuild {
cmake {
arguments "-DANDROID_CPP_FEATURES=rtti exceptions"
}
}
archivesBaseName = "$applicationId-v$versionName-$versionCode"
}
buildTypes {
debug {
// applicationIdSuffix versionClassifier
debuggable true
}
release {
minifyEnabled false
shrinkResources false
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
// 'proguard-rules.pro'
}
}
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
doNotStrip "*/armeabi-v7a/libgojni.so"
doNotStrip "*/arm64-v8a/libgojni.so"
doNotStrip "*/x86/libgojni.so"
doNotStrip "*/x86_64/libgojni.so"
}
splits {
abi {
enable true
reset()
include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
universalApk true
}
}
}
repositories {
flatDir {
dirs 'src/libs'
}
}
dependencies {
implementation 'com.bugfender.sdk:android:3.0.8'
implementation platform('com.google.firebase:firebase-bom:28.0.1')
implementation 'com.google.firebase:firebase-analytics:19.0.0'
implementation 'com.github.stealthcopter:AndroidNetworkTools:0.4. 5.3'
implementation 'com.google.android.material:material:1.4.0-beta01'
implementation 'androidx.activity:activity:1.3.0-alpha08'
implementation 'androidx.fragment:fragment:1.4.0-alpha01'
implementation 'androidx.appcompat:appcompat:1.4.0-alpha01'
implementation 'androidx.recyclerview:recyclerview:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.core:core:1.6.0-beta01'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.code.gson:gson:2.8.6'
implementation files('src\\libs\\XposedBridgeApi-54.jar')
implementation files('src\\libs\\acra-4.5.0.jar')
implementation 'com.github.bumptech.glide:glide:4.12.0'
implementation 'com.wireguard.android:tunnel:1.0.20210211'
implementation 'com.github.andyxialm:ColorDialog:1.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
def camerax_version = '1.1.0-alpha04'
// CameraX core library using camera2 implementation
implementation "androidx.camera:camera-camera2:${camerax_version}"
// CameraX Lifecycle Library
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
// CameraX View class
implementation 'androidx.camera:camera-view:1.0.0-alpha24'
implementation 'com.google.mlkit:barcode-scanning:16.1.2'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation "io.reactivex.rxjava3:rxjava:3.0.6"
implementation("io.reactivex.rxjava3:rxkotlin:3.0.1")
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
def room_version = '2.3.0'
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
implementation 'androidx.multidex:multidex:2.0.1'
def coroutinesVersion = "1.3.9"
def roomVersion = '2.3.0'
def workVersion = '2.5.0'
api('androidx.core:core-ktx:1.6.0-beta01')
// Declare the dependencies for the Crashlytics and Analytics libraries
// When using the BoM, you don't specify versions in Firebase library dependencies
api('androidx.fragment:fragment-ktx:1.4.0-alpha01')
api('androidx.lifecycle:lifecycle-common-java8:2.3.1')
api('androidx.lifecycle:lifecycle-livedata-core-ktx:2.3.1')
api("androidx.preference:preference:1.1.1")
api("androidx.room:room-runtime:$roomVersion")
api("androidx.work:work-runtime-ktx:$workVersion")
api("androidx.work:work-gcm:$workVersion")
api("com.google.code.gson:gson:2.8.6")
api("com.jakewharton.timber:timber:4.7.1")
api('dnsjava:dnsjava:3.3.1')
api("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion")
api("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$coroutinesVersion")
kapt("androidx.room:room-compiler:$roomVersion")
}
Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlinVersion = '1.3.72'
springBootVersion = '2.0.4.RELEASE'
}
repositories {
google()
jcenter()
maven {
url "https://jitpack.io"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
classpath 'com.google.gms:google-services:4.3.8'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url "https://jitpack.io"
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
حتی چیز******کن هم روشنه
با تشکر از دوستان
3 روزی است درگیر خطاب عجیبی هستم
Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
> java.lang.reflect.InvocationTargetException (no error message)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Gradle app
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'
ext.versionMajor = 1
ext.versionMinor = 0
ext.versionPatch = 6
ext.isSnapshot = false // set to false when publishing new releases
ext.minimumSdkVersion = 19
ext.targetSdkVersion = 30
private Integer GenerateVersionCode() {
return ext.minimumSdkVersion * 10000000 + ext.versionMajor * 10000 + ext.versionMinor * 100 + ext.versionPatch
}
private String GenerateVersionName() {
String versionName = "${ext.versionMajor}.${ext.versionMinor}.${ext.vers ionPatch}"
if (ext.isSnapshot) {
versionName += "-" + "SNAPSHOT"
}
return versionName;
}
android {
ndkVersion "21.3.6528147"
compileSdkVersion project.ext.targetSdkVersion
applicationVariants.all { variant ->
variant.resValue "string", "versionName", variant.versionName
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
defaultConfig {
applicationId "com.nodroon.nod"
minSdkVersion 24
targetSdkVersion project.ext.targetSdkVersion
versionCode GenerateVersionCode()
versionName GenerateVersionName()
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk {
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
}
externalNativeBuild {
cmake {
arguments "-DANDROID_CPP_FEATURES=rtti exceptions"
}
}
archivesBaseName = "$applicationId-v$versionName-$versionCode"
}
buildTypes {
debug {
// applicationIdSuffix versionClassifier
debuggable true
}
release {
minifyEnabled false
shrinkResources false
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
// 'proguard-rules.pro'
}
}
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
doNotStrip "*/armeabi-v7a/libgojni.so"
doNotStrip "*/arm64-v8a/libgojni.so"
doNotStrip "*/x86/libgojni.so"
doNotStrip "*/x86_64/libgojni.so"
}
splits {
abi {
enable true
reset()
include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
universalApk true
}
}
}
repositories {
flatDir {
dirs 'src/libs'
}
}
dependencies {
implementation 'com.bugfender.sdk:android:3.0.8'
implementation platform('com.google.firebase:firebase-bom:28.0.1')
implementation 'com.google.firebase:firebase-analytics:19.0.0'
implementation 'com.github.stealthcopter:AndroidNetworkTools:0.4. 5.3'
implementation 'com.google.android.material:material:1.4.0-beta01'
implementation 'androidx.activity:activity:1.3.0-alpha08'
implementation 'androidx.fragment:fragment:1.4.0-alpha01'
implementation 'androidx.appcompat:appcompat:1.4.0-alpha01'
implementation 'androidx.recyclerview:recyclerview:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.core:core:1.6.0-beta01'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.code.gson:gson:2.8.6'
implementation files('src\\libs\\XposedBridgeApi-54.jar')
implementation files('src\\libs\\acra-4.5.0.jar')
implementation 'com.github.bumptech.glide:glide:4.12.0'
implementation 'com.wireguard.android:tunnel:1.0.20210211'
implementation 'com.github.andyxialm:ColorDialog:1.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
def camerax_version = '1.1.0-alpha04'
// CameraX core library using camera2 implementation
implementation "androidx.camera:camera-camera2:${camerax_version}"
// CameraX Lifecycle Library
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
// CameraX View class
implementation 'androidx.camera:camera-view:1.0.0-alpha24'
implementation 'com.google.mlkit:barcode-scanning:16.1.2'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation "io.reactivex.rxjava3:rxjava:3.0.6"
implementation("io.reactivex.rxjava3:rxkotlin:3.0.1")
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
def room_version = '2.3.0'
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
implementation 'androidx.multidex:multidex:2.0.1'
def coroutinesVersion = "1.3.9"
def roomVersion = '2.3.0'
def workVersion = '2.5.0'
api('androidx.core:core-ktx:1.6.0-beta01')
// Declare the dependencies for the Crashlytics and Analytics libraries
// When using the BoM, you don't specify versions in Firebase library dependencies
api('androidx.fragment:fragment-ktx:1.4.0-alpha01')
api('androidx.lifecycle:lifecycle-common-java8:2.3.1')
api('androidx.lifecycle:lifecycle-livedata-core-ktx:2.3.1')
api("androidx.preference:preference:1.1.1")
api("androidx.room:room-runtime:$roomVersion")
api("androidx.work:work-runtime-ktx:$workVersion")
api("androidx.work:work-gcm:$workVersion")
api("com.google.code.gson:gson:2.8.6")
api("com.jakewharton.timber:timber:4.7.1")
api('dnsjava:dnsjava:3.3.1')
api("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion")
api("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$coroutinesVersion")
kapt("androidx.room:room-compiler:$roomVersion")
}
Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlinVersion = '1.3.72'
springBootVersion = '2.0.4.RELEASE'
}
repositories {
google()
jcenter()
maven {
url "https://jitpack.io"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
classpath 'com.google.gms:google-services:4.3.8'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url "https://jitpack.io"
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
حتی چیز******کن هم روشنه
با تشکر از دوستان