Tracker Capture in Android Studio

Hello all,

I am trying to load the Tracker Capture app in Android studio but I get the following error:

Gradle sync failed: Configuration with name ‘default’ not found.

     Consult IDE log for more details (Help | Show Log)

Is there anything I am not doing right?

Thanks

···

Kind regards,
Marriette Katarahweire

Hi Marriette,

Did you clone both the tracker capture project and the sdk project from Github?

Also, try to do a ‘git checkout 2.22-legacy’ on both projects.

Regards,

Erling - DHIS 2 Android Team

···

On Wed, Feb 17, 2016 at 9:46 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Hello all,

I am trying to load the Tracker Capture app in Android studio but I get the following error:

Gradle sync failed: Configuration with name ‘default’ not found.

     Consult IDE log for more details (Help | Show Log)

Is there anything I am not doing right?

Thanks

Kind regards,
Marriette Katarahweire


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Thanks for the response, Erling.

Yes, I cloned both and they are in one folder. I downloaded and following instructions from this link

https://github.com/dhis2/dhis2-android-trackercapture

···

On Wed, Feb 17, 2016 at 11:52 AM, Erling Fjeldstad erling@dhis2.org wrote:

Hi Marriette,

Did you clone both the tracker capture project and the sdk project from Github?

Also, try to do a ‘git checkout 2.22-legacy’ on both projects.

Regards,

Erling - DHIS 2 Android Team

Kind regards,
Marriette Katarahweire

On Wed, Feb 17, 2016 at 9:46 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Hello all,

I am trying to load the Tracker Capture app in Android studio but I get the following error:

Gradle sync failed: Configuration with name ‘default’ not found.

     Consult IDE log for more details (Help | Show Log)

Is there anything I am not doing right?

Thanks

Kind regards,
Marriette Katarahweire


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Okay, nice. Did you try to switch to the branch 2.22-legacy in both projects?

Regards,

Erling - DHIS2 - Android Team

···

On Wed, Feb 17, 2016 at 10:15 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Thanks for the response, Erling.

Yes, I cloned both and they are in one folder. I downloaded and following instructions from this link

https://github.com/dhis2/dhis2-android-trackercapture

Kind regards,
Marriette Katarahweire

On Wed, Feb 17, 2016 at 11:52 AM, Erling Fjeldstad erling@dhis2.org wrote:

Hi Marriette,

Did you clone both the tracker capture project and the sdk project from Github?

Also, try to do a ‘git checkout 2.22-legacy’ on both projects.

Regards,

Erling - DHIS 2 Android Team

On Wed, Feb 17, 2016 at 9:46 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Hello all,

I am trying to load the Tracker Capture app in Android studio but I get the following error:

Gradle sync failed: Configuration with name ‘default’ not found.

     Consult IDE log for more details (Help | Show Log)

Is there anything I am not doing right?

Thanks

Kind regards,
Marriette Katarahweire


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Sorry, but where do I switch from?

Thanks

···

On Wed, Feb 17, 2016 at 12:44 PM, Erling Fjeldstad erling@dhis2.org wrote:

Okay, nice. Did you try to switch to the branch 2.22-legacy in both projects?

Regards,

Erling - DHIS2 - Android Team

Kind regards,
Marriette Katarahweire

On Wed, Feb 17, 2016 at 10:15 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Thanks for the response, Erling.

Yes, I cloned both and they are in one folder. I downloaded and following instructions from this link

https://github.com/dhis2/dhis2-android-trackercapture

Kind regards,
Marriette Katarahweire

On Wed, Feb 17, 2016 at 11:52 AM, Erling Fjeldstad erling@dhis2.org wrote:

Hi Marriette,

Did you clone both the tracker capture project and the sdk project from Github?

Also, try to do a ‘git checkout 2.22-legacy’ on both projects.

Regards,

Erling - DHIS 2 Android Team

On Wed, Feb 17, 2016 at 9:46 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Hello all,

I am trying to load the Tracker Capture app in Android studio but I get the following error:

Gradle sync failed: Configuration with name ‘default’ not found.

     Consult IDE log for more details (Help | Show Log)

Is there anything I am not doing right?

Thanks

Kind regards,
Marriette Katarahweire


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

If you’re using Linux or Mac you can do it from the terminal with ‘git checkout 2.22-legacy’.If you’re using Windows you need to download a tool for that. Go to Google and search for ‘git for Windows’ and select the first result. Remember that you’ll need to be in the dhis2-android-sdk (and -trackercapture) folder when you’re typing this command).

Regards,

Erling - DHIS2 -Android Team

···

On Wed, Feb 17, 2016 at 10:48 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Sorry, but where do I switch from?

Thanks

Kind regards,
Marriette Katarahweire

On Wed, Feb 17, 2016 at 12:44 PM, Erling Fjeldstad erling@dhis2.org wrote:

Okay, nice. Did you try to switch to the branch 2.22-legacy in both projects?

Regards,

Erling - DHIS2 - Android Team

On Wed, Feb 17, 2016 at 10:15 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Thanks for the response, Erling.

Yes, I cloned both and they are in one folder. I downloaded and following instructions from this link

https://github.com/dhis2/dhis2-android-trackercapture

Kind regards,
Marriette Katarahweire

On Wed, Feb 17, 2016 at 11:52 AM, Erling Fjeldstad erling@dhis2.org wrote:

Hi Marriette,

Did you clone both the tracker capture project and the sdk project from Github?

Also, try to do a ‘git checkout 2.22-legacy’ on both projects.

Regards,

Erling - DHIS 2 Android Team

On Wed, Feb 17, 2016 at 9:46 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Hello all,

I am trying to load the Tracker Capture app in Android studio but I get the following error:

Gradle sync failed: Configuration with name ‘default’ not found.

     Consult IDE log for more details (Help | Show Log)

Is there anything I am not doing right?

Thanks

Kind regards,
Marriette Katarahweire


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Marriette,

A. In your git local repos, make sure that you do “git checkout 2.22-legacy” just after cloning & before building…like what Erling has mentioned

B. Before building, make sure when you open your “dhis2-android-sdk” project in Android Studio, you end up with a project folder arrangement similar to what is in the attached picture :

If A & B has been done then you can try each one of the following solutions at a time:

1.Add the following IML file (attached) into your parent trackercapture app folder , like this:

=>Parent folder name: trackercapture

	=> Subfolder name : dhis2-android-sdk

	=> Subfolder name : dhis2-android-trackercapture

	=> .iml

Then build your project

2.In your Android Studio, from the menu click “Run”, “Edit Configurations” - then ensure you have configured your target device and/or added

your emulator

Then build your project

  1. Ensure that you have something like this :

    =>Parent folder name: trackercapture

     => Subfolder name : dhis2-android-sdk    (with cloned contents)
    
     => Subfolder name : dhis2-android-trackercapture (with cloned contents)
    

Do not change the names of the sub-folders.The gradle scripts are referencing the two project folders by the names “dhis2-android-sdk” &

“dhis2-android-trackercapture”

Then build your project

  1. Make sure when you clone the two repos dhis2-android-sdk and dhis2-android-trackercapture, you dont add the repos in other folders.

By this I mean do not have a folder structure like:

=>dhis2-android-sdk

	=> dhis2-android-sdk (with cloned contents)

=>dhis2-android-trackercapture

	=> dhis2-android-trackercapture (with cloned contents)

The scenario above will cause problems and Gradle build will fail

Regards,

Arthur Gwatidzo

Software Development and Information Systems

Software Developer

Health Information Systems Program - SA

…iml (1.19 KB)

image

···

On Wed, Feb 17, 2016 at 10:46 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Hello all,

I am trying to load the Tracker Capture app in Android studio but I get the following error:

Gradle sync failed: Configuration with name ‘default’ not found.

     Consult IDE log for more details (Help | Show Log)

Is there anything I am not doing right?

Thanks

Kind regards,
Marriette Katarahweire


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Kind Regards,

Arthur Gwatidzo

Software Development and Information Systems

Health Information Systems Program


Email: arthur.g@hisp.org

Cell: +27(0)768983930

Skype: Arthur.Gwatidzo

Web**: ** http://www.hisp.org

66 Rigel Avenue North, Waterkloof Ridge

Pretoria, 0181

South Africa

E -25.7847787 S 28.2347984

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer . Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission.

If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

Thanks, Arthur.

Let me try that and get back to you all.

···

On Wed, Feb 17, 2016 at 1:09 PM, Arthur Gwatidzo arthur.g@hisp.org wrote:

Hi Marriette,

A. In your git local repos, make sure that you do “git checkout 2.22-legacy” just after cloning & before building…like what Erling has mentioned

B. Before building, make sure when you open your “dhis2-android-sdk” project in Android Studio, you end up with a project folder arrangement similar to what is in the attached picture :

If A & B has been done then you can try each one of the following solutions at a time:

1.Add the following IML file (attached) into your parent trackercapture app folder , like this:

=>Parent folder name: trackercapture

  => Subfolder name : dhis2-android-sdk
  => Subfolder name : dhis2-android-trackercapture
  => .iml

Then build your project

2.In your Android Studio, from the menu click “Run”, “Edit Configurations” - then ensure you have configured your target device and/or added

your emulator

Then build your project

  1. Ensure that you have something like this :

=>Parent folder name: trackercapture

  => Subfolder name : dhis2-android-sdk    (with cloned contents)
  => Subfolder name : dhis2-android-trackercapture (with cloned contents)

Do not change the names of the sub-folders.The gradle scripts are referencing the two project folders by the names “dhis2-android-sdk” &

“dhis2-android-trackercapture”

Then build your project

  1. Make sure when you clone the two repos dhis2-android-sdk and dhis2-android-trackercapture, you dont add the repos in other folders.

By this I mean do not have a folder structure like:

=>dhis2-android-sdk

  => dhis2-android-sdk (with cloned contents)

=>dhis2-android-trackercapture

  => dhis2-android-trackercapture (with cloned contents)

The scenario above will cause problems and Gradle build will fail

Regards,

Arthur Gwatidzo

Software Development and Information Systems

Software Developer

Health Information Systems Program - SA


Email: arthur.g@hisp.org

Cell: +27(0)768983930

Skype: Arthur.Gwatidzo

Web**: ** http://www.hisp.org

66 Rigel Avenue North, Waterkloof Ridge
Pretoria, 0181
South Africa
E -25.7847787 S 28.2347984

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer . Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission.
If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.

Kind regards,
Marriette Katarahweire

On Wed, Feb 17, 2016 at 10:46 AM, Marriette Katarahweire kmarriette@gmail.com wrote:

Hello all,

I am trying to load the Tracker Capture app in Android studio but I get the following error:

Gradle sync failed: Configuration with name ‘default’ not found.

     Consult IDE log for more details (Help | Show Log)

Is there anything I am not doing right?

Thanks

Kind regards,
Marriette Katarahweire


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Kind Regards,

Arthur Gwatidzo

Software Development and Information Systems

Health Information Systems Program


Email: arthur.g@hisp.org

Cell: +27(0)768983930

Skype: Arthur.Gwatidzo

Web**: ** http://www.hisp.org

66 Rigel Avenue North, Waterkloof Ridge

Pretoria, 0181

South Africa

E -25.7847787 S 28.2347984

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer . Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission.

If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.