forked from qt-creator/qt-creator
Fix Android debugging
- gatherFilesToPull depends on AndroidManager::setDeviceAbis - use the same path for app_process. gatherFilesToPull pulls app_process to AndroidManager::buildDirectory(target) which might be different than activeRunConfig->buildTargetInfo().workingDirectory. Change-Id: Id47c4380fed5a8b3ad922359e5f9f25e529bacff Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
BogDan Vatra
parent
146f59e808
commit
aaf2318a19
@@ -140,10 +140,10 @@ void AndroidDebugSupport::start()
|
||||
solibSearchPath.append(qtVersion->qtSoPaths());
|
||||
solibSearchPath.append(uniquePaths(extraLibs));
|
||||
|
||||
FilePath buildDir = AndroidManager::buildDirectory(target);
|
||||
const RunConfiguration *activeRunConfig = target->activeRunConfiguration();
|
||||
FilePath buildDir;
|
||||
if (activeRunConfig)
|
||||
buildDir = activeRunConfig->buildTargetInfo().workingDirectory;
|
||||
solibSearchPath.append(activeRunConfig->buildTargetInfo().workingDirectory.toString());
|
||||
solibSearchPath.append(buildDir.toString());
|
||||
solibSearchPath.removeDuplicates();
|
||||
setSolibSearchPath(solibSearchPath);
|
||||
|
@@ -213,12 +213,12 @@ bool AndroidDeployQtStep::init()
|
||||
m_serialNumber = info.serialNumber;
|
||||
qCDebug(deployStepLog) << "Selected device info:" << info;
|
||||
|
||||
gatherFilesToPull();
|
||||
|
||||
AndroidManager::setDeviceSerialNumber(target(), m_serialNumber);
|
||||
AndroidManager::setDeviceApiLevel(target(), info.sdk);
|
||||
AndroidManager::setDeviceAbis(target(), info.cpuAbi);
|
||||
|
||||
gatherFilesToPull();
|
||||
|
||||
emit addOutput(tr("Deploying to %1").arg(m_serialNumber), OutputFormat::NormalMessage);
|
||||
|
||||
m_uninstallPreviousPackageRun = m_uninstallPreviousPackage->value();
|
||||
|
Reference in New Issue
Block a user