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:[url]http://stackoverflow.com/questions/18505973/android-studio-ambiguous-method-call-getclass[/url]

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)Junit单元测试
  2. Android arm linux kernel启动流程(一)
  3. 探究android:largeHeap
  4. Debug Android and Linux suspend and re
  5. Android重要类学习之——Activity
  6. Android 根文件系统启动过程(init进程 详
  7. Android实现图片选择器功能
  8. 18、不同平台版本
  9. 浅析Android事件分发
  10. Android 音视频深入 七 学习之路的总结和