文章目录
兜兜转转,转转兜兜,还是回到从前。
前言
年少时,背起行囊,独自远行,只为了轻狂的傲气。
时隔数年,电脑面前端起茶杯,默默注视跳动的字符。
回想过往,似乎某天离开这个行业,消失如同水花,寂静,了然。
记录下,Android 历程中遇到的点滴问题吧,只为了,下次更快的处理~!
瞄准鸡老大~!biu~!
Let’s go.
1. Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
解决方案:
在 build.gradle 中添加如下:
android {
// ...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
// ...
}
2. Sourcetree remote: Invalid username or password
解决办法:
-
On OSX Sourcetree > Preferences > Git > Use System Git.
3. android:screenOrientation=“portrait” 一直警告报红
在 application 添加如下:
tool:ignore="LockedOrientationActivity"