Running _yarn start:android_ downloads wrong android version to compile with #16717
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Is this a bug report?
Yes.
Environment
Environment:
OS: Linux 4.13
Node: 8.8.1
Yarn: 1.3.2
npm: 5.5.1
Watchman: Not Found
Target Platform: android
Steps to Reproduce
git clone https://github.com/gitpoint/git-point
cd to project, in my case git-point
yarn
yarn run link
yarn start:android
Expected Behavior
App compiles. APK generated ...
Actual Behavior
I keep running into the following error,
I have no idea why running
yarn start:android
on Arch Linux causes wrongbuildToolsVersion
to be used.As it downloads
25.0.0
each time before using it against depending libraries mentioned above which state that they need25.0.2
One by one I got the same error for the following projects,
All had
buildToolsVersion "25.0.2"
which I changed tobuildToolsVersion "23.0.1"
in order to compile, as running yarn start android command kept downloading and using25.0.0
even though gradle specifically asks for25.0.2
Also,
25.0.2
is already downloaded, whereas25.0.0
is not and it keeps redownloading it whe I delete it.For some reason it is insisting on using 25.0.0:
When in build.gradle of android app is
buildToolsVersion "26.0.1"
And, build.gradle of react-native-cookies, react-native-device-info, react-native-i18n is
buildToolsVersion "25.0.2"
So, why does it download 25.0.0 each time when neither point to it and both 26.0.1 and 25.0.2 are already installed?
I was able to compile app by changing the build.gradle of the following projects from
buildToolsVersion "25.0.2"
tobuildToolsVersion "23.0.1"
But, why?
There might be a pull request to fix the problem, but since
on Mar 9
it has not been merged.#12820
Reproducible Demo
Building https://github.com/gitpoint/git-point causes build failure due to wrong android build sdk being used.
cd to project, in my case gitPoint
yarn
yarn run link
yarn start:android
build.gradle of android app is
buildToolsVersion "26.0.1"
And, build.gradle of
react-native-cookies
,react-native-device-info
,react-native-i18n
isbuildToolsVersion "25.0.2"
So, why does it download 25.0.0 each time when neither point to it and both 26.0.1 and 25.0.2 are already installed?
I was able to compile app by changing the build.gradle of the following projects from
buildToolsVersion "25.0.2"
tobuildToolsVersion "23.0.1"
The text was updated successfully, but these errors were encountered: