Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

Erros while trying to update to version 3.65.6 2 years 4 months ago #15659

  • devit9ar
  • devit9ar's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 34
  • Thank you received: 0
After I downloaded the new version with the checkbox fix (3.65.6), I can't compile my project.
A lot of 'local variable [variable] is accessed from within inner class; needs to be declared final' started to pop up. If I try to change the variable to `final`, more errors with
the same message in other classes appear, and so forth.
Can you guys check if this version is ok? Comparing to my current local version, those properties and variables are declared final in my currento ViewLib.

 
Attachments:

Please Log in or Create an account to join the conversation.

Erros while trying to update to version 3.65.6 2 years 4 months ago #15660

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
dear user:
this issue shall relate to java version.
compiling on our side are all OK.
if you are still facing this issue, please declare tPath/vGrid/vRecent/vFiles as class member of PDFMainAct class.
example:
private RDGridView m_vGrid;
private TextView m_tPath;
private void initNavigate()
{
    m_vGrid = m_lay_navigate.findViewById(R.id.vw_grid);
    m_tPath = m_lay_navigate.findViewById(R.id.txt_path);
[code]...
[/code]

 

Please Log in or Create an account to join the conversation.

Last edit: by radaee.

Erros while trying to update to version 3.65.6 2 years 4 months ago #15661

  • devit9ar
  • devit9ar's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 34
  • Thank you received: 0
I think that if I make that correction, more erros will appear. If I use the same version as yours, I think it'll be easier.
What Java version are you guys using to compile?

Please Log in or Create an account to join the conversation.

Erros while trying to update to version 3.65.6 2 years 4 months ago #15662

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
dear user:
we using java that Android Studio auto download
it is openjdk 11.0.10
details as below:
D:\Tools\dev\Android\Studio\jre\bin>java -version
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
OpenJDK 64-Bit Server VM (build 11.0.10+0-b96-7249189, mixed mode)

Please Log in or Create an account to join the conversation.

Erros while trying to update to version 3.65.6 2 years 4 months ago #15663

  • devit9ar
  • devit9ar's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 34
  • Thank you received: 0
I see...
That's odd. I'm using the same version, but I'm using the oracle jdk.
I'ts been a while the last time we updated our project with Radaee. Everytime you guys released a patch, I just had to put
the license info in the global.java file and the project was ready to go.
 

Please Log in or Create an account to join the conversation.

Erros while trying to update to version 3.65.6 2 years 4 months ago #15664

  • devit9ar
  • devit9ar's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 34
  • Thank you received: 0
I actually tried to use the same Java version as yours(mine was oracle jdk 8), just out of curiosity. It didn't work.
The compiler still complains a lot about those inner classes access.
There's a printscreen of the same code in an older version. It used to be different.
There's a lot of breaking changes.
I need some support on that. We need to publish the apk with the checkbox correction.
And I tried the 3.65.7. Same result.
Attachments:

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum