简体   繁体   中英

Android - Run ADB push command with whitespace's

I am trying to run an ADB command from HERE-Maps Documentation page which says,

adb push voices /sdcard/Android/data/{YourAppNamespace}/files/voices-download

In above command the "{YourAppNamespace}" is the app name, In my case my app name is separated by a white space like Google<space>Now So if i am passing my application name with white space in between command is giving error because there's a white space in between. How can I resolve it? Am I passing correct name? I copied my app_name from res/strings.xml

当命令中包含空格时,您需要添加“”引号:

adb push voices "/sdcard/Android/data/{YourAppNamespace}/files/voices-download"

You are getting confused with app-name and app-namespace

AppNameSpace : Application namespace is an object placed either directly in the global scope or on some other object as a property, holding all code and data making up the application.

The purpose of the application namespace is to

a) have the application form a single logical unit, and

b) avoid collision with 3rd party code such as libraries and frameworks.

More info here .

so logically it should be name-space of your XML:

xmlns:android="http://schemas.android.com/apk/res/android"

or

xmlns:app="http://schemas.android.com/apk/res-auto"

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM