diff --git a/lib/services/android-project-service.ts b/lib/services/android-project-service.ts index aa4b9e500f..99ab6a0dfc 100644 --- a/lib/services/android-project-service.ts +++ b/lib/services/android-project-service.ts @@ -243,6 +243,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService let libProjProp = path.join(libraryPath, "project.properties"); if (this.$fs.exists(libProjProp).wait()) { this.updateProjectReferences(this.platformData.projectRoot, targetLibPath).wait(); + this.runAndroidUpdate(targetLibPath, this.getTarget(this.platformData.projectRoot).wait()).wait(); } }).future()(); } diff --git a/lib/services/plugins-service.ts b/lib/services/plugins-service.ts index 6377e5c00f..cd73e34466 100644 --- a/lib/services/plugins-service.ts +++ b/lib/services/plugins-service.ts @@ -184,7 +184,7 @@ export class PluginsService implements IPluginsService { let pluginData: any = {}; pluginData.name = cacheData.name; pluginData.version = cacheData.version; - pluginData.fullPath = path.dirname(this.getPackageJsonFilePathForModule(cacheData.name)); + pluginData.fullPath = cacheData.directory || path.dirname(this.getPackageJsonFilePathForModule(cacheData.name)); pluginData.isPlugin = !!cacheData.nativescript; pluginData.pluginPlatformsFolderPath = (platform: string) => path.join(pluginData.fullPath, "platforms", platform);