Giter Site home page Giter Site logo

Comments (3)

princekin-f avatar princekin-f commented on July 21, 2024
  • 这是一个重载方法,在纯Java中确实报这个错,如果项目支持kotlin就正常;
  • 我很迷茫,正在想办法解决...

from easyfloat.

princekin-f avatar princekin-f commented on July 21, 2024

这个问题和Gradle版本有关,可能是方法重载时的特殊处理,导致的异常情况。

我们可以从下面几个方面着手:

  • 1,使用低版本Gradle构造工具,实测正常使用;
  • 2,为项目配置kotlin语言,Tools ->Kotlin ->Configure Kotlin in Project,实测正常使用;
  • 3,registerCallbacks不使用方法重载,使用两个不同的方法名,没有测试,但应该可以。

比较推荐方案2,毕竟我们早晚要入kotlin的坑...

from easyfloat.

fengzhous avatar fengzhous commented on July 21, 2024

感谢耐心解答,我项目使用了你这个库就好像必须配置Kotlin,所以应该是已经配置过Kotlin的,再按你2所说的步骤去配置点击提示:All moudules with Kotlin files are configured,但是还是会报这个错误,然后我修改了这个重构的方法名字,就可以了

from easyfloat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.