Android Studio 4.1.2 编译 老项目 出现Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage

Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage().

The version of Gradle you connect to does not support that method.

To resolve the problem you can change/upgrade the target version of Gradle you connect to.

Alternatively

Android Studio unable to access android sdk add-on list

Android Studio unable to access android sdk add-on list

尝试1:设置代理(失败):

1、单击Setup Proxy。

2、HTTP Proxy。

选择Manual proxy configuration。

Host name:mirrors.neusoft.edu.cn

Port number:80

尝试2:安装SDK Tools(成功)。

1、安装。SDK Tools:installer_r24.4.1-windows.exe

2、运行SDK Manager.exe。

3、设置SDK位置。

Android BottomNavigationView java.lang.NoSuchFieldException: No field mShiftingMode

API27 BottomNavigationView通过反射控制setShiftingMode,升级到API28后出现java.lang.NoSuchFieldException: No field mShiftingMode。API28可以在布局文件增加app:labelVisibilityMode=”labeled”进行处理。

<android.support.design.widget.BottomNavigationView

android:id=”@+id/bnv”

Android Studio 无法预览xml布局视图 Failed to load AppCompat ActionBar with unknown error

Android Studio 无法预览xml布局视图 Failed to load AppCompat ActionBar with unknown error

Failed to load AppCompat ActionBar with unknown error

修改styles.xml,增加Base。

<resources>

<!– Base application theme. –>

<style name=”AppTheme” parent=”Base.Theme.AppCompat.Light”>

<!– Customize your theme here. –