Unable to use the template
Hi,
I updated these properties in 'build.gradle' to match my API version :
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "sfml.com.sfml_example"
//Replace this with your real package name (e.g. com.StudioName.GameName)
minSdkVersion 28
targetSdkVersion 28
I have problems with the dependencies and I don't know how to fix that issue :
FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugApkCopy'. Could not find com.android.support:appcompat-v7:25.3.1. Required by: project :app Could not find com.android.support.constraint:constraint-layout:1.0.2. Required by: project :app Could not find com.android.support:support-v4:25.3.1. Required by: project :app
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-v4:25.3.1'
testCompile 'junit:junit:4.12'
}
When I remove dependencies, I have this error :
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> executing external native build for cmake C:\DevProjects\SFML_AndroidStudio\app\CMakeLists.txt
I followed this tutorial https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android but I don't know how to launch this gradle build on Windows that's why I'm using your template.
Thanks.