Rather than modify your application code, you can avoid this bug by patching your Android SDK's source code.
When you come across the getClass() error, go to the declaration of the method (⌘B on Mac). This will navigate to $ANDROID_HOME/sources/android-DD/java/lang/Object.java. From within IntelliJ, make the following edit which removes the unbounded wildcard:
// Removed unbounded wildcard (Class<?>) to avoid http://youtrack.jetbrains.com/issue/IDEA-72835
public final native Class getClass();
(If you do this from within IntelliJ, you may be prompted to remove the Read-Only flag from the Object.java file.)
reference:
http://stackoverflow.com/questions/18505973/android-studio-ambiguous-method-call-getclass
分享到:
相关推荐
本插件适用 Intellij IDEA 和 Android Studio 等工具 安装方法: 1、下载源码 2、然后编译插件,最后在build文件夹下找到distributions,里面的zip就是插件(不要解压!不要解压!不要解压! 3、安装插件(Settings ...
vscode-intellij-idea-keybindings, vs 代码的IntelliJ IDEA 键绑定端口 用于 Visual Studio 代码的 IntelliJ IDEA 键绑定 vs 代码的IntelliJ IDEA 键绑定端口。 包括 keymaps,WebStorm,PyCharm,PHP Storm等流行...
IntelliJ IDEA是java编程语言开发的集成环境,不过官方是英文版的,这是一个汉化包,下载后放至IntelliJ IDEA安装目录的lib目录下就行,重新启动程序就是中文了。
[操作系统]使用IntelliJ IDEA 13搭建Android集成开发环境(图文教程)
图解Intellij IDEA 入门教程,简单看得见,轻轻松松成为java开发高手
永久解决 Intellij idea 报错-Error -java 不支持发行版本5的问题.docx
IntelliJ IDEA 中文指南
史上最简单的 IntelliJ IDEA 教程
resources_cn_IntelliJIDEA_2017.3.1_r2.jar resources_cn_IntelliJIDEA_2017.3.2_r1.jar resources_cn_IntelliJIDEA_2017.3.3_r2.jar resources_cn_IntelliJIDEA_2017.3.4_r1.jar resources_...
IntelliJ IDEA 2020.1.4 x64官方
A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development. The following commands are provided: Uninstall App Kill App Start App Restart App Clear App Data ...
idea使用教程 IntelliJ IDEA 使用教程 ,IntelliJ IDEA 使用教程
IntelliJ IDEA安装详解配置教程
在 IntelliJ IDEA 中配置 Tomcat 服务器是为了能够在开发过程中部署和运行您的 Java Web 应用程序。下面是配置 Tomcat 的基本步骤: 下载和安装 Tomcat: 首先,您需要从 Apache Tomcat 的官方网站...
catdea插件旨在将android logcat日志条目与发出它们的源代码相匹配,
Intellij IDEA汉化包。支持最新版本2018.直接复制lib即可。file-seting可用。 设置下菜单可正常打开。
保存动作Groovy脚本IntelliJ IDEA / Android Studio插件 这个IntelliJ IDEA / Android Studio插件允许用户在保存/同步文件时自动运行自定义的Groovy脚本。 支持任何有效的Groovy脚本; 此外,该插件还公开了一个简单...
IntelliJ IDEA + PHP插件 ,
1.IntelliJ IDEA 介绍 2.本教程介绍 3.Windows 下安装 4.Ubuntu 下安装 5.Mac 下安装 6.安装总结 7.首次运行 8.安装目录讲解 9.界面讲解 10.主题字体和文件编码修改 11.各类文件类型图标讲解 12.索引的讲解 13.编译...