在工程里添加支持库:
- Click on File, then select Project Structure
- Choose Modules "app"
- Click "Dependencies" tab
- Click on the + sign, choose Library Dependencies
- Select support-v4 or other libraries as needed
- OK
Project Structure菜单项里可以更改工程编译的各种信息,例如API版本
父控件设置
android:descendantFocusability="blocksDescendants"
子控件设置
android:focusable="false" android:clickable="false"
点击子控件会由父控件处理事件
使用adb:
cd D:\Android\sdk\platform-tools
adb pull或者adb push或者adb shell
进入SHELL后可以使用linux shell 命令。
am start -n com.yiying.myKTV/.MainActivity //启动应用
数据库调试:
adb push e:\mydbfile /data/data/mypkg/databases/mydbfile.db
adb shell
cd /data/data/mypkg/databases
chmod 777 mydbfile.db
chown myappid:myappgroupid mydbfile.db
改变系统时间:
setprop persist.sys.timezone GMT-8:00(我不知道为什么这里要设置减号,但是加号时间恰好往前退回8小时)
解决第三方库与项目共同依赖的版本库冲突:
implementation ("com.github.bumptech.glide:glide:4.6.1") {
exclude group: "com.android.support"
}