2016-12-09 69 views

回答

0

删除sdk平台工具和构建工具,并重新安装它们为我工作。

你还更新了你的build.gradle吗?

样品:

android { 
    compileSdkVersion 24 // this is important 
    buildToolsVersion "24" // this also 

    defaultConfig { 
     applicationId "org.bamboomy.yarne" 
     minSdkVersion 15 
     targetSdkVersion 24 // recommended 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:24.0.0' // and don't forget this 
    compile 'com.android.support:design:24.0.0' // and this 
} 
相关问题