flexn-io / renative

πŸš€πŸš€πŸš€ Unified Development Platform for iOS, tvOS, Android, Android TV, Android Wear, Web, Tizen TV, Tizen Watch, Tizen Mobile, LG webOS, macOS/OSX, Windows, KaiOS, FirefoxOS Firefox TV platforms
https://renative.org
MIT License
1.79k stars 180 forks source link

Android app doesn't autostart on 1.0.0-feat-bonanza.12 #1244

Closed VMBindraban closed 1 month ago

VMBindraban commented 9 months ago

Describe the bug App doesn't autostart when running npx rnv run -p android

To Reproduce Steps to reproduce the behavior:

  1. Run command 'npx rnv run -p android'
  2. See error

Expected behavior App to start

Screenshots or copy&paste

info Starting the app on "emulator-5554"...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.rnv.myapp/.MainActivity }
Error type 3
Error: Activity class {com.rnv.myapp/com.rnv.myapp.MainActivity} does not exist.

Desktop (please complete the following information):

Additional context New project, App id given was com.test.app rather than com.rnv.myapp.

pauliusguzas commented 9 months 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?

VMBindraban commented 9 months ago

The simulator starts and the app gets installed but the app itself doesn't start. I have to manually open it.

pauliusguzas commented 9 months ago

@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

VMBindraban commented 9 months ago

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": {}
}
pauliusguzas commented 9 months ago

@mihaiblaga89 could you check this when you can

pauliusguzas commented 8 months ago

@VMBindraban could you try with 1.0.0-rc.4 if this was fixed?

GabrieleKaceviciute commented 6 months ago

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                                         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
mihaiblaga89 commented 6 months ago

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

GabrieleKaceviciute commented 6 months ago

1.0.0-rc.12 I've tested on: