The ThingWorx Android SDK was designed to load without modification into Android Studio but due to recent changes in Android Studio, the Thingworx Always On Android SDK 1.0 needs to have minor modifications made to its build files before it will load or build. This changes will be made in the 1.1 release in July, 2016 but until then they will have to be updated after the user downloads the SDK.

 

Android Studio changed the minimum required Android build tools for gradle. This also forces a new version of gradle to be required. The following changes must be made to each set of SDK project build files.

The tw-android-sdk/gradle/wrapper/gradle-wrapper.properties file ( there is only one present in the entire sdk) must have this line changed from:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
to:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

In all build.gradle files change
from:
buildToolsVersion "19.1.0"
to:
buildToolsVersion “21.0.0”

also in all build.gradle files change
from:
dependencies

{ classpath 'com.android.tools.build:gradle:1.3.0' }

to:
dependencies

{ classpath 'com.android.tools.build:gradle:2.1.0' }


Now you should be able to import and build all examples again.