原文地址: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获取当前WiFi的MAC地址-适配所有版本
  2. android几种开源项目源码地址
  3. android sdk 下载地址
  4. android google地图定位开发,且可以自由移动位置重新获取定位,地址
  5. Android SDK和最新ADT下载地址 + 环境搭建
  6. Android2.2 官方下载地址

随机推荐

  1. Android初级教程_获取Android控件的宽和
  2. Android(安卓)Camera图像处理学习
  3. android提示:应用程序xx(进程:xxx.xxx.xxx)意
  4. Android游戏开发之旅三 View类详解
  5. android源码编译报错:prebuilts/misc/linu
  6. Android(安卓)开发知识体系
  7. Android中万能的BaseAdapter的使用
  8. android 完全退出实现
  9. Android的Log捕获与有效性验证及异常初步
  10. Android(安卓)UI开发第八篇——ViewFlipp