[Gradle issue] Gradle 7.0 编译问题
bbjsmart opened this issue · 5 comments
bbjsmart commented
Some problems were found with the configuration of task ':app:aabresguardRelease' (type 'AabResGuardTask').
- Type 'com.bytedance.android.plugin.tasks.AabResGuardTask' property 'aabResGuard' is missing an input or output annotation.
- 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.
sebthom commented
As a workaround you can use
buildscript {
repositories {
mavenCentral()
mavenLocal()
google()
maven { url 'https://raw.githubusercontent.com/martinloren/AabResGuard/mvn-repo' }
}
dependencies {
classpath "com.bytedance.android:aabresguard-plugin:0.1.10"
}
}
eakteam commented
As a workaround you can use
buildscript { repositories { mavenCentral() mavenLocal() google() maven { url 'https://raw.githubusercontent.com/martinloren/AabResGuard/mvn-repo' } } dependencies { classpath "com.bytedance.android:aabresguard-plugin:0.1.10" } }
Thank you !
koala0x commented
我也遇到了这个问题, 找不到0.1.10版本, 错误提示如下:
- Type 'com.bytedance.android.plugin.tasks.AabResGuardTask' property 'obfuscatedBundlePath' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
pol2edo commented
我也遇到了这个问题, 找不到0.1.10版本, 错误提示如下:
- Type 'com.bytedance.android.plugin.tasks.AabResGuardTask' property 'obfuscatedBundlePath' is missing an input or output annotation. Reason: A property without annotation isn't considered during up-to-date checking. Possible solutions: 1. Add an input or output annotation. 2. Mark it as @Internal.
maven { url 'https://raw.githubusercontent.com/martinloren/AabResGuard/mvn-repo' }
zzh-xhz commented
作为解决方法,您可以使用
buildscript { repositories { mavenCentral() mavenLocal() google() maven { url 'https://raw.githubusercontent.com/martinloren/AabResGuard/mvn-repo' } } dependencies { classpath "com.bytedance.android:aabresguard-plugin:0.1.10" } }
Execution failed for task ':app:aabresguardRelease'.
the mapping file packageName is malformed, it should be like com.bytedance.android.ugc.R.attr.test, yours 25
- 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.
我的继续报错这个 错误 你的咋解决的