Skip to content

Project with path ':unityLibrary' could not be found in project ':UnityExport'. #148

@bobanminic96

Description

@bobanminic96

Hi everyone,

I've got this error when trying to run-android project.

  • Where:
    Build file 'C:\xxxx\Project\ProjectName\android\UnityExport\build.gradle' line: 20

  • What went wrong:
    A problem occurred evaluating project ':UnityExport'.

Project with path ':unityLibrary' could not be found in project ':UnityExport'.

Any ideas?

build.gradle of UnityExport :

// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN

allprojects {
buildscript {
repositories {
google()
jcenter()
}

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

repositories {
    google()
    jcenter()
    flatDir {
        dirs "${project(':unityLibrary').projectDir}/libs"
    }
}

}

task clean(type: Delete) {
delete rootProject.buildDir
}

I guess this could be related to settings.gradle in export so im providing you that one too.

include ':launcher',':unityLibrary'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions