Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Error AGP 3.6.0-beta01 #164

Open
cdsap opened this issue Oct 14, 2019 · 5 comments
Open

Error AGP 3.6.0-beta01 #164

cdsap opened this issue Oct 14, 2019 · 5 comments

Comments

@cdsap
Copy link

cdsap commented Oct 14, 2019

Hi, thanks for this great tool!
I'm updating the AGP to 3.6.0-beta01 and I'm getting an error when I'm applying the plugin. I'm reporting the problem to Android too, but just let you know.

Conf 1:

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        mavenCentral()
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.0-beta01'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41"
        classpath 'com.shazam.fork:fork-gradle-plugin:3.10.0'
    }
}

Result:

Caused by: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.io.File(org.gradle.api.internal.file.DefaultFilePropertyFactory$DefaultDirectoryVar, String)

Conf 2:

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        mavenCentral()
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41"
        classpath 'com.shazam.fork:fork-gradle-plugin:3.10.0'
    }
}

Result: OK

@cdsap
Copy link
Author

cdsap commented Oct 15, 2019

Looks like the change on AGP 3.6 with getOutputDirectory() is causing the directory.
I tried locally:
application.outputDirectory.asFile.get() for getApkFileFromPackageAndroidArtifact and seems is working.
Let me know if you want I open a PR

@iordanis
Copy link
Member

iordanis commented Oct 16, 2019 via email

@aleksei-sivkov
Copy link

Any progress on it? AGP 3.6.0 has released, but issues is still actual

@aleksei-sivkov
Copy link

@iordanis maybe you could help us to resolve such issue?

@belewis05
Copy link

belewis05 commented May 12, 2020

@cdsap @aleksei-sivkov This should have resolved it c794846

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants