原文地址:http://fzhiy.com/android/207.html

http://openstorage.gunadarma.ac.id/android/sdk/sdk_310712/tools/traceview.bat

@echo offrem Copyright (C) 2007 The Android Open Source Projectremrem Licensed under the Apache License, Version 2.0 (the "License");rem you may not use this file except in compliance with the License.rem You may obtain a copy of the License atremrem      http://www.apache.org/licenses/LICENSE-2.0remrem Unless required by applicable law or agreed to in writing, softwarerem distributed under the License is distributed on an "AS IS" BASIS,rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.rem See the License for the specific language governing permissions andrem limitations under the License.rem don't modify the caller's environmentsetlocalrem Set up prog to be the path of this script, including following symlinks,rem and set up progdir to be the fully-qualified pathname of its directory.set prog=%~f0rem Change current directory and drive to where the script is, to avoidrem issues with directories containing whitespaces.cd /d %~dp0rem Check we have a valid Java.exe in the path.set java_exe=call lib\find_java.batif not defined java_exe goto :EOFset jarfile=traceview.jarset frameworkdir=if exist %frameworkdir%%jarfile% goto JarFileOk    set frameworkdir=lib\if exist %frameworkdir%%jarfile% goto JarFileOk    set frameworkdir=..\framework\:JarFileOkset jarpath=%frameworkdir%%jarfile%if not defined ANDROID_SWT goto QueryArch    set swt_path=%ANDROID_SWT%    goto SwtDone:QueryArch    for /f %%a in ('%java_exe% -jar %frameworkdir%archquery.jar') do set swt_path=%frameworkdir%%%a:SwtDoneif exist %swt_path% goto SetPath    echo SWT folder '%swt_path%' does not exist.    echo Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.    exit /B:SetPathset javaextdirs=%swt_path%;%frameworkdir%call %java_exe% -Djava.ext.dirs=%javaextdirs% -Dcom.android.traceview.toolsdir= -jar %jarpath% %*

或者直接去http://tools.android-studio.org/index.php/sdk下载SDK更换

更多相关文章

  1. Android(安卓)复习笔记之图解Actionbar
  2. Android获取当前WiFi的MAC地址-适配所有版本
  3. Uyghur Android
  4. Android(安卓)Socket 发送广播包的那些坑
  5. Android(安卓)Socket 发送广播包的那些坑
  6. android sdk 下载地址
  7. 【Android】Android(安卓)SDK在线更新镜像服务器
  8. android几种开源项目源码地址
  9. android sdk 下载地址

随机推荐

  1. Android 如何自定义View?
  2. Android根据包名取得指定程序包的信息(名
  3. android ViewPager滑动欢迎界面
  4. Android热修复(微信tinker的集成)
  5. Android - 手机开发调试无法输出logcat信
  6. Android Studio 运行java程序
  7. Android 搜索 把软键盘上的回车键改为搜
  8. Android笔试的一部分知识点
  9. Android通信方式篇(四)-Binder机制(开篇)
  10. Android之网络请求8————OkHttp源码5: