4

i got that error 16,0 in pdf viewer when i try to open it in android studio https://github.com/barteksc/AndroidPdfViewer

 buildscript {
 repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.2.3'
    classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
 }
 allprojects {
repositories {
    jcenter()
}
 }
 android {
     compileSdkVersion 15
    buildToolsVersion '21.1.2'
 }
Zoe
  • 27,060
  • 21
  • 118
  • 148
Heri
  • 61
  • 6
  • You should try cloning the whole project and try running it. For starters, your compileSdk version is quite old – OneCricketeer Oct 10 '17 at 01:59
  • when i open and try new again i got this error "Error:Failed to find Build Tools revision 23.0.3" – Heri Oct 10 '17 at 02:05

1 Answers1

2

There are at two build.gradle file for a project with one module - one the project level and another the app level. Looks like you have mixed up both.

Move the android block to the app level build.gradle file and also don't forget to include minSdkVersion and targetSdkVersion

Nabin Bhandari
  • 15,949
  • 6
  • 45
  • 59