Try to search your question here, if you can't find : Ask Any Question Now ?

android studio 3.1: build:gradle:3.1.0 – Absolute path are not supported when setting an output file name

HomeCategory: stackoverflowandroid studio 3.1: build:gradle:3.1.0 – Absolute path are not supported when setting an output file name
kundan asked 1 week ago

When I use Android Studio 3.0 and I use the next version of build:gradle in project/build.gradle:

classpath 'com.android.tools.build:gradle:3.0.1'

And it’s work fine.
After I update to Android Studio 3.1 , as result I update build:gradle :

classpath 'com.android.tools.build:gradle:3.1.0'

And now I get error in my app/build.gradle:

def releaseFileName = "${rootProject.name}_${defaultConfig.versionName}.apk"
outputFileName = new File(rootProject.projectDir.absolutePath + "/release", releaseFileName.toLowerCase())

Error:

Absolute path are not supported when setting an output file name

I need to put output apk (app-release.apk) in specific path in project. In folder MyProject/release/app-relese.apk. How I can do this?

1 Answers
Best Answer
Fernando answered 1 week ago
Your Answer

2 + 3 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com