Android Question B4A Beta Compiler errors

jimmyF

Active Member
Licensed User
Longtime User
Until now I am using the Google AppCompat v7 support library.
#Extends: android.support.v7.app.ActionBarActivity

The B4A SDK Manager shows it as being installed.

I now get this error when compiling.
Compiling generated Java code. Error
javac 1.8.0_131
src\bz\sef\TagItNotes\main.java:17: error: cannot find symbol
public class main extends android.support.v7.app.ActionBarActivity implements B4AActivity{
^
symbol: class ActionBarActivity
location: package android.support.v7.app
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: src\bz\sef\TagItNotes\statemanager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error

Any help would be appreciated.
Thanks
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
Thanks for your response.
I HAVE followed those tutorials and I have had this working very well for quite a few months.
It was only since I installed the Beta version 7.80 that I had this error.
 
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
Thank you Peter. Works fine now.
Very much appreciated! :)
Is this documented somewhere?
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Thank you Peter. Works fine now.
Very much appreciated! :)
Is this documented somewhere?

Yes it's documented in the first post in the first link that @DonManfred posted above.

A quote by @corwin42 in that post using the link.
To use the AppCompat library your activities MUST extend android.support.v7.app.AppCompatActivity (extending the old android.support.v7.app.ActionBarActivity still works.)

Enjoy...
 
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
Interesting...
Originally, I simply copied and pasted this value from the sample code attached to the tutorial.

B4X:
#Extends: android.support.v7.app.ActionBarActivity

And it has worked until now.
EDIT: Okay, Now I see that note that was attached.
 
Upvote 0
Top