failed to read the project description file in eclipse - android

I am new to android.While checking out a code from SVN , I face this issue:
Checkout operation for
'https://subversion.assembla.com/svn/SamplePjt/trunk/Android/SamplePjtv1.0/SamplePjt' failed.
Failed to read the project description file (.project) for 'SamplePjt'. The file has been changed on disk, and it now contains invalid information. The project will not function properly until the description file is restored to a valid state.
Can anyone please help me out.

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.

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.

Failed to create MD5 hash for file classes.dex

hey guys i am getting this error when i enable Instant Run I searched , but dint get anything please help
Error:org.gradle.api.UncheckedIOException: Failed to create MD5 hash for file'D:\AndroidProjects\EzeeServe\Notification_test\app\build\intermediates\tran
sforms\dex\debug\folders\1000\10000\instant-
run_4e106acbedaa2231022cc2be3f931c0f027ccab4\classes.dex'.
Error:java.io.FileNotFoundException: D:\AndroidProjects\EzeeServe\Notification_test\app\build\intermediates\transform
s\dex\debug\folders\1000\10000\instant-
run_4e106acbedaa2231022cc2be3f931c0f027ccab4\classes.dex (The system cannot
find the file specified)

Error deploying artifact: Failed to transfer file Return code is: 401

I am trying to upload my library, ListBuddies, to maven. To do that I am using the gradle-mvn-push github project of #ChrisBanes . I follow all the steps that he mentioned on his repo plus some others that are needed before that repo is used:
I opened a Jira issue and I waited until It got resolved
I have created GPG keys
I configurate ListBuddies's build.gradle files and the gradle.properties
I have created another local gradle.properties at "/Users/jpardogo/.gradle/gradle.properties"
local gradle.properties file (signing keys are only need for release so should not be a problem for the SNAPSHOT):
//These are the username/password that I use for:
//[JIRA](https://issues.sonatype.org)
//and [NEXUS](https://oss.sonatype.org
NEXUS_USERNAME=jpardogo1
NEXUS_PASSWORD=jira-pass
//This is the key ID that I obtain doing "gpg --list-keys" on the terminal
signing.keyId=my-keyid
//This is the paraphrase I set when I first created the key
signing.password=my-paraphrase
//That's the path to my secret key ring
signing.secretKeyRingFile=/Users/jpardogo/.gnupg/secring.gpg
Look like everything is setup properly but when I do:
gradle clean build uploadArchives
At the end I receive code ERROR 401:
:library:uploadArchives
Uploading: com/jpardogo/listbuddies/library/1.0.0-SNAPSHOT/library-1.0.0-20140209.151716- 1.aar to repository remote at https://oss.sonatype.org/content/repositories/snapshots/
Transferring 67K from remote
:library:uploadArchives FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':library:uploadArchives'.
> Could not publish configuration 'archives'
> Error deploying artifact 'com.jpardogo.listbuddies:library:aar': Error deploying artifact: Failed to transfer file: https://oss.sonatype.org/content/repositories/snapshots/com/jpardogo/listbuddies/library/1.0.0-SNAPSHOT/library-1.0.0-20140209.151716-1.aar. Return code is: 401
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I have been looking for an answer the whole day of yesterday and today as well but I couldn't solve it. The error 401 reason is good explain in here, but I couldn't solved anything and I also read that It could be due user permissions problem although I register on Jira as the guide says.
I hope you can help me with that and If you need any more information, please let me know. Thanks.
EDIT: I want to update the question with the link to the jira ticket and its comments.
I finally solved it. All the configuration was ok. The problem was on the file gradle.properties. Because I copy paste the structure of the file, a hidden tabulation reminded next to the NEXUS_USERNAME, so the username actually was being sent with the tabulation and I was receiving a authentication error.
Sometimes things are more simple than you think, and you don't see them. The first thing I will do the next time will be to check the format of the files.
I had exactly the same problem, and the reason was: my password (generated) contained a backslash \.
Solution: Backslashes need to be escaped in gradle.properties!
Example:
ossrhPassword=partBeforeBackslash\\\\partAfterBackslash
instead of:
ossrhPassword=partBeforeBackslash\partAfterBackslash
For me the problem was that I was uploading a version that already exists in the rep. The solution was just to change the 'version' in the build.gradle file.

Android, how do I release a file lock from a file that I have deleted

I need to delete and recreate a directory in my Android (written with Mono) app when the user wants to change log in details. I delete the directory thus:
Directory.Delete(AppDataFolder, true);
However, when I try to recreate the directory, using:
Directory.CreateDirectory(aDirectory);
I get the following exception:
System.IO.IOException: Lock violation on path /storage/sdcard0/Telecetera/Connect For Android
I can't see how to fix this. Has anyone got any ideas?
Thanks

Categories

Resources