Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在命令行中编写时javap -s java.awt.Label,我成功获得了Label. 现在我想获取 Android Activity 类的签名。但如果我写javap -s android.app.activity它会导致ERROR: Could not find android.app.activity.
javap -s java.awt.Label
Label
javap -s android.app.activity
ERROR: Could not find android.app.activity
我究竟做错了什么?我应该更改 PATH env var 中的某些内容还是什么?
转到您的应用程序目录,然后
javap -s -classpath bin/classes com.example.myActivity
编辑
为 Android 核心类添加bootclasspath
bootclasspath
javap -s -bootclasspath /opt/android-sdk/platforms/android-8/android.jar -classpath bin/classes android.app.Activity