P Penko Active Member Licensed User Longtime User Feb 29, 2012 #1 Hello! I was compiling my project just fine in "Release" mode. I've decided to check how the Debugger works and I am unable to compile my project anymore(unless I change back to "Release"). Here is the compile error I get: Compiling code. 0.01 Generating R file. 0.00 Compiling generated Java code. Error javac 1.6.0_23 src\com\mitev\test\newlie\main.java:311: cannot find symbol symbol : variable previousOne location: class android.app.Activity Activity a = a.previousOne.get(); ^ 1 error Click to expand... I think it's not important to upload the entire source code as I can explain it in a very simple manner: I have 5 different activities (screens) -> Main, a, b, c, d I have arrow buttons <== and ==> to move from 1 do 5 I am doing the transition on Click events of the buttons like this: Code: Sub btnBack_Click StartActivity(a) // this changes in the other Activities similarly End Sub I was not sure what is the right way to do StartActivity to another Activity of mine and assumed that I have to pass the name of Activity Module(I assumed these variables are defined automatically) Please correct me if this is not the way to load another Activity of mine. I do believe it's a correct syntax as I successfully move through the Activities on my real device but it breaks when trying to use "Debug" mode. Edit: I commented all my code out and the compiler error still pops up. I believe I have to upload my source code now. Attachments test_proj.zip test_proj.zip 9.5 KB · Views: 321 Last edited: Feb 29, 2012
Hello! I was compiling my project just fine in "Release" mode. I've decided to check how the Debugger works and I am unable to compile my project anymore(unless I change back to "Release"). Here is the compile error I get: Compiling code. 0.01 Generating R file. 0.00 Compiling generated Java code. Error javac 1.6.0_23 src\com\mitev\test\newlie\main.java:311: cannot find symbol symbol : variable previousOne location: class android.app.Activity Activity a = a.previousOne.get(); ^ 1 error Click to expand... I think it's not important to upload the entire source code as I can explain it in a very simple manner: I have 5 different activities (screens) -> Main, a, b, c, d I have arrow buttons <== and ==> to move from 1 do 5 I am doing the transition on Click events of the buttons like this: Code: Sub btnBack_Click StartActivity(a) // this changes in the other Activities similarly End Sub I was not sure what is the right way to do StartActivity to another Activity of mine and assumed that I have to pass the name of Activity Module(I assumed these variables are defined automatically) Please correct me if this is not the way to load another Activity of mine. I do believe it's a correct syntax as I successfully move through the Activities on my real device but it breaks when trying to use "Debug" mode. Edit: I commented all my code out and the compiler error still pops up. I believe I have to upload my source code now.
Erel B4X founder Staff member Licensed User Longtime User Feb 29, 2012 #2 The problem happens because of the module named 'a'. It causes a conflict in the debugging. It will be fixed. Upvote 0
The problem happens because of the module named 'a'. It causes a conflict in the debugging. It will be fixed.
P Penko Active Member Licensed User Longtime User Feb 29, 2012 #3 Erel, it was for test purposes only, I'd never call it in a so inevitable way. For now I'll just rename my module. Edit: Erel, no "rename" functionality? Last edited: Feb 29, 2012 Upvote 0
Erel, it was for test purposes only, I'd never call it in a so inevitable way. For now I'll just rename my module. Edit: Erel, no "rename" functionality?