Android : build fails, need to open project with Android Studio to succeed
Issue generated from Tuleap's migration script. Originally submitted by: Romain B. (rbertozzi)
I clone the project and run ./compile.sh immediately after.
The build fails. I Just have to open the project with Android Studio, then close it, and it then runs properly.
Here is what I got when it fails :
=== Building ring-android/app/src/main/bin/Ring-debug.apk for armeabi-v7a ===
date +"%Y-%m-%d" > ring-android/app/src/main/assets/builddate.txt
echo `id -u -n`@`hostname` > ring-android/app/src/main/assets/builder.txt
git rev-parse --short HEAD > ring-android/app/src/main/assets/revision.txt
\# many times the gradlew script is not executable by default
Observed package id 'sources;android-23' in inconsistent location '/home/rbertozzi/Android/Sdk/sources/android-23' (Expected '/home/rbertozzi/Android/Sdk/sources/android-23/sources/android-23')
FAILURE: Build failed with an exception.
\* What went wrong:
A problem occurred configuring project ':app'.
> failed to find target with hash string 'android-23' in: /home/rbertozzi/Android/Sdk/sources/android-23
\* 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: 4.388 secs