question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not get unknown property 'AggregationMode' for extension 'marathon'

See original GitHub issue

According to the docs, for pulling files form device I use this configuration in gradle(groovy)

fileSyncConfiguration {
        pull.add(
                FileSyncEntry(
                        "Pictures",
                        AggregationMode.POOL
                )
        )
    }

and build fails with this exception:

Could not get unknown property 'AggregationMode' for extension 'marathon' of type com.malinskiy.marathon.MarathonExtension.

What is wrong in my configuration?

  • marathon version: 0.6.5
  • gradle version: 7.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alirezaafkarcommented, Nov 9, 2021

Worked 😃) Thanks.

0reactions
Malinskiycommented, Nov 9, 2021

I got so used to Kotlin that I missed the new for calling constructor in Groovy:

marathon {
    fileSyncConfiguration {
        pull.add(new com.malinskiy.marathon.android.configuration.FileSyncEntry("Pictures", com.malinskiy.marathon.android.configuration.AggregationMode.POOL))
    }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Build error "Could not get unknown property 'preDebugBuild ...
A problem occurred configuring project ':app'. Could not get unknown property 'preDebugBuild' for extension 'android' of type com.android.build.
Read more >
Build Gradle Error Could not get unknown property 'compile'
A problem occurred evaluating project ':app'. Could not get unknown property 'compile' for configuration container of type org.gradle.api.
Read more >
Civil Procedure Outline - NYU Law
Compels the enforcement of a state's judgment in every other state; Not enforceable where the original state did not have proper jurisdiction.
Read more >
IBM Security QRadar - Administration guide
Example: How configuration errors for log source extensions can cause asset growth ... Generally, if the asset cleanup agent does not have connection...
Read more >
Pipeline Steps Reference - Jenkins
Pipeline Steps Reference. The following plugins offer Pipeline-compatible steps. Each plugin link offers more information about the parameters for each step ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found