Skip to content

Commit 7c20483

Browse files
author
Mihail Slavchev
committed
fix bug when library folder contain *.jar file(s) and other non-project folders
1 parent d5faecf commit 7c20483

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/services/android-project-service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,10 @@ class AndroidProjectService implements IPlatformProjectService {
246246

247247
var targetLibPath = path.join(targetPath, path.basename(libraryPath));
248248

249-
this.updateProjectReferences(platformData.projectRoot, targetLibPath);
249+
var libProjProp = path.join(libraryPath, "project.properties");
250+
if (this.$fs.exists(libProjProp).wait()) {
251+
this.updateProjectReferences(platformData.projectRoot, targetLibPath);
252+
}
250253
}).future<void>()();
251254
}
252255

0 commit comments

Comments
 (0)