Facing problem in integration of ROSapi.aar

// Expert user has replied.
A Amit Dayma 3 years 7 months ago
4 1 0

have completed most of the setup for ROS integration but there some issues mentioned below
 
02-13 20:39:19.519 9930-9930/com.example.amit.newd E/AlkStorageFinder: java.io.IOException: Permission denied
                                                                           at java.io.UnixFileSystem.createFileExclusively0(Native Method)
                                                                           at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:280)
                                                                           at java.io.File.createNewFile(File.java:948)
                                                                           at com.alk.copilot.util.StorageManager.testRootDir(StorageManager.java:400)
                                                                           at com.alk.copilot.util.StorageManager.(StorageManager.java:308)
                                                                           at com.alk.copilot.util.StorageManager.(StorageManager.java:31)
                                                                           at com.alk.copilot.util.StorageManager$AlkStorageFinderHolder.(StorageManager.java:279)
                                                                           at com.alk.copilot.util.StorageManager.getInstance(StorageManager.java:35)
                                                                           at com.alk.copilot.CopilotApplication.shouldUseOpenGL(CopilotApplication.java:1419)
                                                                           at com.alk.copilot.CopilotApplication.startup(CopilotApplication.java:1517)
                                                                           at com.alk.copilot.CopilotApplication.(CopilotApplication.java:81)
                                                                           at com.alk.copilot.CopilotService.onCreate(CopilotService.java:29)
                                                                           at android.app.ActivityThread.handleCreateService(ActivityThread.java:3240)
                                                                           at android.app.ActivityThread.-wrap5(ActivityThread.java)
                                                                           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1624)
                                                                           at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                           at android.os.Looper.loop(Looper.java:163)
                                                                           at android.app.ActivityThread.main(ActivityThread.java:6342)
                                                                           at java.lang.reflect.Method.invoke(Native Method)
                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
02-13 20:39:19.530 9930-10315/com.example.amit.newd V/AssetExtraction: Extracting copilot/version.dat
02-13 20:39:19.531 9930-10315/com.example.amit.newd E/AssetExtraction: IOException on file copilot/version.dat
                                                                       java.io.IOException: Cannot write to /storage/emulated/0/com.example.amit.newd/copilot
                                                                           at com.alk.copilot.util.AssetExtraction.extractFile(AssetExtraction.java:174)
                                                                           at com.alk.copilot.util.AssetExtraction.extractAssets(AssetExtraction.java:139)
                                                                           at com.alk.copilot.CopilotStartupThread.prepareForNativeStartupLibLoading(CopilotStartupThread.java:44)
                                                                           at com.alk.startup.AlkNativeAppStartupThread.run(AlkNativeAppStartupThread.java:31)
02-13 20:39:19.531 9930-10315/com.example.amit.newd E/AssetExtraction: IOException extracting files
                                                                       java.io.IOException: Cannot write to /storage/emulated/0/com.example.amit.newd/copilot
                                                                           at com.alk.copilot.util.AssetExtraction.extractFile(AssetExtraction.java:174)
                                                                           at com.alk.copilot.util.AssetExtraction.extractAssets(AssetExtraction.java:139)
                                                                           at com.alk.copilot.CopilotStartupThread.prepareForNativeStartupLibLoading(CopilotStartupThread.java:44)
                                                                           at com.alk.startup.AlkNativeAppStartupThread.run(AlkNativeAppStartupThread.java:31)

Please Register or Login to post a reply

1 Replies

P Pietro Francesco Maggi

Looks like that you've some missing permissions in your application.

02-13 20:39:19.519 9930-9930/com.example.amit.newd E/AlkStorageFinder: java.io.IOException: Permission denied
                                                                           at java.io.UnixFileSystem.createFileExclusively0(Native Method)
                                                                           at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:280)
                                                                           at java.io.File.createNewFile(File.java:948)
                                                                           at com.alk.copilot.util.StorageManager.testRootDir(StorageManager.java:400)

Maybe you should add to the application's manifest:

~Pietro

CONTACT
Can’t find what you’re looking for?