bytedance / AabResGuard

The tool of obfuscated aab resources.(Android app bundle资源混淆工具)
Apache License 2.0
1.3k stars 179 forks source link

[Gradle issue] Gradle 7.0 编译问题 #75

Open bbjsmart opened 2 years ago

bbjsmart commented 2 years ago

Some problems were found with the configuration of task ':app:aabresguardRelease' (type 'AabResGuardTask').

sebthom commented 2 years ago

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 2 years ago

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 1 year ago

我也遇到了这个问题, 找不到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 1 year ago

我也遇到了这个问题, 找不到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 9 months ago

作为解决方法,您可以使用

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