게임이 포함 된 앱을 개발 중입니다. 내 친구가 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')
}
귀하의 Android Studio 버전은 무엇입니까? –
Android Studio 3.0.1 – Bartos