Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during the build phase of an Android application #4

Closed
david-azancot opened this issue Aug 9, 2023 · 2 comments
Closed

Error during the build phase of an Android application #4

david-azancot opened this issue Aug 9, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@david-azancot
Copy link

What did you do?

  • Build Android project from the 4D mobile project editor

What did you expect to happen?

  • The Android simulator should have launched, and the application should have opened.

What happened instead?

  • Received this error message during the build phase :

Failed to generate files Exception in thread "main" kotlin.UninitializedPropertyAccessException: lateinit property deepLink has not been initialized at kscript.scriplet.ProjectEditor.getDeepLink(Main.kt:2360) at kscript.scriplet.MustacheHelper.<init>(Main.kt:754) at kscript.scriplet.GenerateCommand.start(Main.kt:8647) at kscript.scriplet.GenerateCommand.run(Main.kt:8602) at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:204) at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:213) at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:17) at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:396) at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:393) at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:411) at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:436) at kscript.scriplet.MainKt.main(Main.kt:8768)

Environment

  • 4D 20R3.287689
  • Android studio Giraffe
  • Pixel 4 (simu)
  • macOS Ventura 13.3.1
  • 4D-Mobile-App Compiled version latest release (20.0.3)
@e-marchand
Copy link
Contributor

je reproduit qu'en desactivant le deep linking dans le flag

This.project.hasAndroidDeepLinking:=Feature.with("androidDeepLinking")

le code semble ne pas être compatible avec sa désactivation

deepLink = jsonObj.getDeepLinkScheme()

maintenant pourquoi c'est pas activé chez vous la feature?
vous avez pas un fichier de conf 4d mobile?

@e-marchand e-marchand self-assigned this Aug 18, 2023
@e-marchand
Copy link
Contributor

finalement j'ai trouvé une piste, comme quoi si vous prenez le composant source avec la v20 ou la main avec le composant compilé peut être on active pas les features

j'active donc differement les features 4d/4D-Mobile-App@6e7672e (en main et à reporter)

et ici par contre le code devrait être différent pour supporter la feature désactivé

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants