In my Android Studio project, I have a library module & a App module. Both use Gradle build.
MyProject
-LibraryModule
...
build.gradle
-AppModule
...
build.gradle
...
build.gradle
I need to get the classes.dex file of LibraryModule
.
So, I run gradle's build task of LibraryModule
in Android Studio, it was successful.
Then, I tried to find where is the generated classes.dex file, I only found one under MyProject/build/intermediates/dex/release/classes.dex
, but it is an old file (Timestamp shows it was generated 2 days ago, I am not even sure how it has been generated.)
So, in Android Studio, where is the location for classes.dex? How can I generated it (if 'build' task doesn't generate it)?
Ok, this is weird, though build in Android Studio is successful, but when I try to build in command line under library module:
./gradlew build --stacktrace
I got following error:
Caused by: org.gradle.api.plugins.PluginInstantiationException: Could not create plugin of type 'LibraryPlugin'.
at org.gradle.api.internal.plugins.DefaultPluginRegistry.loadPlugin(DefaultPluginRegistry.java:67)
at org.gradle.api.internal.plugins.DefaultPluginContainer.providePlugin(DefaultPluginContainer.java:103)
at org.gradle.api.internal.plugins.DefaultPluginContainer.addPluginInternal(DefaultPluginContainer.java:68)
at org.gradle.api.internal.plugins.DefaultPluginContainer.apply(DefaultPluginContainer.java:34)
What does it mean "Could not create plugin of type 'LibraryPlugin'" ?