Android Question Error with ActionBar after 7.8 upgrade

dealsmonkey

Active Member
Licensed User
Longtime User
Hi All and happy New Year.

I have done an upgrade to V 7.80 and am now getting the following error on compile. Any advice, please.

In my code, I am using #Extends: android.support.v7.app.ActionBarActivity


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: Some input files use 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
 

corwin42

Expert
Licensed User
Longtime User
Please try to extend from: android.support.v7.app.AppCompatActivity

android.support.v7.app.ActionBarActivity is deprecated since 2015 and maybe they have removed it from the latest Support library (though I haven't found a notice about it in the changelogs)
 
Upvote 0

dealsmonkey

Active Member
Licensed User
Longtime User
Please try to extend from: android.support.v7.app.AppCompatActivity

android.support.v7.app.ActionBarActivity is deprecated since 2015 and maybe they have removed it from the latest Support library (though I haven't found a notice about it in the changelogs)

Sorry for the late reply. making this change has allowed me to compile, getting some null object errors now, so will look into these !!

** Service (starter) Start **
ConnectivityChanged: WIFI, state = CONNECTED
Transmit Network Type = WIFI
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 553)
java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Object.equals(java.lang.Object)' on a null object reference
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at com.exg.computime.main._activity_create(main.java:553)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at com.exg.computime.main.afterFirstLayout(main.java:102)
at com.exg.computime.main.access$000(main.java:17)
at com.exg.computime.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Object.equals(java.lang.Object)' on a null object reference
at de.amberhome.objects.appcompat.ACToolBarWrapper.DesignerCreateView(ACToolBarWrapper.java:78)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:70)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
... 14 more
 
Upvote 0
Top