android studio 项目集成butterknife

    xiaoxiao2022-06-22  20

    Configure your project-level build.gradle to include the 'android-apt' plugin:

    buildscript { repositories { mavenCentral() } dependencies { classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' }

    }

    Then, apply the 'android-apt' plugin in your module-level build.gradle and add the Butter Knife dependencies:

    apply plugin: 'android-apt' android { ... } dependencies { compile 'com.jakewharton:butterknife:8.4.0' apt 'com.jakewharton:butterknife-compiler:8.4.0' }
    转载请注明原文地址: https://ju.6miu.com/read-1122769.html

    最新回复(0)