Module: app apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.wikitude.nativesdksampleapp" minSdkVersion 15 targetSdkVersion 24 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } productFlavors { } } dependencies { compile(name: 'wikitude-native-sdk', ext: 'aar') compile fileTree(dir: 'libs', include: ) compile 'com.android.support:appcompat-v7:24.0.0' compile 'com.android.support:design:24.0.0' } repositories { flatDir { dirs 'libs' } } Project: NativeSDKExamples // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } }
Hi,
Don't know if anyone has crossed with this problem before and still haven't found its solution.
I had the same problem in a Windows 10 environment and what solved it (in my case) was changing the project folder location.
I had extracted the NativeExamples in an inner folder very deep inside my "dev" folder.
Something like this:
"C:\Dev\Android\projs\WikitudeSDK_NativeAPI_Android_1-4-1_2016-11-23_17-04-21\Examples\NativeSDKExamples"
Opened up the project in Android Studio and that error appeared.
Later on, I changed the project path to a higher level in the path hierarchy (C:\Dev\Android\projs\NativeSDKExamples) and it worked.
I hope this help anyone facing this kind of error.
Regards,
José Cunha
Mail