forked from qt-creator/qt-creator
Android: fix jdk path retreival on linux
Change-Id: I4303b5f5636dce0096ae73ef6229a579b7fee202 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -1604,7 +1604,8 @@ FilePath AndroidConfig::getJdkPath()
|
||||
jdkHome = FilePath::fromUtf8(jdkPath);
|
||||
} else {
|
||||
jdkPath.replace("bin/java", ""); // For OpenJDK 11
|
||||
jdkPath.replace("jre/bin/java", "");
|
||||
jdkPath.replace("jre", "");
|
||||
jdkPath.replace("//", "/");
|
||||
jdkHome = FilePath::fromUtf8(jdkPath);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user