Flutter: upgrade the version name and code for playstore - android

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

Related

Android flutter app not opening in internal testing

I submitted an app to google play and its status is at Draft (Internal Testing)
I can download the app, but can't open it.
In the google play console, I get:
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mateusnevoli.mutiraoapp/com.mateusnevoli.mutiraoapp.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.mateusnevoli.mutiraoapp.MainActivity" on path: DexPathList[[zip file "/data/app/com.mateusnevoli.mutiraoapp-d_QXHX_h1GnTWZ0nKg4m5g==/base.apk", zip file "/data/app/com.mateusnevoli.mutiraoapp-d_QXHX_h1GnTWZ0nKg4m5g==/split_config.armeabi_v7a.apk", zip file "/data/app/com.mateusnevoli.mutiraoapp-d_QXHX_h1GnTWZ0nKg4m5g==/split_config.en.apk", zip file "/data/app/com.mateusnevoli.mutiraoapp-d_QXHX_h1GnTWZ0nKg4m5g==/split_config.hdpi.apk"],nativeLibraryDirectories=[/data/app/com.mateusnevoli.mutiraoapp-d_QXHX_h1GnTWZ0nKg4m5g==/lib/arm, /data/app/com.mateusnevoli.mutiraoapp-d_QXHX_h1GnTWZ0nKg4m5g==/base.apk!/lib/armeabi-v7a, /data/app/com.mateusnevoli.mutiraoapp-d_QXHX_h1GnTWZ0nKg4m5g==/split_config.armeabi_v7a.apk!/lib/armeabi-v7a, /data/app/com.mateusnevoli.mutiraoapp-d_QXHX_h1GnTWZ0nKg4m5g==/split_config.en.apk!/lib/armeabi-v7a, /data/app/com.mateusnevoli.mutiraoapp-d_QXHX_h1GnTWZ0nKg4m5g==/split_config.hdpi.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
I have no idea what to do. I followed the same steps as a previous app that worked fine.

Invalid AAB file type While Uploading to Google Play

When I try to import a Bundle application (.AAB), Android tells me that the ZIP file is invalid, we followed the same steps presented in the documentation but nothing works.
What I need to do?
Screenshot
I have this message : You have imported an invalid ZIP archive file.

Replacing default AOSP WebView with the WebView from the PlayStore

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

Getting class not found error.original size of apk is 3.4 mb but it get compressed automatically to 1.7 mb

Apk file which is generated is in zip compress format I think because original size is 3.4 MB and it is showing 1.7 MB.I am getting class not found error when I send by email.it is working fine if I install apk directly by computer but getting class not found error when I install by email apk.
I am getting this error
Caused by: java.lang.ClassNotFoundException: Didn't find class "asd.abs.MainActivity" on path: DexPathList[[zip file "/data/app/asd.abs-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]

Apktool error on mac

When I try to run the apktool to decompile my apk it gives off an error:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.ApkDecoder.hasSources(ApkDecoder.java:199)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:83)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.ApkDecoder.hasSources(ApkDecoder.java:197)
... 3 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:128)
at java.util.zip.ZipFile.<init>(ZipFile.java:145)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 6 more
I followed this guide. http://www.adventuresofanentrepreneur.net/creating-a-mobile-appsgames-company/how-to-unpack-pack-an-apk-file
Am I missing some files it needs to operate?
I checked all the other solution but now I found i was using jdk1.6 which was preinstalled on my machine. Maybe a java update might solve this problem. The apktool documentation explicitly mentions that it needs minimum of jdk 1.7. More info here:https://code.google.com/p/android-apktool/
try unzip your apk file first
apk is a zipfile the message said it cannot unzip the apk first
so try your self to unzip the apk file to find whether it is a real apk
This error means Apktool cannot open the Zipfile to read the files it wants (classes.dex in this case). Try using a regular Zip program (Like 7zip or Winrar) and try and unzip the apk. If this works, then apktool is at fault and you should report a bug. However, I believe it will fail, in which case you need to figure out why that is. It could be any of the following reasons:
Apk utilizes the "general access bit" hack, which no longer runs on Android, thus apktool removed support for it.
Apk has a password on it.
Apk was improperly downloaded, thus not complete

Categories

Resources