Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Android gradle plugin 3.0.0-alpha1 fails in squidb-android #277

@Aranda

Description

@Aranda

When processing squidb-android/build.gradle using the new gradle plugin, we get Gradle sync failed: Not valid. on this block:

    libraryVariants.all { variant ->
        variant.outputs.each { output ->
            // THIS LINE FAILS
            def outputFile = output.outputFile
            if (outputFile != null && outputFile.name.endsWith('.aar')) {
                def fileName = "${archivesBaseName}-${version}.aar"
                output.outputFile = new File(outputFile.parent, fileName)
            }
        }
    }

Looks like using outputFile is not supported: https://developer.android.com/studio/preview/features/new-android-plugin-migration.html#variant_api

For our purposes (cross platform compilation), can I safely remove this block? Doing so seems to compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions