【android studio】引用开源框架步骤

    xiaoxiao2022-07-14  156

    【android studio】 引用开源框架步骤

    File->new->Import Module,选择你要引用的文件 打开File->Project Structure… 选择app的Dependencies,点击右上角的+,选择第三项,导入 4. 出现Plugin with id ‘com.github.dcendents.android-maven’ not found.解决方法: 在project目录下的build.gradle对应位置添加classpath ‘com.github.dcendents:android-maven-gradle-plugin:1.5’注意maven-gradle-plugin版本需要和Gradle Version版本对应 dependencies { classpath 'com.android.tools.build:gradle:3.2.0' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }
    最新回复(0)