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,
:react-native-cookies:compileReleaseAidl FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-cookies:compileReleaseAidl'.
> java.lang.IllegalStateException: aidl is missing
I have no idea why running yarn start:androidon Arch Linux causes wrong buildToolsVersion to be used.
As it downloads 25.0.0 each time before using it against depending libraries mentioned above which state that they need 25.0.2
Incremental java compilation is an incubating feature.
Checking the license for package Android SDK Build-Tools 25 in /opt/android-sdk/licenses
License for package Android SDK Build-Tools 25 accepted.
Preparing "Install Android SDK Build-Tools 25".
> Configuring > 5/9 projects
One by one I got the same error for the following projects,
- react-native-cookies
- react-native-device-info
- react-native-i18n
All had buildToolsVersion "25.0.2" which I changed to buildToolsVersion "23.0.1" in order to compile, as running yarn start android command kept downloading and using 25.0.0 even though gradle specifically asks for 25.0.2
Also, 25.0.2 is already downloaded, whereas 25.0.0 is not and it keeps redownloading it whe I delete it.
For some reason it is insisting on using 25.0.0:
Preparing "Install Android SDK Build-Tools 25".
"Install Android SDK Build-Tools 25" ready.
Finishing "Install Android SDK Build-Tools 25"
Installing Android SDK Build-Tools 25 in /opt/android-sdk/build-tools/25.0.0
"Install Android SDK Build-Tools 25" complete.
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" to buildToolsVersion "23.0.1"
- react-native-cookies
- react-native-device-info
- react-native-i18n
But, why?
There might be a pull request to fix the problem, but since on Mar 1 and on Mar 9 it has not been merged.
#12634
#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 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" to buildToolsVersion "23.0.1"
- react-native-cookies
- react-native-device-info
- react-native-i18n
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
yarnyarn run linkyarn start:androidExpected Behavior
App compiles. APK generated ...
Actual Behavior
I keep running into the following error,
I have no idea why running
yarn start:androidon Arch Linux causes wrongbuildToolsVersionto be used.As it downloads
25.0.0each time before using it against depending libraries mentioned above which state that they need25.0.2One 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.0even though gradle specifically asks for25.0.2Also,
25.0.2is already downloaded, whereas25.0.0is 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 1andon Mar 9it has not been merged.#12634
#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
yarnyarn run linkyarn start:androidbuild.gradle of android app is
buildToolsVersion "26.0.1"And, build.gradle of
react-native-cookies,react-native-device-info,react-native-i18nisbuildToolsVersion "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"