Mobile SDK Setup
Hi everyone, I'm trying to follow the mobile SDK guide but I'm having trouble building the samples. I'm not super familiar with Gradle and other Android shenanigans so I'm completely lost. I'm basically trying to follow the "Android Studio Basics" part but I'm never asked if I want to use the Gradle wrapper. ( Step 3 ). I tried to keep going but I'm almost immediately hit with a "Task 'wrapper' not found in project", which isn't surprising. I've tried to Google this and figure out what's going on but no luck so far. What am I missing? Thanks in advance for your help! EDIT: Using build.bat from VrCubeWorld_Framework\Projects\Android it works. My Android Studio / Gradle integration is still messed up though. EDIT 2: You probably shouldn't do that because it doesn't make much sense, but I copied and pasted the "gradle" folder from the root of the VR Samples folder inside VrCubeWorld_Framework\Projects\Android and now it works. ¯\_(ツ)_/¯2.8KViews1like4CommentsAndroid Studio 4.1 compatibility
Is the mobile SDK 1.37.0 compatible with Android Studio 4.1? If I try to open any of the samples in VrSamples with this version, I get Graddle sync failes: Task 'wrapper' not found in project x. Downgrading to Andrid Studio 3.6 everything works fine.1.9KViews1like4CommentsProcess finished when hit breakpoint remote debugging Oculus Quest 2
I'm starting to play with Android Studio and Mobile SDK and Oculus Quest 2. Everything is working correctly but when I start remote debugging any of the SDK samples in the device, when the debugger hits a breakpoint, after two or three seconds the process finishes and the debugging session closes. The logcat pane shows something like this: Process 26768 exited due to signal 9 (Killed) And the Debug pane shows something like this: Process finished with exit code 22 Is there a way to avoid the process to finish/exit when debugging the application? Thanks in advance.1.4KViews0likes2CommentsPACKAGE_USAGE_STATS permission not allowed on quest 2?
I am making an app that requires this permission. its a native android application so its not vr, doesnt use oculus sdk etc. The tool works fine on the regular quest, but when trying to open the activity to grant the permission on the quest 2, settings crashes. The crashing happens when clicking on the name of the app, to grant permissions for that app. crash log: 10-23 16:12:13.341 8723 8723 E AndroidRuntime: FATAL EXCEPTION: main 10-23 16:12:13.341 8723 8723 E AndroidRuntime: Process: com.android.settings, PID: 8723 10-23 16:12:13.341 8723 8723 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.widget.SearchView.isIconified()' on a null object reference 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at com.android.settings.applications.manageapplications.ManageApplications.onSaveInstanceState(ManageApplications.java:511) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at androidx.fragment.app.Fragment.performSaveInstanceState(Fragment.java:2799) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at androidx.fragment.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManagerImpl.java:2276) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at androidx.fragment.app.FragmentManagerImpl.saveAllState(FragmentManagerImpl.java:2335) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at androidx.fragment.app.FragmentController.saveAllState(FragmentController.java:151) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at androidx.fragment.app.FragmentActivity.onSaveInstanceState(FragmentActivity.java:513) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at com.android.settings.SettingsActivity.onSaveInstanceState(SettingsActivity.java:472) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.Activity.performSaveInstanceState(Activity.java:2037) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1485) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.ActivityThread.callActivityOnSaveInstanceState(ActivityThread.java:5312) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:4638) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4602) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4677) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:41) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2024) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7385) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 10-23 16:12:13.341 8723 8723 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) Is this because this permission is blocked on the quest 2 or is this a possible bug?1.4KViews0likes2Comments