diff --git a/lib/services/android-project-service.ts b/lib/services/android-project-service.ts index f414ff45f3..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()(); } @@ -190,6 +194,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()(); }