2017-12-22 13 views
1

게임이 포함 된 앱을 개발 중입니다. 내 친구가 Unity에 쓰여진 게임을 위해 나에게 gradle 프로젝트를 보냈습니다. 별도로 둘 다 완벽하게 작동합니다. 그러나 게임에서 모듈을 추가하여 앱에서 실행하면 빌드 문제가 발생합니다. 나는 그것이 gradle 때문에 인 것을 안다. 나는 해결책을 찾으려고했지만 실패했다. 내가 받고있어 오류는 다음과 같습니다일치하는 프로젝트 구성을 찾을 수 없습니다.

게임

// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN 
buildscript { 
    repositories { 
     jcenter() 
    } 

    dependencies { 
     classpath 'com.android.tools.build:gradle:3.0.1' 
    } 
} 

allprojects { 
    repositories { 
     flatDir { 
     dirs 'libs' 
     } 
    } 
} 

apply plugin: 'com.android.application' 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
} 

android { 
    compileSdkVersion 25 
    buildToolsVersion '25.0.2' 

    defaultConfig { 
     targetSdkVersion 25 
     applicationId 'pl.moonlit.projectx.towergame' 
    } 

    lintOptions { 
     abortOnError false 
    } 

    aaptOptions { 
     noCompress '.unity3d', '.ress', '.resource', '.obb' 
    } 


    buildTypes { 
     debug { 
      minifyEnabled false 
      useProguard false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt' 
      jniDebuggable true 
     } 
     release { 
      minifyEnabled false 
      useProguard false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt' 
      signingConfig signingConfigs.debug 
     } 
    } 

} 

APP

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 26 
    defaultConfig { 
     applicationId "com.example.maksym.jti" 
     minSdkVersion 16 
     targetSdkVersion 26 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 

    } 
} 

dependencies { 
    ... 
    compile project(path: ':Tower Game') 
} 
+0

귀하의 Android Studio 버전은 무엇입니까? –

+0

Android Studio 3.0.1 – Bartos

답변

1

종료 기존의 IDE 창 : 여기

Could not resolve project :Tower Game. 
Required by: 
    project :app 
> Unable to find a matching configuration of project :Tower Game: 

내 Gradle을 파일입니다.

AndroidStudio에서 프로젝트를 열고 프로젝트가있는 디렉토리로 이동합니다.

내부에 설정을 선택하십시오. 파일을 열면 모든 종속성이 올바르게 다운로드되고 올바르게 열립니다.

+0

작동하지 않음, 미안 : / – Bartos