Skip to content

Commit 109b799

Browse files
Merge pull request #1749 from NativeScript/vladimirov/fix-android-builds
Fix build for Android with custom platform template
2 parents 6d7c284 + c311316 commit 109b799

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/android-project-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
128128
this.$fs.createDirectory(mainPath).wait();
129129
shell.cp("-R", path.join(path.resolve(pathToTemplate), "*"), mainPath);
130130
} else {
131-
this.copy(this.platformData.projectRoot, frameworkDir, "src build-tools", "-R");
131+
this.copy(this.platformData.projectRoot, frameworkDir, "src", "-R");
132132
}
133-
this.copy(this.platformData.projectRoot, frameworkDir, "build.gradle settings.gradle gradle.properties", "-f");
133+
this.copy(this.platformData.projectRoot, frameworkDir, "build.gradle settings.gradle gradle.properties build-tools", "-Rf");
134134

135135
if (this.useGradleWrapper(frameworkDir)) {
136136
this.copy(this.platformData.projectRoot, frameworkDir, "gradle", "-R");

0 commit comments

Comments
 (0)