★ wanayoo — archive 1999 https://github.com/NativeScript/android-runtime/issues/1644Nouvelle recherche | Portail wanayoo
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

Custom extended Activity not working on Nativescript 7 #1644

Open
busslina opened this issue Oct 28, 2020 · 0 comments
Open

Custom extended Activity not working on Nativescript 7 #1644

busslina opened this issue Oct 28, 2020 · 0 comments

Comments

@busslina
Copy link

@busslina busslina commented Oct 28, 2020 •

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
✔ Getting NativeScript components versions information...
✔ Component nativescript has 7.0.11 version and is up to date.
✔ Component @nativescript/core has 7.0.12 version and is up to date.
✖ Component @nativescript/ios is not installed.
✔ Component @nativescript/android has 7.0.1 version and is up to date.

Months before, same code worked fine and I was able to start custom activity (and custom application) but I don't know what happened. I tried on new projects to reproduce steps but I always get the same error:

Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function System.err: Error: com.tns.system.classes.loading.LookedUpClassNotFound: Class "a.b.NativeScriptActivity" not found. System.err: File: (/data/data/org.nativescript.testing/files/internal/ts_helpers.js:154:25) System.err: System.err: StackTrace: System.err: (/data/data/org.nativescript.testing/files/internal/ts_helpers.js:154:26) System.err: at __decorate(/data/data/org.nativescript.testing/files/internal/ts_helpers.js:13:19) System.err: at ./app/core/android/activity.ts(file: src/app/core/android/activity.android.ts:5:25)...

Activity ts file is activity.android.ts. I put on JavaProxy decorator "a.b.NativeScriptActivity". Same on Android Maifest. Also added entry on AppComponents array on webpack.config.js

** I tried several times with new projects and always get same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.