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.

[AGP 3.6.0-alpha03] - com.android.build.gradle.tasks.PackageAndroidArtifact.getOutputDirectory()Ljava/io/File;

See original GitHub issue

Example build:

https://github.com/jaredsburrows/android-gif-example/pull/103

Error:

$ gradlew assembleDebug
WARNING: API 'variantOutput.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

FAILURE: Build failed with an exception.

* What went wrong:
com.android.build.gradle.tasks.PackageAndroidArtifact.getOutputDirectory()Ljava/io/File;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 798ms

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:9

github_iconTop GitHub Comments

2reactions
benjamin-badercommented, Sep 3, 2019

I guess we’ll have to make a ThreeSixProvider, then! I’ll see if I can fit that in this week.

1reaction
benjamin-badercommented, Jun 10, 2019

Thanks for the report! They sure do like to change things up with that API, don’t they. I feel like it was just the last latest release where they “stabilized” getPackageApplication().

Read more comments on GitHub >

github_iconTop Results From Across the Web

gradle - Unable to find method PackageAndroidArtifact ...
1, I'm getting the below error: Unable to find method ''java.io.File com.android.build.gradle.tasks.PackageAndroidArtifact.getOutputDirectory()' ...
Read more >
Crash when applying screenshot plugin with Android Gradle ...
Caused by: java.lang.NoSuchMethodError: com.android.build.gradle.tasks.PackageAndroidArtifact.getOutputDirectory()Ljava/io/File; ...
Read more >
Android Gradle plugin release notes - Android Developers
The Android Studio build system is based on Gradle, and the Android Gradle plugin adds several features that are specific to building Android...
Read more >
AGP 3.2.0-rc03 Spurious build failure: Comparison method ...
TaskExecutionException: Execution failed for task ':airbnb:packageFullDebug'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.
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