我的模块无法生成因为以下错误:
出了什么问题:转换的输入文件不存在:C:\用户\用户\Android Studio 项目\Gattexx\应用程序\库\YouTube安卓播放器Api.jar.
我已经尝试,清理项目无效缓存
构建grandle(应用程序)
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.vale.gattexx"
minSdkVersion 19
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
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 "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation fileTree(include: ['*.jar'], dir: 'libs')
//implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.google.android.exoplayer:exoplayer:2.6.1'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
}
1条答案
按热度按时间hyrbngr71#
阅读你的依赖-也许你有链接到删除的jar库。这对我的工作