Invalid resource path specified - android

I have copied the app-debug.apk from outputs of android studio project and trying to run the apk file on the phone but getting this error :
Invalid resource path specifed
This is my project structure :

For me the cause of this error is the method you sent the file to your device.
I sent the apk file using whatsapp messenger and this error was shown.
But when I sent the file using Bluetooth the apk was installed successfully.

Related

Failed to Build AppBundle

I am trying to build appbundle using command flutter build appbundle. However, it will not start because of the following error:
Failed to open output file 'F:\Mobile app\user app\booking_system_flutter\booking_system_flutter\build\app\intermediates\flutter\release\flutter_asse
ts\packages/flutter_vector_icons/fonts/AntDesign.ttf'. The parent directory may not exist, or the user does not have permission to create this file.
Failed to open output file 'F:\Mobile app\user app\booking_system_flutter\booking_system_flutter\build\app\intermediates\flutter\release\flutter_asse
ts\packages/flutter_vector_icons/fonts/MaterialCommunityIcons.ttf'. The parent directory may not exist, or the user does not have permission to create this file.
Failed to open output file 'F:\Mobile app\user app\booking_system_flutter\booking_system_flutter\build\app\intermediates\flutter\release\flutter_asse
ts\fonts/MaterialIcons-Regular.otf'. The parent directory may not exist, or the user does not have permission to create this file.
Anyone have solution for this?
I think you have permission conflict in your directories or specific type of files (like ttf maybe).
If you using IDE or Code Editor terminal just open it with run as administrator or just open your platform terminal with as administrator it will help.
In my case I use vs code
Or cmd as terminal
if you are storing project in usb or other drives, just copy and paste in your locale drive and there won't be similar problem.

AWS S3 sync bucket adding a random extension to filename

I am trying to download an entire S3 bucket to my local machine using the
aws s3 sync s3://mybucketname . command.
I get an error like:
download failed: s3://bucketname/android/directory_name/filename.csv to android\directory_name\filename.csv [Errno 22] Invalid argument: 'C:\\Users\\prase\\bucketname\\android\\directory_name\\filename.csv.422cd5B1'
I know that this error is because of having an extension to the csv extension in the filename. However, I am not sure how this extension is added. All the csv files have an 8-digit extension like .422cd5B1 and thus download fails. However, when I login to S3 and download each file, there is no extension like this.
All of my files are csv files either uploaded from an android or an ios phone. And only files uploaded from an android phone have this issue.

Error during Android 64-bit Delphi app deployment

I'm trying to build a 64-bit android app in Delphi 10.3.3, I get this error during deployment : [PAClient Error] Error: E6409 Cannot open file "D:\...\Android64\Release\TestApp\linked_res.ap_". The system cannot find the file specified
I don't have any file with name linked_res in deployment, I've built the project twice. Why I'm get this error?
go to Deployment ( Project->Deployment ) and add "provider_paths.xml" file and set "remote path" to "res\xml"

Error at installing my app on mobile for testing

my package name is com.example.project name but to upload it on google console for publishing it.I change it to com.ahsan.project name, now when i am trying to run it on my mobile it is showing me this error....
already have tried to revert back to old changes but it is not working.still getting the same result.
Run Window
Unknown failure: Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown package: com.example.ethlon
at com.android.server.pm.Settings.getInstallerPackageNameLPr(Settings.java:5051)
at com.android.server.pm.PackageManagerService.getInstallerPackageName(PackageManagerService.java:27786)
at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:27792)
at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:23919)
at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:993)
at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:912)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:134)
at android.os.ShellCommand.exec(ShellCommand.java:96)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:28572)
at android.os.Binder.shellCommand(Binder.java:581)
at android.os.Binder.onTransact(Binder.java:481)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:3209)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:5078)
at android.os.Binder.execTransact(Binder.java:682)
Error while Installing APKs
this error happen because
your package name not the same in all project
search and update your package to be the same
Most of the time this error came due to Changes in file location in Project folder.
To solve this problem you just have to open whole project again as a new Project.
Steps-
File-Export To Zip File (save as new zip file).
Unzip the zip file.
Go to Open and select the location of unzip file.
Now try to run app on device.

Android Studio - Local path doesn't exist. (debug using an Android phone)

I have been trying to use my phone to debug, and keep getting the error "Local path doesn't exist."
Waiting for device.
Target device: htc-htc_one_mini_2-SH45LWR05741
Uploading file
local path: C:\Users\PC\Desktop\game\MyGame\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/com.xxx.MyGame
Local path doesn't exist.
I have seen other posts on this error where people tell you to write this in the app.iml file:
<option name="APK_PATH" value="/build/apk/(apk file name that was found earlier with apk extension)" />
but there is no .apk file in the game directory

Categories

Resources