Unable to open Project Cuba Studio

When I try to open my project in Cuba studio, I get the following error message:“unable to parse base projects from build.gradle. Please check that ext.cubaVersion property points to a version which exists in Index of /groups/work repository.”

Here’s the beginning of my file:
buildscript {
ext.cubaVersion = ‘6.1.2’
repositories {
maven {
url ‘Index of /groups/work
credentials {
username(rootProject.hasProperty(‘repoUser’) ? rootProject[‘repoUser’] : ‘cuba’)
password(rootProject.hasProperty(‘repoPass’) ? rootProject[‘repoPass’] : ‘cuba123’)
}
}
maven {
url ‘https://repo.cuba-platform.com/content/groups/premium
credentials {
username(rootProject.hasProperty(‘premiumRepoUser’) ? rootProject[‘premiumRepoUser’] : System.getenv(‘CUBA_PREMIUM_USER’))
password(rootProject.hasProperty(‘premiumRepoPass’) ? rootProject[‘premiumRepoPass’] : System.getenv(‘CUBA_PREMIUM_PASSWORD’))
}
}
flatDir { dirs ‘C:\Users\Francis\studio-projects\fluxpdi\PDILibs\MyJARFiles\’}
}
dependencies {
classpath “com.haulmont.gradle:cuba-plugin:$cubaVersion”
}
}

2 Likes

What version of Studio are you using?

version 2.0.3.
Should I upgrade to the latest (2.1.2)

Yes of course.

Thanks. it worked.

Hi!
I have same problem, but what if don’t want to update studio, JDK, etc? I only want to make some changes in my project.

You don’t have to update Studio or something unless you want to migrate to a new version of the platform.

But i can’t open my project. Please, see attached file.

new

Please start a separate topic and provide your project’s build.gradle and which version of Studio you are using.