2016-07-07 87 views
0

我的项目前建成罚款,但现在我得到一个错误:升级Android Studio中2.1.2升级到Android 2.1.2工作室现在,当越来越生成错误

enter image description here

这里是我有在我build.gradle文件:

buildscript { 
    repositories { 
     maven { url 'https://maven.fabric.io/public' } 
    } 

    dependencies { 
     classpath 'io.fabric.tools:gradle:1.+' 
    } 
} 
apply plugin: 'android' 
apply plugin: 'io.fabric' 

repositories { 
    maven { url 'https://maven.fabric.io/public' } 
} 


android { 
    compileSdkVersion 19 
    buildToolsVersion '19.1.0' 

    defaultConfig { 
     applicationId "com.puc.mobile" 
     minSdkVersion 14 
     targetSdkVersion 19 
    } 

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

dependencies { 
    //compile files('libs/crashlytics.jar') 
    compile files('libs/FLurry_3.2.2.jar') 
    compile files('libs/universal-image-loader-1.9.2.jar') 
    // You must install or update the Support Repository through the SDK manager to use this dependency. 
    // You must install or update the Google Repository through the SDK manager to use this dependency. 
    compile files('libs/commons-lang3-3.4.jar') 
    compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
     transitive = true; 
    } 
    compile fileTree(dir: 'libs', include: 'Parse-*.jar') 
    compile files('libs/Parse-1.13.0.jar') 
    compile 'com.android.support:support-v4:19.0.0' 
    compile 'com.google.android.gms:play-services:9.2.0' 
    compile 'com.parse.bolts:bolts-android:1.+' 
    compile 'com.google.android.gms:play-services-ads:9.2.0' 
    compile 'com.google.android.gms:play-services-auth:9.2.0' 
    compile 'com.google.android.gms:play-services-gcm:9.2.0' 
} 

我知道有一些问题在这里与构建工具的版本,但老实说,我不知道如何解决它。任何线索?

UPDATE:

更新为下述buildToolsVersion后,我得到的错误:

enter image description here

+0

有你试着用最新版本的工具(24.0.0)建设? – LordRaydenMK

+0

@LordRaydenMK我会把'buildToolsVersion'改为24吗? –

+0

'buildToolsVersion '24.0.0''也确保构建工具安装在SDK管理器中 – LordRaydenMK

回答

0

这是因为生成工具版本19.1.0不存在。

最新的版本是23.0.3.

包含在SDK包并安装在<sdk>/build-tools/目录这些工具。

改变你build.gradle

android { 
    buildToolsVersion "23.0.3" 
    // ... 

} 

SDK Build Tools Release Notes

+0

这给了我很多'找不到匹配给定名称的资源错误。另外,'错误检索父项目'。将更新问题与截图。 –

+0

在buildtool版本中进行更改后,您是否同步了gradle? –

+0

是的,它同步。 –