Comments (9)
Thanks for the issue!
Hopefully the build scan will be enough, but do you have a minimal reproducer?
from dependency-analysis-gradle-plugin.
Sure. Here's my same dependency copied version of my project
Archieve.zip
from dependency-analysis-gradle-plugin.
I had this same issue, seems that it works fine on 1.28.0 👍
from dependency-analysis-gradle-plugin.
I had this same issue, seems that it works fine on 1.28.0 👍
Yes, it seems likely this was caused by the migration to the new, non-deprecated AGP APIs in 1.29.0.
from dependency-analysis-gradle-plugin.
I had this same issue, seems that it works fine on 1.28.0 👍
This solved my issue of "com.android.build.api.component.analytics.AnalyticsEnabledLayered", but another error "org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunnerKt" has been occured.
For anyone who using jetpack compose with this plugin,
set root kotlin version to 1.9.0 like
plugins {
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
}
and set app module's compose compiler version to 1.5.0 (due to kotlin version compatibility) as
composeOptions {
kotlinCompilerExtensionVersion = "1.5.0"
}
this solved my issue.
from dependency-analysis-gradle-plugin.
I cannot reproduce this issue with the reproducer provided, and the changes suggested in this comment. This seems like it might be a Kotlin incompatibility. This plugin currently uses Kotlin 1.9 and is only tested against Kotlin 1.9. Removing from the next milestone until I have reason to believe the problem is in this plugin itself.
from dependency-analysis-gradle-plugin.
Resolved via #1132
from dependency-analysis-gradle-plugin.
Still experiencing this with the plugin 1.30.0
Could not determine the dependencies of task ':common-android:synthesizeProjectViewDebug'.
> Could not create task ':common-android:explodeXmlSourceDebug'.
> Could not create an instance of type com.android.build.api.component.analytics.AnalyticsEnabledLayered.
> Null value provided in parameters [null, id: 1
is_debug: true
minify_enabled: false
variant_type: LIBRARY
min_sdk_version {
api_level: 24
}
target_sdk_version {
api_level: 24
}
dex_builder: D8_DEXER
dex_merger: D8_MERGER
test_execution: HOST
...
org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':common-android:synthesizeProjectViewDebug'.
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:68)
...
Caused by: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type com.android.build.api.component.analytics.AnalyticsEnabledLayered.
at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:69)
at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.newInstance(DependencyInjectingInstantiator.java:55)
at org.gradle.api.internal.model.DefaultObjectFactory.newInstance(DefaultObjectFactory.java:90)
at com.android.build.api.component.analytics.AnalyticsEnabledSources.getRes(AnalyticsEnabledSources.kt:69)
at com.android.build.api.component.analytics.AnalyticsEnabledSources_Decorated.getRes(Unknown Source)
at com.autonomousapps.internal.analyzer.DefaultAndroidSources.getAndroidRes(AndroidSources.kt:85)
at com.autonomousapps.internal.analyzer.AndroidAnalyzer$registerExplodeXmlSourceTask$1.invoke(AndroidProjectAnalyzer.kt:87)
at com.autonomousapps.internal.analyzer.AndroidAnalyzer$registerExplodeXmlSourceTask$1.invoke(AndroidProjectAnalyzer.kt:86)
This is with AGP 8.2.0
, Kotlin 1.9.22
and compose compiler 1.5.9
.
Here is the reproducer: https://github.com/inovait/android-architecture-playground/tree/add_dependency_analysis
from dependency-analysis-gradle-plugin.
Thanks for the repro link. I note your case is not for test sources, but "production" debug sources. I can also see that the library that is failing has no res (and also no source, but this is unrelated). I'm almost certain this is a bug in AGP itself, but I think I can workaround it... probably by just try/catching the error 😞
from dependency-analysis-gradle-plugin.
Related Issues (20)
- Feature Request: Advice on modules that could/should be combined HOT 1
- Add an option to shush the AGP compatibility warning HOT 4
- Adviced to add transitive which is exposed as Kotlin default value in used lib function HOT 1
- `reason` task only shows used classes if there are no exposed classes HOT 3
- Support coreLibraryDesugaring configuration HOT 1
- Incorrect module structure advice HOT 1
- Add flag to silent the console output for the ProjectHealthTask HOT 2
- Provide modularization advice based on dependency information HOT 1
- JPMS HOT 7
- Annotations used to annotate and things (enum constants, class literals, ...) used for annotation member values should not count to ABI HOT 1
- explodeXmlSourceDebugandroidTest task fails with `Premature end of file` exception when androidTest sources include an xml file with no content HOT 3
- How to change buildHealth task's dependencies HOT 1
- How can I ignore specific flavor & build type? HOT 1
- Unable to load class 'org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunnerKt'
- CompileOnly false positive with annotations used at runtime HOT 3
- Bug: caching issues for included builds HOT 1
- Kotlin plugin must be loaded in same (or parent) classloader to DAGP: add check and print actionable error message HOT 4
- Lots of false positive under "Unused dependencies" : project doesn't compile anymore when removed HOT 1
- Please add support for TYPESAFE_PROJECT_ACCESSORS HOT 1
- Allow bundles to be configured in DependencyAnalysisSubExtension HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dependency-analysis-gradle-plugin.