File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/flutter_tools/gradle/src/main/groovy Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1423,15 +1423,15 @@ class FlutterPlugin implements Plugin<Project> {
14231423 filename + = " -${ buildModeFor(variant.buildType)} "
14241424 project. copy {
14251425 from new File (" $outputDirectoryStr /${ output.outputFileName} " )
1426- into new File (" ${ project.buildDir } / outputs/flutter-apk" )
1426+ into new File (" ${ project.layout.buildDirectory.dir(" outputs/flutter-apk").get() } " )
14271427 rename {
14281428 return " ${ filename} .apk"
14291429 }
14301430 }
14311431 }
14321432 }
14331433 // Copy the native assets created by build.dart and placed here by flutter assemble.
1434- String nativeAssetsDir = " ${ project.buildDir } /.. /native_assets/android/jniLibs/lib/"
1434+ String nativeAssetsDir = " ${ project.layout.buildDirectory.dir(".. /native_assets/android/jniLibs/lib").get() } /"
14351435 project. android. sourceSets. main. jniLibs. srcDir(nativeAssetsDir)
14361436 }
14371437 configurePlugins(project)
You can’t perform that action at this time.
0 commit comments