Giter Site home page Giter Site logo

Comments (6)

leobert-lan avatar leobert-lan commented on June 8, 2024 10

项目中的ASM太老了,而且有些依赖没啥必要,可以自行升级重新发布下。

我直接升级到了9.0,适当改了点代码重新发布到了MavenCentral,我的环境附于最后仅供参考。

除了声明插件时的classpath修改为

classpath("io.github.leobert-lan:traceman-plugin:1.0.6")

使用上没有任何变化

可能同步到Maven索引还需要一些时间,可以通过:
Maven 检索 追踪一下。

升级的依赖如下:

<dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm</artifactId>
      <version>9.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm-commons</artifactId>
      <version>9.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.android.tools.build</groupId>
      <artifactId>gradle</artifactId>
      <version>3.2.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.jetbrains.kotlin</groupId>
      <artifactId>kotlin-stdlib-jdk8</artifactId>
      <version>1.5.31</version>
      <scope>compile</scope>
    </dependency>

注意项目需要配置:

android {
//...
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = "1.8"
    }
}

环境参考:

  • AS:ArcTic Fox 2020.3.1 patch 3
  • kgp: classpath(kotlin("gradle-plugin", version = 1.5.10)) 未使用AGP
  • build-tool: classpath("com.android.tools.build:gradle:4.1.1")
  • gradle:6.5

gradle 7.0 及其以上版本可能会遇到问题,如果有遇到问题可能需要大改plugin。

from methodtraceman.

liyujiang-gzu avatar liyujiang-gzu commented on June 8, 2024

+1

from methodtraceman.

zippozeng avatar zippozeng commented on June 8, 2024

怎么解决的?

from methodtraceman.

yunmenggyy avatar yunmenggyy commented on June 8, 2024

棒!

from methodtraceman.

lythonliu avatar lythonliu commented on June 8, 2024

Thank you very much! @leobert-lan

from methodtraceman.

zhiyukai avatar zhiyukai commented on June 8, 2024

@leobert-lan 我的就是7.0,水平有限,改不动啦~~

from methodtraceman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.