React-native-image-picker: Update Android build tools version

Created on 20 Mar 2017  路  26Comments  路  Source: react-native-image-picker/react-native-image-picker

Android Studio 2.3 requires build tools version 25.0.0 or higher

Most helpful comment

@rusfearuth Yes, I'm sure.

screen shot 2017-03-31 at 8 11 06 am

All 26 comments

@alexeypodolian Hi! Hmmm... I've seen dialog for upgrading to 25.0.0 build tools, but I ignored them. Do you have problem with building project or?

@rusfearuth Yes, unfortunately I can not build the project without 25.0.0 (or higher)

@alexeypodolian Do you use gradle cli or Android Studio?

@rusfearuth Android Studio 2.3

@alexeypodolian Did you try use gradlew for building? I use library with build tools 24.0.2 and everything is okay.

@rusfearuth Yes, the same issue because of I have updated gradlew to version 3.3 after Android Studio update

@alexeypodolian Are you sure? It's only recommendation you can build project with old build tools.

@rusfearuth Yes, I'm sure.

screen shot 2017-03-31 at 8 11 06 am

@alexeypodolian Could you show me the log from cli on calling ./gradlew assembleDebug?

@rusfearuth Yes. By the way, Android Studio is just wrapper upon Gradle CLI.

Alexeys-MacBook-Pro-2:android alexey$ ./gradlew assembleDebug
Incremental java compilation is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_devDebugApk'.
   > A problem occurred configuring project ':react-native-image-picker'.
      > The SDK Build Tools revision (23.0.3) is too low for project ':react-native-image-picker'. Minimum required is 25.0.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.797 secs

I try set this version, but i get the error
image

@BigRoma Do you have comlileVersion 25 at your build.gradle?

@alexeypodolian Okay. Did you add react-native to exist project or?

@rusfearuth What do you mean? I added react-native-image-picker as described at Install section of README. And It worked well until I have updated Gradle Wrapper and Android Studio.

@alexeypodolian Did you add react-native to exist native project or create a new one?

@alexeypodolian Could you show the next options from android/app/build.gradle?

  • android.compileSdkVersion
  • android.buildToolsVersion
  • android.defaultConfig

@alexeypodolian Yes i have

@rusfearuth
I have an exist native project.

My build.gradle:

compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
        applicationId 'my.package'
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 123
        versionName '123'
        ndk {
            abiFilters 'armeabi-v7a', 'x86'
        }
        multiDexEnabled true
}

@alexeypodolian I was right =) It's main problem. Okay, I'll think about your PR.

@rusfearuth What is about my problem?

@BigRoma Did you add react-native to exist native project?

@BigRoma your problem isn't here ) As you can see problem into react-native-maps.

@rusfearuth Oh! I'm sorry didn't pay attention, after changing versions of all packages it worked. Thank you very much =)

@BigRoma u'r welcome.

535 has been merged so closing this.

Was this page helpful?
0 / 5 - 0 ratings