Change Permission for AVD from 'read only' to 'read and write' - android-studio

2022-03-23 12:18:57.754 15360-15399/com.tobias.infinityracingtelemetryapp E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: com.tobias.infinityracingtelemetryapp, PID: 15360
java.io.FileNotFoundException: /storage/emulated/0/record.csv (Permission denied)
I have created a class to save a record from a database to a CSV-File on my AVD, which also runs the programme. Here above you can see the error I get, how can I change the permission for my AVD?

Related

How do I solve this problem ? I'm trying to build an android app based on Kotlin, but I keep getting this error

Execution failed for task ':app:processDebugMainManifest'.
java.io.FileNotFoundException: C:\Users\Ussumane-Momade\Documents\HappyBirthday\app\build\intermediates\manifest_merge_blame_file\debug\manifest-merger-blame-debug-report.txt (Access is denied)

Android Studio: Error after deleting file

I got this error:
Error:Execution failed for task ':app:generateDebugBuildConfig'. > java.io.IOException: Could not delete path 'C:\Users\Guest Account\Documents\COLLEGE\FYP\7. Iteration 4\fridge iteration 4\app\build\generated\source\buildConfig\debug\com'.
and saw 'could not delete path' so I decided to follow the path and delete the path. When I reran the app I got seven new errors:
Error:Execution failed for task ':app:processDebugResources'.
Failed to execute aapt
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:failed linking file resources.
Error:attribute 'com.virtual.fridge:layout_behavior' not found.
Error:error: attribute 'com.virtual.fridge:layout_behavior' not found.
In my even log I have two new messages:
* daemon not running; starting now at tcp:5037
21:10 * daemon started successfully
I am going to presume this is down to deleting that file.. is there anything I can do? Really new to android studio so I appreciate any help. Please tell me what other information I shoudl provide
I cleaned the project and built it and it worked

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “__aeabi_memmove4”

When I run this example (https://github.com/alex011235/FaceSwap) I found this type of runtime error in Android Studio. I can select two images but when I click the button to swap the face, it crashed and the message show in logcat:
com.tzutalin.dlibtest E/AndroidRuntime: FATAL EXCEPTION: main Process: com.tzutalin.dlibtest, PID: 31370
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__aeabi_memmove4" referenced by "/data/app/com.tzutalin.dlibtest-2/lib/arm/libnativefaceswap.so"...
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at com.alex.faceswap.FaceSwap.(FaceSwap.java:57)
at com.alex.faceswap.ActivitySelfieSwap$1.run(ActivitySelfieSwap.java:168)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
The row that make me get error is the following row (FaceSwap.java:57).
System.loadLibrary("nativefaceswap");
I hope to get use of this example and I cannot solve this problem.

My app is crashing whenever I am trying to open the app info in settings tab. It also looks like referring to the old package name

This is happening after I changed the package name. The app crashes only when I open "About"
This is the crash report
--------- beginning of crash
07-19 18:18:21.332 2739-2739/com.wallkeeper.reader E/AndroidRuntime:
FATAL EXCEPTION: main
Process: com.wallkeeper.reader, PID: 2739
java.lang.SecurityException: Permission Denial: starting Intent {
act=android.intent.action.VIEW
cmp=net.fred.feedex/.activity.AboutActivity } from
ProcessRecord{ca81fb2 2739:com.wallkeeper.reader/u0a64} (pid=2739,
uid=10064) not exported from uid 10063
at android.os.Parcel.readException(Parcel.java:1599)
at android.os.Parcel.readException(Parcel.java:1552)
at
android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2658)
at
android.app.Instrumentation.execStartActivity(Instrumentation.java:1507)
at android.app.Activity.startActivityForResult(Activity.java:3917)
at
android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:48)
at
android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:75)
at android.app.Activity.startActivityForResult(Activity.java:3877)
at
android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:871)
at android.app.Activity.startActivity(Activity.java:4200)
at android.app.Activity.startActivity(Activity.java:4168)
at android.preference.Preference.performClick(Preference.java:1012)
at
android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:214)
at android.widget.AdapterView.performItemClick(AdapterView.java:310)
at android.widget.AbsListView.performItemClick(AbsListView.java:1145)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3042)
at android.widget.AbsListView$3.run(AbsListView.java:3879)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Try adding android:exported="true" to your AndroidManifest.xml where your Activity is declared.
Also, double check that you are launching the correct configuration.

Can not put a bot for the server of the game Go

I can not put a bot for the server of the game Go.
I get this error
kl#ox:~/kgsBot/kgsGtp$ java -jar kgsGtp.jar pachi.config
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
sep 15, 2015 2:01:09 AM com.gokgs.client.gtp.GtpClient main
FINE: KGS GTP Client v3.5.20 starting up
sep 15, 2015 2:01:10 AM com.gokgs.client.gtp.GtpClient main
SEVERE: Fatal exception
java.io.IOException: Cannot run program "./pachi": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at com.gokgs.client.gtp.GtpClient.main(kgsgtp:918)
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 4 more
What is the problem it?
From your stack trace,
java.io.IOException: Cannot run program "./pachi": error=13, Permission denied
Error=13 means that you don't have the execute permission for the file. Find out where pachi file is using find -name pachi and add the execute permission with chmod

Resources