This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Absolute path is not resolved in v0.14.2 when extending activity #592
Closed
Description
Even after using the latest merged version :
"nativescript-dev-webpack": "^0.14.2",
- Which include this merged fix (absolute paths on Windows) - It seems that problem still exists when extending activity.
Using this command tns build android --bundle
Works Good:
const appComponents = [
"tns-core-modules/ui/frame",
"tns-core-modules/ui/frame/activity",
"./activity.android.ts"
];
But there's an error with this :
const appComponents = [
"tns-core-modules/ui/frame",
"tns-core-modules/ui/frame/activity",
resolve(__dirname, "app/activity.android.ts")
];
Exception in thread "main" java.io.IOException: File already exists. This may lead to undesired behavior.
Please change the name of one of the extended classes.
File:C:\r\a\platforms\android\app\src\main\java\org\myApp\MainActivity.java Class: org.myApp.MainActivity
at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:78)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:48)
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:runSbg'.
(After tns platform remove android && tns platform add android
- many times).
Here is a Sample empty project which shows the problem
Related info :
Windows 10
C:\r\a>tns info
√ Getting NativeScript components versions information...
√ Component nativescript has 4.1.2 version and is up to date.
√ Component tns-core-modules has 4.1.0 version and is up to date.
√ Component tns-android has 4.1.3 version and is up to date.
‼ Update available for component tns-ios. Your current version is 4.1.0 and the latest available version is 4.1.1.