31.7.13

Google I/O 2013 App - Source code

Today android developers released source code of their app of Google IO of this year: http://code.google.com/p/iosched
Obviously, download and look code is mandatory.
The project is builded with the automation suite Gradle.
I use the new Android Studio (latest version) to develop and the same to open the project, imported from git
(git clone https://code.google.com/p/iosched/)
In the main folder of the source there's a file called BUILDING.txt with some instructions about to build the project.

To build the app:
    1) Install the following software:
       - Android SDK:
       - Gradle:
       - Android Studio (optional):
    2) Run the Android SDK Manager by pressing the SDK Manager toolbar button
       in Android Studio or by running the 'android' command in a terminal
       window.
    3) In the Android SDK Manager, ensure that the following are installed:
       - Android 4.3 > SDK Platform
       - Extras > Android Support Repository
       - Extras > Android Support Library
       - Extras > Google Play services
    4) Import the project in Android Studio:
         i. Press File > Import Project
        ii. Navigate to and choose the settings.gradle file in this project
       iii. Press OK
    5) Choose Build > Make Project in Android Studio or run the following command
       in the project root directory:
       ./gradlew clean assembleDebug

I've completed all this step but when I try to import the file settings.gradle (without changing none option in the window) I have this error: failed to find Build Tools revision 15.0.0.
After some searching I find the hidden solution.
ADT need also API from 15. I installed all API from 4.0.4 and it works!

Now, let's rock! Go to see how googlers code! ;)

Nessun commento:

Posta un commento