Android build and test not working
tracked
Nosjo
Followed the this https://creators.vrchat.com/platforms/android/build-test-mobile/
but it fails to lunch vrchat on my phone after building it even puts the file on my phone so i know for sure adb is working and getting this in my editors console
and tried this with 2 different world projects now
AdbException: ADB failed with exit code 1.
StdOut:Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.vrchat.mobile.playstore/com.vrchat.app.MainActivity (has extras) }
StdError:Error type 3
Error: Activity class {com.vrchat.mobile.playstore/com.vrchat.app.MainActivity} does not exist.
VRC.SDK3.Editor.Builder.ADB.Command (System.String[] arguments) (at <8c33ac67c14b4f31a7515261397206c6>:0)
VRC.SDK3.Editor.Builder.ADB.StartVRChatIntoWorld (System.String remoteBundleFilePath, System.String appPackageName) (at <8c33ac67c14b4f31a7515261397206c6>:0)
VRC.SDK3.Editor.Builder.VRCWorldAssetExporter.RunWorldTestAndroid (System.String bundleFilePath) (at <64d127784e7f4289a5a7ffbe49df807e>:0)
VRC.SDK3.Editor.Builder.VRCWorldAssetExporter.RunScene (System.String bundleFilePath) (at <64d127784e7f4289a5a7ffbe49df807e>:0)
Rethrow as WorldAssetExportException: An ADB command failed to execute.
Check the console for more details.
VRC.SDK3.Editor.VRCSdkControlPanelWorldBuilder.Build (System.Boolean runAfterBuild) (at ./Packages/com.vrchat.worlds/Editor/VRCSDK/SDK3/VRCSdkControlPanelWorldBuilder.cs:2576)
VRC.SDK3.Editor.VRCSdkControlPanelWorldBuilder.BuildAndTest () (at ./Packages/com.vrchat.worlds/Editor/VRCSDK/SDK3/VRCSdkControlPanelWorldBuilder.cs:3282)
VRC.SDK3.Editor.VRCSdkControlPanelWorldBuilder.OnBuildAndTestAction () (at ./Packages/com.vrchat.worlds/Editor/VRCSDK/SDK3/VRCSdkControlPanelWorldBuilder.cs:2147)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <27124aa0e30a41659b903b822b959bc7>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <cb81df0c49c643b1a04d9fc6ccca2433>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at <cb81df0c49c643b1a04d9fc6ccca2433>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <cb81df0c49c643b1a04d9fc6ccca2433>:0)
Log In
StormRel
Merged in a post:
Can't Build and Test to Android
Jar
This is a new Unity project with the latest SDK (3.10.1). I have ADB but haven't build-and-tested directly to my phone before.
For "Build & Test Your World" the build fails with this log error:
AdbException: ADB failed with exit code 1.
StdOut:Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.vrchat.mobile.playstore/com.vrchat.app.MainActivity (has extras) }
StdError:Error type 3
Error: Activity class {com.vrchat.mobile.playstore/com.vrchat.app.MainActivity} does not exist.
I can confirm that the app is installed and launchable:
C:\Users\Jar>adb shell pm list packages | findstr /i vrchat
package:com.vrchat.mobile.playstore
C:\Users\Jar>adb shell cmd package resolve-activity --brief com.vrchat.mobile.playstore
priority=0 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false
com.vrchat.mobile.playstore/com.vrchat.app.ui.activities.MainActivity
C:\Users\Jar>adb shell am start -n com.vrchat.mobile.playstore/com.vrchat.app.ui.activities.MainActivity
Starting: Intent { cmp=com.vrchat.mobile.playstore/com.vrchat.app.ui.activities.MainActivity }
Warning: Activity not started, intent has been delivered to currently running top-most instance.
And that Edit>Project Settings>SDK>VRChat SDK Settings, it shows:
Android App Package Name: com.vrchat.mobile.playstore
I also reinstalled VRChat from the App Store.
I'm wondering if the SDK is targeting something out of date or if I just don't have something set up correctly?
Jar
I might have made a duplicate of this, I didn't see this post until now
I posted my info on this at https://feedback.vrchat.com/mobile-beta/p/cant-build-and-test-to-android
This post was marked as
tracked