Skip to content

Commit c311316

Browse files
Fix build for Android with custom platform template
When you use custom platform template, we still need build-tools dir from the runtime. Copy it no matter of the platform template.
1 parent 6d7c284 commit c311316

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)