nowinandroid
nowinandroid copied to clipboard
Error on first build: Could not find implementation class 'AndroidApplicationConventionPlugin'
Steps to repro:
- Load project in Android Studio Dolphin
- Do not change the default run configuration of
app-nia-catalog
- Click the build hammer
Expected outcome:
- No errors
Actual outcome:
Received error message in the build window titled "Generate Demo Baseline Profile":
11:20:39: Executing ':benchmark:pixel6Api31DemoBenchmarkAndroidTest --rerun --enable-display -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile'...
Starting Gradle Daemon...
Gradle Daemon started in 1 s 613 ms
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: :benchmark:pixel6Api31DemoBenchmarkAndroidTest --rerun --enable-display
> Task :build-logic:convention:compileKotlin UP-TO-DATE
> Task :build-logic:convention:compileJava NO-SOURCE
> Task :build-logic:convention:pluginDescriptors UP-TO-DATE
> Task :build-logic:convention:processResources UP-TO-DATE
> Task :build-logic:convention:classes UP-TO-DATE
> Task :build-logic:convention:inspectClassesForKotlinIC UP-TO-DATE
> Task :build-logic:convention:jar UP-TO-DATE
0 problems were found storing the configuration cache.
See the complete report at file:///Users/jakeroseman/Desktop/Now%20in%20Android/nowinandroid/build/reports/configuration-cache/cnekfqe0a9ni0h2z0ztss4m4h/1za1rszxuhwewv7j66csm1wry/configuration-cache-report.html
5 actionable tasks: 5 up-to-date
Configuration cache entry stored.
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/jakeroseman/Desktop/Now in Android/nowinandroid/app/build.gradle.kts' line: 18
* What went wrong:
An exception occurred applying plugin request [id: 'nowinandroid.android.application']
> Could not find implementation class 'AndroidApplicationConventionPlugin' for plugin 'nowinandroid.android.application' specified in jar:file:/Users/jakeroseman/.gradle/caches/jars-9/f7d43052d92e7cce572b77b520d25fea/convention.jar!/META-INF/gradle-plugins/nowinandroid.android.application.properties.
* 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 23s
11:21:05: Execution finished ':benchmark:pixel6Api31DemoBenchmarkAndroidTest --rerun --enable-display -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile'.
@dturner - were you able to find the fix or workaround?
I tried this answer in a different project and it worked, give it a shot and see.
try removing 'package' from the plugin class