java - Access Android Module Classes From Core Module Classes in libgdx -
i integrating (libgdx) core module
android module
compile whole project 1 big project. however, @ end of integration, ran problem didn't think before.
i not able access functions in android module
core module
. however, can access android core. used default libgdx setup.jar
create libgdx project android. tried include android module
dependency in core module
leads error stating error: circular reference between projects: :android -> :core -> :android
. thought why not make java module such another_module
depends on core module
, android module
depend on another_module
. doing led error stating error:module ':core:1.0' depends on 1 or more android libraries jar
. tried making another_module
java library
error same.
now sure there solution this. maybe making interface somehow in android module
core module
can access.
i new this. suggestions, recommendations or solution perhaps?
well after tons of research figured out solution problem. can solve problem of interfaces without touching gradle
part. have create interface in core module
, implement in class in android module
, pass class core module
through androidlauncher
.
for detailed details refer link
i won't delete post others facing problem can see post , not waste lot of time on trying fix gradle
.
Comments
Post a Comment