Skip to content

Deprecated features in gradle files #751

Open
@lcrocker

Description

@lcrocker

Can't build Android library with recent versions of gradle.

Just cloned the repo, and tried to build any target with ./gradlew (in particular, I want to build the "jar" target so I can make some changes, and use my version in Multiplatform, and then use that in FlutterBleLib...)

I get "maven plugin is deprecated...use the maven-publish plugin instead...kotlin-android-extensions is deprecated...use migration guide..."

I tried gradle 6.7.1 and 7.0.2. Here's the output of gradle --version:

Gradle 7.0.2
Build time: 2021-05-14 12:02:31 UTC
Revision: 1ef1b260d39daacbf9357f9d8594a8a743e2152e

Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.11 (Ubuntu 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OS: Linux 5.8.0-53-generic amd64

Alternatively, is there a way to build a jar file with Android Studio to then propagate up the chain? Or is there a way to maybe use the dex files produced by the AS build in Multi and Flutter?

My ultimate goal is a Flutter app...but I need to add a bit of my own Java code to Rx. I'm happy to do it, but if I can't compile, I'm out of luck...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug that is caused by the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions