cancel
Showing results for 
Search instead for 
Did you mean: 

Mobile Commerce Android SDK with Android Studio

Former Member
0 Kudos

Hi,

when opening Mobile Commerce SDK in Android Studio, I get the following error message:

"The project is using an unsupported version of the Android Gradle plug-in (0.7.3). The recommended version is 1.1.0. "

Is this known defect? Is there any workaround?

Mobile Commerce SDK Android release 5 Android Studio 1.1.0

Accepted Solutions (1)

Accepted Solutions (1)

former_member387866
Active Contributor
0 Kudos

Hi Jouni,

This is a standard Android thing that stumped me two weekends ago.

What I did to solve this was;

  1. Download Android Studio 1.0 from the Google Developers page. The 1.0 release has support for importing Ee projects.

  2. Go the the build.gradle file and set the buildscript -> dependencies -> classpath to "com.android.tools.build:gradle:1.1.0".

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

So I guess you just need to change the build.gradle file.

Here's the full build.gradle file from one of my Ee -> Android Studio projects.

I hope this solves your issue,
Luke

Former Member
0 Kudos

I end up importing project to Android Studio 1.1.0 and fixing deprecated things and updating libraries. Disabled tests as they didn't work out of the box.

Hopefully things get better in time. I wouldn't like to do this every time when new release is out.

former_member387866
Active Contributor
0 Kudos

Thanks for sharing how you solved it.

Answers (0)