Closed VMBindraban closed 1 month ago
@VMBindraban thanks for reporting this, just to make sure your simulator works could you try to start you sim with android studio and check if it starts?
The simulator starts and the app gets installed but the app itself doesn't start. I have to manually open it.
@VMBindraban I have experienced this in few years a couple of times, usually the culprit is the simulator, I would suggest maybe doing wipe data and cold boot on simulator with android studio or create new sim and trying with that
I deleted the sim and got the same error.
Error type 3
Error: Activity class {com.test.app/com.test.app.MainActivity} does not exist.
appConfigs/app/renative.json
:
{
"$schema": "../../../../.rnv/schema/rnv.app.json",
"extendsTemplate": "@rnv/template-starter/appConfigs/base/renative.json",
"id": "app",
"common": {
"id": "com.test.app",
"title": "test",
"buildSchemes": {},
"runtime": {
"welcomeMessage": "Hello ReNative!"
}
},
"platforms": {}
}
@mihaiblaga89 could you check this when you can
@VMBindraban could you try with 1.0.0-rc.4 if this was fixed?
1.0.0-rc.12 npx rnv run -p androidtv
-> app installed but not launched
BUILD SUCCESSFUL in 10s
63 actionable tasks: 58 executed, 5 up-to-date
info Connecting to the development server...
8084
info Installing the app on the device "emulator-5554"...
Performing Streamed Install
Success
info Starting the app on "emulator-5554"...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=renative.helloworld.debug/.SplashActivity }
Error type 3
Error: Activity class {renative.helloworld.debug/renative.helloworld.debug.SplashActivity} does not exist.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π BUNDLER STARTED | 2/29/2024, 10:32:16 AM β
β $ npx rnv run -p androidtv -r β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ReNative Version: 1.0.0-rc.12 β
β Project Name ($package.name): @rnv/template-starter β
β Project Version ($package.version): 1.0.0-rc.12 β
β Workspace ($.workspaceID): rnv β
β Platform (-p): androidtv β
β Engine ($.platforms.androidtv.engine): engine-rn-tvos β
β App Config (-c): template β
β Build Scheme (-s): debug β
β Target (-t): Television_(4K)_API_33 β
β Reset Project (-r): true β
β Supported Platforms: androidtv β
β Env Info: darwin | arm64 | node v18.19.0 β
β Executed Time: 0h:0m:41s:858ms β
β β
β [ success ] [run] Found active emulator! emulator-5554. Will use it
β β
β Project location: β
β ./platformBuilds/template_androidtv β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
looked over your platformBuilds archive and itβs the same as mine. Giving the fact that this works for me and @pauliusguzas Iβd say we complete this task and open a new one for later for this since it might be an issue with the simulator itself
1.0.0-rc.12 I've tested on:
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
only
<category android:name="android.intent.category.LAUNCHER" />
Describe the bug App doesn't autostart when running
npx rnv run -p android
To Reproduce Steps to reproduce the behavior:
Expected behavior App to start
Screenshots or copy&paste
Desktop (please complete the following information):
Additional context New project, App id given was
com.test.app
rather thancom.rnv.myapp
.