마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

gradle 오류..ㅠ

0 추천

최근 이클립스에 있는 프로젝트를 안드로이드 스튜디오에 임포트 시키는 작업을 했습니다. 근데 빌드중에 gradle 쪽에 오류가 나더군요 인터넷에 이거저거 알아봤지만 그래도 잘 모르겠어서 질문남깁니다.

 

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId "kr.co.testa.app"
        minSdkVersion 15
        targetSdkVersion 23
        multiDexEnabled true
    }

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

dependencies {
    compile 'com.google.android.gms:play-services:+'
    compile 'com.android.support:support-v4:23.+'
    compile files('libs/libGoogleAnalyticsServices.jar')
}

 

 

 

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

 

 

설정은 이런식으로 했습니다.

오류는 경로에 이미지가 있지만 이미지를 못찾는다고 말하는 

D:\Android_app\testa\app\src\main\res\layout\question_list_content.xml
Error:(38, 22) No resource found that matches the given name (at 'src' with value '@drawable/rnd_br_next').

이 오류와 맨 하단에

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\sgsgf\android-sdks\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1

이 오류 입니다.  build 툴을 이거저거 변경해보긴 했지만 ㅠㅠ 그래도 여기저기서 오류가 생기네요 ㅠ

 

익명의 개발자 님이 2016년 8월 5일 질문

1개의 답변

0 추천
import했을 때 생기는 문제면 대부분

compileSdkVersion 23

buildToolsVersion "23.0.0"

이 버전이 안맞아서 생기는 걸겁니다. 숫자를 바꿔서 버전을 바꿔보시던가 아니면 그 버전에 맞춰보시면 될겁니다.
원펀치맨 (2,860 포인트) 님이 2016년 8월 6일 답변
...