Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Plain JS/TS includes custom appComponents twice breaking sbg-generation #9549

Copy link
Copy link
Open
@Lucaszw

Description

@Lucaszw
Issue body actions

I've been following the procedure to extend the android application here.:

https://docs.nativescript.org/advanced-concepts.html#extending-the-android-application

However i continually get the following error:

Error executing Static Binding Generator: File already exists. This may lead to undesired behavior.
Please change the name of one of the extended classes.
File:/Users/***/Desktop/***-***/platforms/android/app/src/main/java/com/***/Application.java Class: com.***.Application

I can surpress the problem by commenting the following after the first build in the webpack config

	// webpack.chainWebpack(config => {
	// 	if (webpack.Utils.platform.getPlatformName() === 'android') {
	// 	  // make sure the path to the applicatioon.android.(js|ts)
	// 	  // is relative to the webpack.config.js
	// 	  // you may need to use `./app/application.android if
	// 	  // your app source is located inside the ./app folder.
	// 	  config.entry('application').add(resolve(__dirname, './app/application.android'))
	// 	}
	// })
	

However, this seems to prevent the application from ever launching

I am using the latest version of nativescript (8.1.2), nativescript-android (8.1.1)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.