簡體   English   中英

Android ADB無法在Windows 8.1上將APK安裝到Nexus 5

[英]Android ADB fails to install APK to Nexus 5 on Windows 8.1

我試圖通過ADB安裝APK到Nexus 5,但它總是給我以下錯誤:

Unrecognized option -Xlog-stdio
dalvikvm: [options] class [argument ...]

The following standard options are supported:
  -classpath classpath (-cp classpath)
  -Dproperty=value
  -verbose:tag ('gc', 'jni', or 'class')
  -showversion
  -help
  -agentlib:jdwp=options

The following extended options are supported:
  -Xrunjdwp:<options>
  -Xbootclasspath:bootclasspath
  -Xcheck:tag  (e.g. 'jni')
  -XmsN (min heap, must be multiple of 1K, >= 1MB)
  -XmxN (max heap, must be multiple of 1K, >= 2MB)
  -XssN (stack size)
  -Xint

The following Dalvik options are supported:
  -Xzygote
  -Xjnitrace:substring (eg NativeClass or nativeMethod)
  -Xstacktracefile:<filename>
  -Xgc:[no]preverify
  -Xgc:[no]postverify
  -XX:+DisableExplicitGC
  -XX:HeapGrowthLimit=N
  -XX:HeapMinFree=N
  -XX:HeapMaxFree=N
  -XX:NonMovingSpaceCapacity=N
  -XX:HeapTargetUtilization=doublevalue
  -XX:ForegroundHeapGrowthMultiplier=doublevalue
  -XX:LowMemoryMode
  -Xprofile:{threadcpuclock,wallclock,dualclock}

The following unique to ART options are supported:
  -Xgc:[no]preverify_rosalloc
  -Xgc:[no]postsweepingverify_rosalloc
  -Xgc:[no]postverify_rosalloc
  -Xgc:[no]presweepingverify
  -Ximage:filename
  -XX:ParallelGCThreads=integervalue
  -XX:ConcGCThreads=integervalue
  -XX:MaxSpinsBeforeThinLockInflation=integervalue
  -XX:LongPauseLogThreshold=integervalue
  -XX:LongGCLogThreshold=integervalue
  -XX:DumpGCPerformanceOnShutdown
  -XX:IgnoreMaxFootprint
  -XX:UseTLAB
  -XX:BackgroundGC=none
  -Xmethod-trace
  -Xmethod-trace-file:filename  -Xmethod-trace-file-size:integervalue
  -Xenable-profiler
  -Xprofile-filename:filename
  -Xprofile-period:integervalue
  -Xprofile-duration:integervalue
  -Xprofile-interval:integervalue
  -Xprofile-backoff:doublevalue
  -Xprofile-start-immediately
  -Xprofile-top-k-threshold:doublevalue
  -Xprofile-top-k-change-threshold:doublevalue
  -Xprofile-type:{method,stack}
  -Xprofile-max-stack-depth:integervalue
  -Xcompiler:filename
  -Xcompiler-option dex2oat-option
  -Ximage-compiler-option dex2oat-option
  -Xpatchoat:filename
  -X[no]relocate
  -X[no]dex2oat (Whether to invoke dex2oat on the application)
  -X[no]image-dex2oat (Whether to create and use a boot image)

The following previously supported Dalvik options are ignored:
  -ea[:<package name>... |:<class name>]
  -da[:<package name>... |:<class name>]
   (-enableassertions, -disableassertions)
  -esa
  -dsa
   (-enablesystemassertions, -disablesystemassertions)
  -Xverify:{none,remote,all}
  -Xrs
  -Xint:portable, -Xint:fast, -Xint:jit
  -Xdexopt:{none,verified,all,full}
  -Xnoquithandler
  -Xjniopts:{warnonly,forcecopy}
  -Xjnigreflimit:integervalue
  -Xgc:[no]precise
  -Xgc:[no]verifycardtable
  -X[no]genregmap
  -Xverifyopt:[no]checkmon
  -Xcheckdexsum
  -Xincludeselectedop
  -Xjitop:hexopvalue[-endvalue][,hexopvalue[-endvalue]]*
  -Xincludeselectedmethod
  -Xjitthreshold:integervalue
  -Xjitcodecachesize:decimalvalueofkbytes
  -Xjitblocking
  -Xjitmethod:signature[,signature]* (eg Ljava/lang/String\;replace)
  -Xjitclass:classname[,classname]*
  -Xjitoffset:offset[,offset]
  -Xjitconfig:filename
  -Xjitcheckcg
  -Xjitverbose
  -Xjitprofile
  -Xjitdisableopt
  -Xjitsuspendpoll
  -XX:mainThreadStackSize=N

Nexus 5運行的是Android 5.0.1,而ADB(v1.0.32)運行在Windows 8.1上。 USB驅動程序也是最新的。 我已經嘗試過不同的USB驅動程序和端口,但它們都不起作用。

您已激活stdio重定向。

要禁用它,請運行以下命令(也由grattmandu03編寫):

adb shell stop
adb shell setprop log.redirect-stdio false
adb shell start

然后再次運行安裝。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM