Cannot compile commcare-android

Trying to import commcare-android from GitHub into Android Studio but I
keep getting this error:

Error:Project :app declares a dependency from configuration ‘compile’ to
configuration ‘default’ which is not declared in the descriptor for project
:commcare-core.

After inspecting the settings.gradle file I notice these two lines:

include ‘:commcare-core’
project(’:commcare-core’).projectDir = new File(’…/commcare-core’)

Could this be the issue? If so how do I go about this problem?

Hi Takondwa,

Are you following the instructions for setup from the readme here?

They describe how to check out and link the commcare-core tests.

-Clayton

··· On Wed, Aug 16, 2017 at 5:37 AM, Takondwa Makawa wrote:

Trying to import commcare-android from GitHub into Android Studio but I
keep getting this error:

Error:Project :app declares a dependency from configuration ‘compile’ to
configuration ‘default’ which is not declared in the descriptor for project
:commcare-core.

After inspecting the settings.gradle file I notice these two lines:

include ‘:commcare-core’
project(’:commcare-core’).projectDir = new File(’…/commcare-core’)

Could this be the issue? If so how do I go about this problem?


You received this message because you are subscribed to the Google Groups
“commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I cloned the two repositories into different folders,my bad.
But now I have another error during project building:
Error:(103, 1) A problem occurred configuring project ‘:app’.

Could not get unknown property ‘processQabetaDebugGoogleServices’ for
project ‘:app’ of type org.gradle.api.Project.

After jumping to source, it opened the gradle file and pointed to this
statement:

processQabetaDebugGoogleServices.dependsOn injectGoogleServicesAPIKey

··· On Wednesday, August 16, 2017 at 3:21:25 PM UTC+2, Clayton Sims wrote: > > Hi Takondwa, > > Are you following the instructions for setup from the readme here? > > https://github.com/dimagi/commcare-android > > They describe how to check out and link the commcare-core tests. > > -Clayton > > On Wed, Aug 16, 2017 at 5:37 AM, Takondwa Makawa <mtma...@gmail.com > wrote: > >> Trying to import commcare-android from GitHub into Android Studio but I >> keep getting this error: >> >> Error:Project :app declares a dependency from configuration 'compile' to >> configuration 'default' which is not declared in the descriptor for project >> :commcare-core. >> >> After inspecting the settings.gradle file I notice these two lines: >> >> include ':commcare-core' >> project(':commcare-core').projectDir = new File('../commcare-core') >> >> >> Could this be the issue? If so how do I go about this problem? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

Do you have Android Studio configured to use the gradle wrapper for builds?
When you run ./gradlew assembleCommCareDebug from the command line does
the build succeed?

··· On Thu, Aug 17, 2017 at 4:10 AM, Takondwa Makawa wrote:

I cloned the two repositories into different folders,my bad.
But now I have another error during project building:
Error:(103, 1) A problem occurred configuring project ‘:app’.

Could not get unknown property ‘processQabetaDebugGoogleServices’ for
project ‘:app’ of type org.gradle.api.Project.

After jumping to source, it opened the gradle file and pointed to this
statement:

processQabetaDebugGoogleServices.dependsOn injectGoogleServicesAPIKey

On Wednesday, August 16, 2017 at 3:21:25 PM UTC+2, Clayton Sims wrote:

Hi Takondwa,

Are you following the instructions for setup from the readme here?

https://github.com/dimagi/commcare-android

They describe how to check out and link the commcare-core tests.

-Clayton

On Wed, Aug 16, 2017 at 5:37 AM, Takondwa Makawa mtma...@gmail.com wrote:

Trying to import commcare-android from GitHub into Android Studio but I
keep getting this error:

Error:Project :app declares a dependency from configuration ‘compile’ to
configuration ‘default’ which is not declared in the descriptor for project
:commcare-core.

After inspecting the settings.gradle file I notice these two lines:

include ‘:commcare-core’
project(’:commcare-core’).projectDir = new File(’…/commcare-core’)

Could this be the issue? If so how do I go about this problem?


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Takondwa,

The “Resolving dependencies” step can involve downloading a significant
number of external dependencies from the internet, which may be related to
your issue.

If you run the gradle build with a higher verbosity, does that output
mention fetching external resources?

-Clayton

··· On Fri, Aug 18, 2017 at 7:38 AM, Takondwa Makawa wrote:

The process does not seem to complete, it gets stuck at :

*Resolving dependencies ‘:classpath’*On Thursday, August 17, 2017 at
10:26:43 PM UTC+2, William Pride wrote:

Do you have Android Studio configured to use the gradle wrapper for
builds? When you run ./gradlew assembleCommCareDebug from the command
line does the build succeed?

On Thu, Aug 17, 2017 at 4:10 AM, Takondwa Makawa mtma...@gmail.com wrote:

I cloned the two repositories into different folders,my bad.
But now I have another error during project building:
Error:(103, 1) A problem occurred configuring project ‘:app’.

Could not get unknown property ‘processQabetaDebugGoogleServices’ for
project ‘:app’ of type org.gradle.api.Project.

After jumping to source, it opened the gradle file and pointed to this
statement:

processQabetaDebugGoogleServices.dependsOn injectGoogleServicesAPIKey

On Wednesday, August 16, 2017 at 3:21:25 PM UTC+2, Clayton Sims wrote:

Hi Takondwa,

Are you following the instructions for setup from the readme here?

https://github.com/dimagi/commcare-android

They describe how to check out and link the commcare-core tests.

-Clayton

On Wed, Aug 16, 2017 at 5:37 AM, Takondwa Makawa mtma...@gmail.com wrote:

Trying to import commcare-android from GitHub into Android Studio but
I keep getting this error:

Error:Project :app declares a dependency from configuration 'compile’
to configuration ‘default’ which is not declared in the descriptor for
project :commcare-core.

After inspecting the settings.gradle file I notice these two lines:

include ‘:commcare-core’
project(’:commcare-core’).projectDir = new File(’…/commcare-core’)

Could this be the issue? If so how do I go about this problem?


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.