File tree 1 file changed +2
-2
lines changed
packages/flutter_tools/gradle/src/main/groovy 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> {
1423
1423
filename + = " -${ buildModeFor(variant.buildType)} "
1424
1424
project. copy {
1425
1425
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() } " )
1427
1427
rename {
1428
1428
return " ${ filename} .apk"
1429
1429
}
1430
1430
}
1431
1431
}
1432
1432
}
1433
1433
// 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() } /"
1435
1435
project. android. sourceSets. main. jniLibs. srcDir(nativeAssetsDir)
1436
1436
}
1437
1437
configurePlugins(project)
You can’t perform that action at this time.
0 commit comments