Skip to content

Commit 03abe73

Browse files
ifsnowthymikee
authored andcommitted
fix: modify wrong install arguments (#337)
1 parent 1249aa9 commit 03abe73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/commands/runAndroid/runAndroid.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ function tryInstallAppOnDevice(args, adbPath, device) {
167167
);
168168

169169
const pathToApk = `${buildDirectory}/${apkFile}`;
170-
const adbArgs = ['-s', device, 'install', '-rd', pathToApk];
170+
const adbArgs = ['-s', device, 'install', '-r', '-d', pathToApk];
171171
logger.info(
172-
`Installing the app on the device (cd android && adb -s ${device} install -rd ${pathToApk}`,
172+
`Installing the app on the device (cd android && adb -s ${device} install -r -d ${pathToApk}`,
173173
);
174174
execFileSync(adbPath, adbArgs, {
175175
stdio: [process.stdin, process.stdout, process.stderr],

0 commit comments

Comments
 (0)