React-native-code-push: After update android sdk and gradle ,can not build apk

Created on 28 Mar 2017  路  2Comments  路  Source: microsoft/react-native-code-push

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Description

After update android sdk and gradle ,can not build apk. And i can't downgrade the sdk and gradle.If downgrade ,android studio will prompt Minimum required is 25.0.0.

distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

ext {
// Sdk and tools
minSdkVersion = 16
targetSdkVersion = 23
compileSdkVersion = 24
buildToolsVersion = '25.0.0'

// App dependencies
supportLibraryVersion = '25.2.0'
}

Additional Information

  • react-native-code-push version:latest
  • react-native version:0.39
  • iOS/Android/Windows version: android
  • Does this reproduce on a debug build or release build? debug build
  • Does this reproduce on a simulator, or only on a physical device? physical device

(The more info the faster we will be able to address it!)

jenkins error:

10:04:11 FAILURE: Build failed with an exception.
10:04:11
10:04:11 * What went wrong:
10:04:11 A problem occurred configuring project ':app'.
10:04:11 > Failed to notify project evaluation listener.
10:04:11 > Could not resolve all dependencies for configuration ':app:_zmlearnDebugApk'.
10:04:11 > A problem occurred configuring project ':react-native-code-push'.
10:04:11 > The SDK Build Tools revision (23.0.1) is too low for project ':react-native-code-push'. Minimum required is 25.0.0
10:04:11 > Must apply 'com.android.application' first!
10:04:11
10:04:11 * Try:
10:04:11 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
10:04:11
10:04:11 BUILD FAILED

question

Most helpful comment

Hi @chang-chaunce, you've probably faced with this issue due to breaking changes that have been introduced by Android plugin for Gradle, revision 2.3.0
To fix the issue please try to downgrade your version of Android plugin for Gradle to 2.2.3 here and change buildToolsVersion value to 23.0.1 due to it's officially supported by React Native and CodePush.

All 2 comments

Hi @chang-chaunce, you've probably faced with this issue due to breaking changes that have been introduced by Android plugin for Gradle, revision 2.3.0
To fix the issue please try to downgrade your version of Android plugin for Gradle to 2.2.3 here and change buildToolsVersion value to 23.0.1 due to it's officially supported by React Native and CodePush.

@sergey-akhalkov Thank you锛寉ou're right, I have fixed it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fanzhiri picture fanzhiri  路  3Comments

DeDuckProject picture DeDuckProject  路  3Comments

Fuhrmann picture Fuhrmann  路  3Comments

panarasi picture panarasi  路  4Comments

sergey-akhalkov picture sergey-akhalkov  路  4Comments