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
Related
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.
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.
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.
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.
I am setting up CI with Jenkins on my Mac mini, but after all the configuration I get this error :
ERROR: Failed to parse POMs
java.io.
IOException: Cannot run program "/Users/Shared/Jenkins/Home/tools/hudson.model.JDK/JDK/bin/java" (in directory "/Users/Shared/Jenkins/Home/jobs/mavenTest/workspace"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
at hudson.Proc$LocalProc.<init>(Proc.java:244)
at hudson.Proc$LocalProc.<init>(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:773)
at hudson.Launcher$ProcStarter.start(Launcher.java:353)
at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:234)
at hudson.maven.ProcessCache.get(ProcessCache.java:235)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:729)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
at hudson.model.Run.execute(Run.java:1603)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:506)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:247)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
... 12 more
This is Android project and should work, because I downloaded working sample from Maven related website. Any ideas?
edit :
in previous lines i get :
JDK installation skipped: Unknown CPU name: mac os x
JDK installation skipped: Unknown CPU name: mac os x
and I guess that's the problem. I see that I cannot use "install automaticaly JDK" on Mac, so I have to do it by hand, the problem is that path which is suppose to be good, returns error /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands doesn’t look like a JDK directory.
Path is : /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/