From 9be124ae4157c0cea608f346d8c7ca83010256eb Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Mon, 7 Sep 2015 15:35:44 +0300 Subject: [PATCH 1/2] Fix path to .apk file when building ant project --- lib/services/android-project-service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/services/android-project-service.ts b/lib/services/android-project-service.ts index f414ff45f3..aa976b2b50 100644 --- a/lib/services/android-project-service.ts +++ b/lib/services/android-project-service.ts @@ -190,6 +190,8 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService let args = this.getAntArgs(this.$options.release ? "release" : "debug", projectRoot); this.spawn('ant', args).wait(); + + this.platformData.deviceBuildOutputPath = path.join(this.platformData.projectRoot, "bin"); } }).future()(); } From c729a2af792781cf4e09235f200c24ec022ffbf8 Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Mon, 7 Sep 2015 15:42:32 +0300 Subject: [PATCH 2/2] Fix path to res folder when old ant template is built for first time --- lib/services/android-project-service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/services/android-project-service.ts b/lib/services/android-project-service.ts index aa976b2b50..16a411f6cc 100644 --- a/lib/services/android-project-service.ts +++ b/lib/services/android-project-service.ts @@ -63,7 +63,11 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService public getAppResourcesDestinationDirectoryPath(): IFuture { return (() => { - return path.join(this.platformData.projectRoot, "src", "main", "res"); + if(this.canUseGradle().wait()) { + return path.join(this.platformData.projectRoot, "src", "main", "res"); + } + + return path.join(this.platformData.projectRoot, "res"); }).future()(); }