-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gradle 8.x kts tomls 依赖失败 #172
Comments
1.第一步 在 [versions]
# *======== 插件版本 ========
agp = "8.6.1"
kotlin = "2.0.0"
googleDevtoolsKsp = "2.0.0-1.0.24"
#腾讯渠道包 https://github.com/Tencent/VasDolly
tencentVasDolly = "3.0.6"
[libraries]
#腾讯渠道包 https://github.com/Tencent/VasDolly
tencent-vasdolly-helper = { module = "com.tencent.vasdolly:helper", version.ref = "tencentVasDolly" }
tencent-vasdolly-plugin = { module = "com.tencent.vasdolly:plugin", version.ref = "tencentVasDolly" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
tencent-vasdolly = { id = "com.tencent.vasdolly", version.ref = "tencentVasDolly" } 第二步在工程的 Tip 注意: 需要把 buildscript {
dependencies {
//腾讯渠道打包https://github.com/Tencent/VasDolly
classpath(libs.tencent.vasdolly.plugin)
}
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
}
第三部在app目录下的 plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
···
id(libs.plugins.tencent.vasdolly.get().pluginId)
}
android {
namespace = ···
compileSdk = ···
defaultConfig {
applicationId = ···
minSdk = ···
targetSdk = ···
versionCode = ···
versionName = ···
ndk {
// 设置支持的SO库架构
//abiFilters 'armeabi', 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
abiFilters.addAll(setOf("armeabi-v7a", "arm64-v8a"))
}
}
buildFeatures {
buildConfig = true
viewBinding = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
}
dependencies {
···
implementation(libs.tencent.vasdolly.helper)
} 或者参考 #171 的写法也可以同样达到效果 |
谢谢大佬,我现在就是试一下。 |
只有你txt 文档里面写的几个渠道。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
无法依赖
The text was updated successfully, but these errors were encountered: