Android Question B4XPages+Appcompat

But I always get this error, even with everything updated.
B4A Version: 10.90 Parsing code. (0.02s) Java Version: 11 Building folders structure. (0.03s) Running custom action. (0.05s) Compiling code. (0.03s) Compiling layouts code. (0.01s) Organizing libraries. (0.00s) (AndroidX SDK) Compiling resources (0.81s) Linking resources (0.62s) Compiling generated Java code. Error src\b4a\example\xx.java:9: error: package android.support.v7.app does not exist public class xx extends android.support.v7.app.AppCompatActivity implements BA.SubDelegator{ ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error javac 11.0.1
 
Upvote 0
it's just what I have.
 

Attachments

  • Captura de tela 2021-07-13 223841.png
    Captura de tela 2021-07-13 223841.png
    17.8 KB · Views: 134
Upvote 0
If I remove the line from the class I get this error.

B4X:
*** Service (starter) Create ***
*** Service (starter) Create ***
** Service (starter) Start **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Create, isFirst = true **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
** Activity (main) Resume **
xx_b4xpage_created (java line: 51)
xx_b4xpage_created (java line: 51)
java.lang.NullPointerException
    at de.amberhome.objects.appcompat.ACActionBar.setShowUpIndicator(ACActionBar.java:116)
    at b4a.example.xx._b4xpage_created(xx.java:51)
    at b4a.example.xx.callSub(xx.java:81)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1066)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1037)
    at b4a.example.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:522)
    at b4a.example.b4xpagesmanager._showpage(b4xpagesmanager.java:859)
    at b4a.example.b4xpages._showpage(b4xpages.java:120)
    at b4a.example.b4xmainpage._button1_click(b4xmainpage.java:50)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:4438)
    at android.view.View$PerformClick.run(View.java:18422)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5055)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
    at de.amberhome.objects.appcompat.ACActionBar.setShowUpIndicator(ACActionBar.java:116)
    at b4a.example.xx._b4xpage_created(xx.java:51)
    at b4a.example.xx.callSub(xx.java:81)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1066)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1037)
    at b4a.example.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:522)
    at b4a.example.b4xpagesmanager._showpage(b4xpagesmanager.java:859)
    at b4a.example.b4xpages._showpage(b4xpages.java:120)
    at b4a.example.b4xmainpage._button1_click(b4xmainpage.java:50)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:4438)
    at android.view.View$PerformClick.run(View.java:18422)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5055)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    at dalvik.system.NativeStart.main(Native Method)
 
Upvote 0
Top