Android以aar包形式引入hunter-timing,Java(4)

Android以aar包形式引入hunter-timing,Java(4)

(1)参照这篇文章:

https://zhangphil.blog.csdn.net/article/details/130603231https://zhangphil.blog.csdn.net/article/details/130603231

生成.aar文件。

(2)把第(1)阶段生成的hunter-timing-library-debug.aar包文件(如果不好找到,在项目中搜索.aar)放到当前项目的 libs 目录下。

(3)配置工程级别的build.gradle:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'cn.quinnchen.hunter:hunter-timing-plugin:1.2.3'
        classpath 'cn.quinnchen.hunter:hunter-transform:1.2.3'
    }
}

plugins {
    id 'com.android.application' version '7.4.2' apply false
    id 'com.android.library' version '7.4.2' apply false
}

(4)配置app模块的build.gradle:

plugins {
    id 'com.android.application'
    id 'hunter-timing'
}

android {
    
}

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar","*.aar"])
}

(5)完成配置后,参照这篇文章:

https://zhangphil.blog.csdn.net/article/details/130590914https://zhangphil.blog.csdn.net/article/details/130590914

即可写上层Java代码。

Android以aar包形式引入hunter-debug,Java(3)_zhangphil的博客-CSDN博客Android 引入hunter-debug监测代码运行时函数耗时和参数及返回值,Java(1)_zhangphil的博客-CSDN博客。Android 引入hunter-debug监测代码运行时函数耗时和参数及返回值,Java(1)Android 引入hunter-timing监测UI主线程函数运行时耗时,Java(2)同时重载Application,Android 引入hunter-debug监测代码运行时函数耗时和参数及返回值,Java(1)_zhangphil的博客-CSDN博客。https://blog.csdn.net/zhangphil/article/details/130603231

Android 引入hunter-timing监测UI主线程函数运行时耗时,Java(2)_zhangphil的博客-CSDN博客Android 引入hunter-debug监测代码运行时函数耗时和参数及返回值,Java(1)_zhangphil的博客-CSDN博客。Android 引入hunter-debug监测代码运行时函数耗时和参数及返回值,Java(1)Android 引入hunter-timing监测UI主线程函数运行时耗时,Java(2)同时重载Application,https://blog.csdn.net/zhangphil/article/details/130590914

Android 引入hunter-debug监测代码运行时函数耗时和参数及返回值,Java(1)_zhangphil的博客-CSDN博客Android 引入hunter-debug监测代码运行时函数耗时和参数及返回值,Java(1)https://blog.csdn.net/zhangphil/article/details/130590724

猜你喜欢

转载自blog.csdn.net/zhangphil/article/details/130603986
今日推荐