Closed joiecen closed 10 years ago
The build script is standardized for Gradle 1.10 and AndroidStudio 0.5.2. Due to rapid change in Gradle/Android Studio and frequent breaking changes, the tools needed to build the library are updated infrequently. We will update this issue when the build is upgraded for newer versions.
Thank you very much for your response ! We will waiting for your good news !
I have been working on a fork of this project in order to add Beacon transmit capabilities. For that to work I needed to upgrade the buildscript as well. I have put the updated buildscript on a separate branch and made a pull request. You can find it here https://github.com/AltBeacon/android-beacon-library/pull/15
Error on Gradle.bat
Can't get version from git: org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'git'' Android SDK not found. Downloading...
Configuring > 0/1 projects > root project SDK extracted at 'C:\Users*****.android-sdk'. Writing to local.properties.
Build tools 19.0.3 missing. Downloading...
Configuring > 1/1 projects
Most of the changes in pull request #15 have been implemented as of a56f4d3bfb95f6d45ffa347c2b6cba4f8e23d966
This allows the library to be built with gradle 1.12
The only changes left out from that pull request have to do with the minimum SDK version, which must be set to a number lower than 18 so folks wishing to make backward-compatible apps
Build with: Android Studio 0.8.2 and gradle 1.12
What went wrong: When we import the project from github, a problem occurred after gradle build. The error said: The project is using an unsupported version of the Android Gradle plug-in (0.10.4)
After change the file"build.gradle" from: dependencies { classpath 'com.android.tools.build:gradle:0.10.+' classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+' classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.10.+' }
to:
dependencies { classpath 'com.android.tools.build:gradle:0.12.+' classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+' classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.10.+' }
Occurred error: Cause: "com.android.build.gradle.AppPlugin"