We use a custom Android ROM which in-turn uses the default WebView with version 48. We want to replace that APK with the APK from the Play Store with version 74. Both have different package names.
I've read this replacing default WebView and done changing my frameworks/base/core/res/res/values/config.xml values to point to the new APK's package name.
Now, when I try to launch the Activity which hosts the WebView I get this stacktrace
E/webviewchromiumloader: Failed to open relro file /data/misc/shared_relro/libwebviewchromium64.relro: No such file or directory
E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data#app#com.google.android.webview-1#base.apk#classes.dex: Permission denied
E/cr_LibraryLoader: Unable to load library: webviewchromium
E/WebViewFactory: error instantiating provider
Binary XML file line #7: Binary XML file line #7: Error inflating class android.webkit.WebView
What am I missing here? or any alternative library which has the latest WebView
Solved here - link
Related
hi im trying to upload my app to the playstore and have no problems uploading it.
My unic problem is with the app name in all the instance off the project so when i uploaded my app. i recive this errors
`
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sistemasadir.manufacturasadir/com.sistemasadir.manufacturasadir.MainActivity}: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/system/framework/android.test.mock.jar", zip file "/data/app/androidx.test.tools.crawler-uUxiqPmONbssowJxE5md0Q==/base.apk", zip file "/data/app/com.sistemasadir.manufacturasadir-2Hnmo-MIgegbBa5SFRUVEg==/base.apk", zip file "/data/app/com.sistemasadir.manufacturasadir-2Hnmo-MIgegbBa5SFRUVEg==/split_config.en.apk", zip file "/data/app/com.sistemasadir.manufacturasadir-2Hnmo-MIgegbBa5SFRUVEg==/split_config.x86.apk", zip file "/data/app/com.sistemasadir.manufacturasadir-2Hnmo-MIgegbBa5SFRUVEg==/split_config.xxhdpi.apk"],nativeLibraryDirectories=[/data/app/androidx.test.tools.crawler-uUxiqPmONbssowJxE5md0Q==/lib/x86, /data/app/com.sistemasadir.manufacturasadir-2Hnmo-MIgegbBa5SFRUVEg==/lib/x86, /data/app/androidx.test.tools.crawler-uUxiqPmONbssowJxE5md0Q==/base.apk!/lib/x86, /data/app/com.sistemasadir.manufacturasadir-2Hnmo-MIgegbBa5SFRUVEg==/base.apk!/lib/x86, /data/app/com.sistemasadir.manufacturasadir-2Hnmo-MIgegbBa5SFRUVEg==/split_config.en.apk!/lib/x86, /data/app/com.sistemasadir.manufacturasadir-2Hnmo-MIgegbBa5SFRUVEg==/split_config.x86.apk!/lib/x86, /data/app/com.sistemasadir.manufacturasadir-2Hnmo-MIgegbBa5SFRUVEg==/split_config.xxhdpi.apk!/lib/x86, /system/lib]]] couldn't find "libflutter.so"
`
So all my app name distributed in all the android folder now have the name so i dont not why is throwing me this error
i tried changing all the manifest, the dependency of rename the bundle id and all to use the same name but its throwing me the same error.
So the app i downloaded in internal testing and works well but still having this error
I am trying to import the .aar in the parent app, the .aar file contains multiple activities and functions,
what I am trying to do here is imported the aar file in the libs folder which is present in the app[directly pasted inside] folder, and then implemented it in build Gradle, but I am getting an android resource link failed.
You can check these images of what I have done in the coding part
this is the error i am getting
and this is how I called the libs folder
I called the lib folder like this
In the manifest file, I try to call the activity like this
in the child manifest I commented on the activity tag, it showed duplicate
can anyone help me to fix this issue, when I click a button in parent activity which is in mainactivity.kt it should go to child activity which is present in aar file, named HomeActivity.
both manifest files
This the new error i am getting
Process: com.example.myapplication, PID: 9182
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/live.hms.app2.ui.home.HomeActivity}: android.view.InflateException: Binary XML file line #46 in com.example.myapplication:layout/activity_home: Binary XML file line #46 in com.example.myapplication:layout/activity_home: Error inflating class androidx.fragment.app.FragmentContainerView
which is
The aar file has it own manifest file in it. You don't need to decare HomeActivity in the manifest file of app module. Android studio can help you merge all the manifest files into one file.
Just directly use HomeActivity in MainActivity:
Intent intent = new Intent(this, HomeActivity.class);
startActivity(intent);
I uploaded my app using the Android app bundle tool, which to my understanding creates several APKs (.aab files) for each device configuration with the corresponding resource files.
Now lets say I get a new phone with different resolution and install all my previous apps from backup, will it keep the same .aab file from the previous device just as it keeps the shared preferences? meaning the wrong image sizes ? Or will the resources not be found causing bugs such as
- Caused by android.view.InflateException: Binary XML file line #15:
Error inflating class ImageView
- Caused by android.content.res.Resources$NotFoundException: Resource ID #0x7f080263
I know these crashes can be occur by sideloading the app (Android App Bundle introduces Resource Not found crash in Android app), is this the same case?
I'm getting an error while displaying maps in a fragment, I've been searching for the solution and Tried several codes but nothing seems to work.
MainActivity.xml
StackTrace: {Android.Views.InflateException: Binary XML file line #1: Binary XML file line #2: Error inflating class fragment --->
Android.Views.InflateException: Binary XML file line #2: Error inflating class fragment --->
Java.Lang.RuntimeException: API key not found.
Check that
is in the element of AndroidManifest.xml
it says API Key not found, but i did declared it in manifest and validated it using http://yougapi.com/tools/google-api-key-checker.php
AndroidManifest.xml
activity_main.xml
PS: Im using android 9.0 physical device for debugging
Please make sure if you have install Xamarin.GooglePlayServices.Maps package from NuGet.
And you used Android 9.0 physical device, please make sure your device if have Google Play services
I test my demo in the Android 10.0 emulator, it worked as normal.
Here is my demo. You can test it.
https://github.com/851265601/XAndroidMap
When running android app it showing error:
file:///android_asset/www/images/ajax-loader.gif Unable to open asset URL:file:///android_asset/www/images/go.jpg
Please help me to solve this.
Try the followings:
Make sure you have the file in the directory
Specify permission for read/write to the file
android file name are case-sensitive.
Why the gif and jpg both comes in one error...check it.