Android Question appupdating 2. 0 error

jesuslizonsoluciones

Member
Licensed User
Longtime User
I am using version 2.0 of appupdating and when updating I get the following error

java.lang.ClassNotFoundException: android.support$v4$content$FileProvider

Can somebody help me
 

jesuslizonsoluciones

Member
Licensed User
Longtime User
I have downloaded version 10 and it keeps giving me the same problem


my routes are as follows



1596541553975.png


manifest



AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@style/MyAppTheme")


AddPermission(android.permission.CAMERA) ' Required to be able to access the camera device.
AddPermission(android.permission.GET_TASKS)
AddPermission("android.hardware.camera")
AddPermission("android.permission.FLASHLIGHT")
AddPermission("android.permission.SYSTEM_ALERT_WINDOW")
AddPermission("android.permission.FLASHLIGHT")
AddPermission("android.permission.WRITE_SETTINGS")
AddPermission(android.permission.SYSTEM_OVERLAY_WINDOW)
AddPermission(android.permission.SYSTEM_ALERT_WINDOW)

' Para actualizar el quickmovile

AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)


AddApplicationText(
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
)
CreateResource(xml, provider_paths,
<files-path name="name" path="shared" />
)

AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
)

AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)

' AddReceiverText(eu.dgconsulting.appupdating.newinst2,
AddReceiverText(eu.dgconsulting.appupdating.newinst2,
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<data android:scheme="package" />
</intent-filter>)





Errror

---- AppUpdating.UpdateApk
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
Webserver's info file content:
ver=3.01

Web version number: 3.01
Current Version: 2.00
Newer version available. Now I try its downloading
-- TryApkUpdate
new apk version downloaded and ready to install
java.lang.ClassNotFoundException: android.support$v4$content$FileProvider
at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:288)
at anywheresoftware.b4j.object.JavaObject.InitializeStatic(JavaObject.java:74)
at eu.dgconsulting.appupdating.cl_appupdate._getfileuri(cl_appupdate.java:540)
at eu.dgconsulting.appupdating.cl_appupdate._sendinstallintent(cl_appupdate.java:1060)
at eu.dgconsulting.appupdating.cl_appupdate$ResumableSub_TryApkUpdate.resume(cl_appupdate.java:1374)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:207)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1178)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
 
Upvote 0

MbedAndroid

Active Member
Licensed User
Longtime User
appupdating works perfect here on my site .
Only difference i see is this line in the manifest. But that wont be the problem
Also using jdk 11.01

AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="19" />)
 
Upvote 0

MbedAndroid

Active Member
Licensed User
Longtime User
got 2 libs in my additional folder. I'm using version 2.03 at the moment. Have a try
 

Attachments

  • AppUpdating.b4xlib
    7.1 KB · Views: 174
  • Appupdating202.b4xlib
    6.9 KB · Views: 160
Upvote 0

jesuslizonsoluciones

Member
Licensed User
Longtime User
Hi all


already detect the problem; I had to use the jetifier tool.

Although it gives me a problem when I finish installing, I will see if it is a permission problem.

@MbedAndroid

I will try the version that you indicate and I will comment to you

thank you
 
Upvote 0

jesuslizonsoluciones

Member
Licensed User
Longtime User
Hello MbedAndroid


I have used the libraries that you indicated me of appupdating 2.03 and I get this error

The module eu.dgconsulting.appupdating.newinst2_br was not found (Manifest Editor)
 
Upvote 0

MbedAndroid

Active Member
Licensed User
Longtime User
AddReceiverText(newinst2,
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>)
B4X:
AddReceiverText(newinst2,
  <intent-filter>
  <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
  </intent-filter>)
this should be changed in your manifest
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Sorry guys, I was on vacation and read the whole thread just today.
Still 25 pages of threads' backlogs to read... and that's for B4A alone!
Once recovered, it will be XMas..and another backlog will start.. :)
 
Upvote 0
Top