Error when Compiling

uknut

New Member
Licensed User
Longtime User
When i try to Compiling after i have added a 2. activity thru the menu i get the following error message:


Parsing code. 0.00
Compiling code. 0.03
Compiling layouts code. 0.00
Generating R file. 0.08
Compiling generated Java code. Error
javac 1.7.0_17
src\order\varebestilling2\main.java:237: error: cannot find symbol
public order.varebestilling2.order _order = null;
^
symbol: class varebestilling2
location: class order
1 error

If i remove the 2. activity the error message goes away
I have tryed to find reffrence to the error on the forums

best reg
uKnut
 

Attachments

  • Order.zip
    9.7 KB · Views: 199

PenguinHero

Member
Licensed User
Longtime User
Hi uknut,

I'm a novice at this stuff, and I've never used the AHPreferenceActivity library before...

But, I found if I renamed your Module from Order to AnOrder, your initial error went away. Perhaps you used a reserved word? I had to change the StartActivity too.

But when I tried to compile your program after that I got a different error. I can only take a wild guess that they way you changed the example program for the library is wrong.
I noticed that you declare a variable called intentScreen that you never reference (not even initialise) but the equivalent variable in the library example program is used extensively.

Sorry I couldn't be of more help - perhaps we'll leave this to one of the B4A experts.. :)
 
Upvote 0

dxxxyyyzzz

Member
Licensed User
Longtime User
PenguinHero is right.
Beside renaming second activity you should remove a checkmark on PreferenceActivity.

Also in manifest editor check spelling error:
AddPermission("android.permission.ACCESS_NETWORK_S TATE")
 
Upvote 0

uknut

New Member
Licensed User
Longtime User
Thanks for help

thank for the feedback
have writen the code one more time in a new file and deleted the old files so it woking now
 
Upvote 0
Top