MegatronKing / StringFog

一款自动对字节码中的字符串进行加密Android插件工具
Apache License 2.0
1.71k stars 343 forks source link

java8应该使用哪个版本的StringFog #112

Closed Moriarty-0 closed 1 year ago

Moriarty-0 commented 1 year ago

gradle小白,项目目前用的gradle版本6.5.1,AGP使用的是4.1.1,使用的jdk1.8,使用5.0/4.0sync报错如下:

Could not resolve all artifacts for configuration ':classpath'. Could not resolve com.github.megatronking.stringfog:gradle-plugin:5.0.0. Required by: project : No matching variant of com.github.megatronking.stringfog:gradle-plugin:5.0.0 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.1' but:

  • Variant 'apiElements' capability com.github.megatronking.stringfog:gradle-plugin:5.0.0 declares a library, packaged as a jar, and its dependencies declared externally:
  • Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
  • Other compatible attribute:
  • Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
  • Variant 'javadocElements' capability com.github.megatronking.stringfog:gradle-plugin:5.0.0 declares a runtime of a component, and its dependencies declared externally:
  • Incompatible because this component declares documentation and the consumer needed a library
  • Other compatible attributes:
  • Doesn't say anything about its target Java version (required compatibility with Java 8)
  • Doesn't say anything about its elements (required them packaged as a jar)
  • Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
  • Variant 'runtimeElements' capability com.github.megatronking.stringfog:gradle-plugin:5.0.0 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
  • Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
  • Other compatible attribute:
  • Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
  • Variant 'sourcesElements' capability com.github.megatronking.stringfog:gradle-plugin:5.0.0 declares a runtime of a component, and its dependencies declared externally:
  • Incompatible because this component declares documentation and the consumer needed a library
  • Other compatible attributes:
  • Doesn't say anything about its target Java version (required compatibility with Java 8)
  • Doesn't say anything about its elements (required them packaged as a jar)
  • Doesn't say anything about org.gradle.plugin.api-version (required '7.1') Could not resolve com.github.megatronking.stringfog:xor:5.0.0. Required by: project : No matching variant of com.github.megatronking.stringfog:xor:5.0.0 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.1' but:
  • Variant 'apiElements' capability com.github.megatronking.stringfog:xor:5.0.0 declares a library, packaged as a jar, and its dependencies declared externally:
  • Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
  • Other compatible attribute:
  • Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
  • Variant 'javadocElements' capability com.github.megatronking.stringfog:xor:5.0.0 declares a runtime of a component, and its dependencies declared externally:
  • Incompatible because this component declares documentation and the consumer needed a library
  • Other compatible attributes:
  • Doesn't say anything about its target Java version (required compatibility with Java 8)
  • Doesn't say anything about its elements (required them packaged as a jar)
  • Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
  • Variant 'runtimeElements' capability com.github.megatronking.stringfog:xor:5.0.0 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
  • Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
  • Other compatible attribute:
  • Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
  • Variant 'sourcesElements' capability com.github.megatronking.stringfog:xor:5.0.0 declares a runtime of a component, and its dependencies declared externally:
  • Incompatible because this component declares documentation and the consumer needed a library
  • Other compatible attributes:
  • Doesn't say anything about its target Java version (required compatibility with Java 8)
  • Doesn't say anything about its elements (required them packaged as a jar)
  • Doesn't say anything about org.gradle.plugin.api-version (required '7.1')
MegatronKing commented 1 year ago

用4.0.1版本,你AGP版本太低了