Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git fails #567

Open
Ammar-Husain opened this issue Sep 30, 2024 · 2 comments
Open

git fails #567

Ammar-Husain opened this issue Sep 30, 2024 · 2 comments

Comments

@Ammar-Husain
Copy link

every time I try to use git from the app, this exception is thrown:

java.lang.NoSuchMethodError: No virtual method readNBytes(I)[B in class Lorg/eclipse/jgit/util/io/SilentFileInputStream; or its super classes (declaration of 'org.eclipse.jgit.util.io.SilentFileInputStream' appears in /data/app/org.cosmicide-qUsVRIM8KZm6YGGB0Za7pw==/base.apk!classes38.dex)
	at org.eclipse.jgit.util.IO.readFully(IO.java:90)
	at org.eclipse.jgit.util.IO.readFully(IO.java:48)
	at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:148)
	at org.eclipse.jgit.storage.file.FileBasedConfig.$r8$lambda$C0Gqawno6Xx4SyUkPy5AwFIAXLk(Unknown Source:0)
	at org.eclipse.jgit.storage.file.FileBasedConfig$$ExternalSyntheticLambda0.apply(D8$$SyntheticClass:0)
	at org.eclipse.jgit.util.FileUtils.readWithRetries(FileUtils.java:733)
	at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:128)
	at org.eclipse.jgit.internal.storage.file.FileRepository.loadRepoConfig(FileRepository.java:212)
	at org.eclipse.jgit.internal.storage.file.FileRepository.getConfig(FileRepository.java:348)
	at org.eclipse.jgit.internal.storage.file.FileRepository.getConfig(FileRepository.java:1)
	at org.eclipse.jgit.treewalk.TreeWalk.<init>(TreeWalk.java:352)
	at org.eclipse.jgit.treewalk.TreeWalk.<init>(TreeWalk.java:319)
	at org.eclipse.jgit.treewalk.NameConflictTreeWalk.<init>(NameConflictTreeWalk.java:77)
	at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:127)
	at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:1)
	at com.github.syari.kgit.KGitCommand.call(KGitCommand.kt:10)
	at com.github.syari.kgit.KGit.add(KGit.kt:101)
	at dev.pranav.jgit.tasks.RepositoryKt.createRepository(Repository.kt:139)
	at org.cosmicide.fragment.GitFragment$setupUI$3$1.invokeSuspend(GitFragment.kt:74)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@6fdd93b, Dispatchers.IO]
@PranavPurwar
Copy link
Member

What is your android version?

@Ammar-Husain
Copy link
Author

I am on HarmonyOS 2.0.0 but it is t equivilant to Android 10 (it is the same actually Huawei just change the name).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants