文章目錄
兜兜轉轉,轉轉兜兜,還是回到從前。
前言
年少時,背起行囊,獨自遠行,只爲了輕狂的傲氣。
時隔數年,電腦面前端起茶杯,默默注視跳動的字符。
回想過往,似乎某天離開這個行業,消失如同水花,寂靜,瞭然。
記錄下,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"