Android GPS test program
Available on Google Play at https://play.google.com/store/apps/details?id=com.android.gpstest
For a Developer's Guide and more details, see https://github.com/barbeau/gpstest/wiki
buildToolsVersionversion, and the Android Support Repository and Google Repository.
gradlew installDebugfrom the command line at the root of the project
adb shell am start -n com.android.gpstest/.GpsTestActivity(alternately, you can manually start the app)
To build a release build, you need to create a "gradle.properties" file that points to a "secure.properties" file, and a "secure.properties" file that points to your keystore and alias. The
gradlew assembleRelease command will prompt for your keystore passphrase.
The "gradle.properties" file is located in the
\GPSTest directory and has the contents:
The "secure.properties" file (in the location specified in gradle.properties) has the contents:
Note that the paths in these files always use the Unix path separator
/, even on Windows. If you use the Windows path separator
\ you will get the error
No value has been specified for property 'signingConfig.keyAlias'.
We welcome contributions to the project! Please see our Contributing Guide for details, including Code Style Guidelines and Template.
If you're using Android Studio v0.4.2 or lower, when importing, please be sure to select the "settings.gradle" file in the root, NOT the project directory. You will get the above error if you select the project directory / name of the project.
Open Android SDK Manager, and under the "Extras" category make sure you've installed both the "Android Support Repository" (in addition to the "Android Support library") as well as the "Google Repository". Also, make sure you have the Google API installed for the API level that you're working with in the "/build.gradle" file, including the "Android SDK Build-tools" version (at the top of the "Tools" category in the Android SDK Manager) that matches the compileSdkVersion and buildToolsVersion numbers in /GPSTest/build.gradle.
Make sure you have the Google API installed for the API level that you're working with in the
including the "Android SDK Build-tools" version (at the top of the "Tools" category in the Android SDK Manager) that
buildToolsVersion numbers in
Make sure that you're consistently using the same Android SDK throughout Android Studio and your environmental variables. Android Studio comes bundled with an Android SDK, and can get confused if you're pointing to this SDK within Android Studio but have your environmental variables pointed elsewhere. Click "File->Project Structure", and then under "Android SDK" make sure you "Android SDK Location" is the correct location of your Android SDK.
Also, make sure you've set the "ANDROID_HOME" environmental variable to your Android SDK location and the "JAVA_HOME" environmental variables to point to your JDK folder.