Android Question b4x library with activities

hanyelmehy

Well-Known Member
Licensed User
Longtime User
According to

b4x library can use Code modules. All types are supported including activities and services.

when make b4x library and include this library in project when run this project get
Error compiling program.
Error description: The given key was not present in the dictionary.

when remake b4x library without activities ,it work fine
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm getting errors about missing types:

Unknown type: achievementincrementaltype<br />Are you missing a library reference?
Unknown type: gpgsleaderboard<br />Are you missing a library reference?
Unknown type: gpgsachievement<br />Are you missing a library reference?
Unknown type: gpgsachievementsclient<br />Are you missing a library reference?
Unknown type: gpgsplayersclient<br />Are you missing a library reference?
Unknown type: gpgsleaderboardsclient<br />Are you missing a library reference?
Unknown type: gpgsgamesclient<br />Are you missing a library reference?
Unknown type: gpgsgames<br />Are you missing a library reference?
Unknown type: gpgsplaygamesservice<br />Are you missing a library reference?
Unknown type: gpgsplayer<br />Are you missing a library reference?
 
Upvote 0

hanyelmehy

Well-Known Member
Licensed User
Longtime User
I'm getting errors about missing types:

Unknown type: achievementincrementaltype<br />Are you missing a library reference?
Unknown type: gpgsleaderboard<br />Are you missing a library reference?
Unknown type: gpgsachievement<br />Are you missing a library reference?
Unknown type: gpgsachievementsclient<br />Are you missing a library reference?
Unknown type: gpgsplayersclient<br />Are you missing a library reference?
Unknown type: gpgsleaderboardsclient<br />Are you missing a library reference?
Unknown type: gpgsgamesclient<br />Are you missing a library reference?
Unknown type: gpgsgames<br />Are you missing a library reference?
Unknown type: gpgsplaygamesservice<br />Are you missing a library reference?
Unknown type: gpgsplayer<br />Are you missing a library reference?
I removed some functions to make the code smaller, thinking that if they weren’t called, it wouldn’t cause any problems.
please check update
 

Attachments

  • Game2.b4xlib
    504 KB · Views: 72
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is the error I'm getting now:

Error occurred on line: 8 (GPLClass)
Type AchievementIncrementalType (AchievementId As String, CurrentSteps As Int, AchievementDescription As String, FormattedCurrentSteps As String, FormattedTotalSteps As String, LastUpdatedTimestamp As Long, AchievementName As String, Player As GPGSPlayer, RevealedImageUri As String, RevealedBitmap As Bitmap, State As Int, TotalSteps As Int, TypeOfAchievement As Int, UnlockedImageUri As String, UnlockedBitmap As Bitmap, XpValue As Long)

Your libraries depends on your project code. This isn't a bad thing but it makes it difficult to test it with a different project.

I don't think that it is worth chasing this. Move the activities out of the library.
 
Upvote 0
Top