Things not going well building the project? See the known issues below and some solutions. If you're a user of the app, check out our FAQ.
In your gradle.properties
file in the root of the project, add:
org.gradle.jvmargs=-Xmx2048m
This must be at least 2 Gb to take advantage of Dex In Process. See this post for more info.
Open the Android SDK Manager and make sure the following are installed:
- Under Tools
- Android SDK Tools
- Android SDK Platform-tools
- Android SDK Build-tools
- Under the currently used SDK version (see
compileSdkVersion
inonebusaway-android/build.gradle
)- SDK Platform
- Google APIs
- Extras
- Android Support Repository
- Android Support Library
- Google Play services
- Google Repository
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.