zoukankan      html  css  js  c++  java
  • 导入android源码出现的error及解决办法

    导入android源码时出现的问题

    1.Error:Android Studio Could not find method runProguard() for arguments?
    解决办法:把"runProguard " 改成 "minifyEnabled"

    buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    

      


    2.Error:Cause:+com.android.sdklib.repository.FullRevision

    发生错误的原因:依赖的仓库地址已修改

    解决方法:classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'注释掉;

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
    
    buildscript {
        repositories {
            mavenCentral()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.2.2'
            //classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    

      

    然后,在app目录下:把apply plugin: 'android-sdk-manager'注释掉

    //apply plugin: 'android-sdk-manager'
    apply plugin: 'android'
    
    android {
        compileSdkVersion 20
        buildToolsVersion "20"
    
        defaultConfig {
            applicationId "com.daimajia.androidanimations"
            minSdkVersion 8
            targetSdkVersion 20
            versionCode 1
            versionName "1.0"
        }
        }
    

      

    就可以了!

    上面内容为整理内容,如有侵权,请联系我,立删!

  • 相关阅读:
    【图论】2-SAT 问题
    【网络流】费用流(基于Capacity Scaling)
    CF gym 102483(NWERC 2018) A题 解答
    【网络流】最小点权覆盖集、最大点权独立集
    【网络流】最大密度子图
    【网络流】最大权闭合图
    简易 vim 配置
    生成函数基础
    「NOI.AC」NOI挑战赛第二场
    SDOI2020 退役记
  • 原文地址:https://www.cnblogs.com/moluo/p/6841273.html
Copyright © 2011-2022 走看看