Closed rishabh7m closed 8 years ago
Hi, Make sure that your SDK project is in 2.22-legacy branch and try building again. Let me know if it works.
Hi @erlingfjelstad , can you please elaborate this? I was searching for the same and came to know that there is dhis2-android-sdk. So, should I use this sdk instead of android Sdk?
Try to switch to legacy branch in dashboards project and check if it builds. Sorry, we're partially in a refactoring stage right now
Still the same error.
Did you sync gradle?
Hi rishabh7m,
Here are several steps you should consider: 1) Make sure you are on legacy branch 2) If you first imported project from master branch and then switched to legacy, try to invalidate cache and restart android studio.
Now I am getting different error: - gradle dsl method not found 'compile()'
While importing the project to android studio, did you select to use "gradle wrapper" or global gradle installation for builds?
Global. Gradle wrapper was not showing any files while selecting gradle home
You should select gradle wrapper option and leave gradle home property blank. Also make sure that when you import project, android studio is pointed to app/build.gradle.
Android studio is not allowing to keep gradle home path empty.
i've pointed to app/build.gradle while importing the project and had selected the gradle wrapper option. However, i get the error that sdk location is not defined but in local.properties i have this : sdk.dir=C:\Users\Divya\AppData\Local\Android\sdk.
Built successfully. Had just pointed to the wrong build.gradle earlier.
@ArazAbishov Hi... Which server url,username and password to use for entering in the app?
You can try to use it with demo server: https://play.dhis2.org/demo Username: admin Password: district
@Dvik Thanks
While importing in android studio got the following error. Error:Configuration with name 'default' not found.
Steps:-