Legacy Appcelerator Project Skips Adding Modules - appcelerator

I've got a 3-year old Appcelerator Titanium project that I'm trying to build with a newer SDK (mainly to avoid having to install an older xCode to build against). It was originally built with 3.1.x. I've tried 5.x and 6.x with the same runtime error:
[ERROR] Script Error Couldn't find module: com.mirasense.scanditsdk for architecture: arm64
The module doesn't matter. I can remove the require for that one, and it will fail at commonjs modules as well, like ti.cloud. Also, I am 100% certain that the module is built with 64-bit support, as I've been using it for some years now.
There is a line in the build log:
[TRACE] No native module libraries to add
And prior to that:
[DEBUG] Detected iphone module: com.mirasense.scanditsdk 1.1.1 # /Users/trey/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/1.1.1
[DEBUG] Detected iphone module: com.mirasense.scanditsdk 1.2.0 # /Users/trey/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/1.2.0
[DEBUG] Detected iphone module: com.mirasense.scanditsdk 1.2.2 # /Users/trey/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/1.2.2
[DEBUG] Detected iphone module: com.mirasense.scanditsdk 4.2.1 # /Users/trey/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/4.2.1
[DEBUG] Detected iphone module: com.mirasense.scanditsdk 4.5.0 # /Users/trey/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/4.5.0
[DEBUG] Detected iphone module: com.mirasense.scanditsdk 5.1.0 # /Users/trey/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/5.1.0
[DEBUG] Detected iphone module: com.mirasense.scanditsdk 5.2.1 # /Users/trey/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/5.2.1
So it knows the module is there, build doesn't know the project needs the modules. I just can't figure out why. I'm building this way:
appc run -p ios -T device
Build is successful, the error only happens at runtime. Same thing building on the simulator, but for x86_64.
Here is the modules section of tiapp.xml:
<modules>
<module>com.mirasense.scanditsdk</module>
<module platform="commonjs">ti.cloud</module>
</modules>
Any insight?

Older version of module doesn't support arm 64 bit architecture, therefore please download the latest com.mirasense.scanditsdk (scanditsdk) module from market this will resolve this issues,
Secondly if you are not using the module any more then remove it from tiapp.xml file and clean and rebuild project.
All the older versions of module you need to either regenerate or if available then download from git/appcelerator market.
This will resolve your problems.

Related

KMM: Build fails caused by being locked by another Gradle instance, when switching the OS to build

I created a KMM project (ios framework distribution is CocoaPods) and just built the application without changing the code.
When I build the iOS application after building the Android application (even if I run Android after iOS), it fails with a following error.
Gradle could not start your build.
> Could not create service of type ResourceSnapshotterCacheService using GradleUserHomeServices.createResourceSnapshotterCacheService().
> Timeout waiting to lock file hash cache (/Users/<user-name>/.gradle/caches/6.7.1/fileHashes). It is currently in use by another Gradle instance.
Owner PID: 57033
Our PID: 57624
Owner Operation:
Our operation:
Lock file: /Users/<user-name>/.gradle/caches/6.7.1/fileHashes/fileHashes.lock
If I kill the another Gradle process and delete the lock file, the build will succeed. But I can't do this every time.
I don't know what's wrong and differences from others.
BTW, I created the project that supports improved Gradle task embedAndSignAppleFrameworkForXcode.
My environment is below...
macOS Big Sur 11.4
Android Studio 4.2.2
Kotlin 1.5.21
Kotlin Multiplatform Mobile 0.2.6 (202-1.5.10-release-894-IJ)-8
Gradle 6.7.1
AGP 4.2.2
Java 11.0.8 2020-07-14 LTS
Xcode: 12.5.1 (12E507)
Try updating gradle to 7.1.1 (latest version)
If this doesn't help, consider creating an issue on jetbrains issue tracker, because this doesn't seems like a typical problem and may be solved much faster there

Nativescript - build error under Android

Getting the following error when doing a production build on the Android.
Debug build works - but web-packing is disabled.
I've get web-packing enabled.
The build script was working before I upgraded to 3.4 - something changed?
`FAILURE: Build failed with an exception.
Where:
Build file '/Users/asrock/Documents/publish-android/platforms/android/build-tools/android-static-binding-generator/build.gradle' line: 281
What went wrong:
Execution failed for task ':asbg:generateBindings'.
No /Users/asrock/Documents/publish-android/platforms/android/build-tools/android-static-binding-generator/bindings.txt was found after runAstParser task was ran! Check to see if there are any .js files inside /Users/asrock/Documents/publish-android/platforms/android/app/src/main/assets/app`
I had the same error, resolved with upgrade:
Component nativescript has 4.0.0 version and is up to date.
Component tns-core-modules has 4.0.0 version and is up to date.
Component tns-android has 4.0.0 version and is up to date.
Component tns-ios has 4.0.1 version and is up to date.
nativescript-angular │ 5.3.0 │

Can’t compile modules anymore after sdk updates to 7.0.2

The latest updates of appcelerator to the newest SDK, cli, titanium studio, has now results in the failed built of every android modules I have created so far.
Below is the error -
Buildfile: /Users/Documents/sdk7module/android/build.xml
BUILD FAILED
/Users/Documents/sdk7module/android/build.xml:55: Cannot find /Users/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/module/android/build.xml imported from /Users/Documents/sdk7module/android/build.xml
Total time: 448 milliseconds
Any help is appreciated.
After installing ccache, I was able to compile the module without any error.

Gradle in the mac's idea, build sync failed

Created a gradle project with idea2017 for mac, when refresh all gradel projects, build:sync failed
java version: 1.8.0
gradle version: 4.4
Error: Could not find or load main class .Library.Java.JavaVirtualMachines.jdk1.8.0_152.jdk.Contents.Home
How can I build it?
Thanks.
I have already set JAVA_HOME

Nativescript. Execution failed for task ':mergeF0DebugResources'

I am getting the following exception Execution failed for task ':mergeF0DebugResources.
When running 'tns build android' or 'tns run android --emulator'
tns version: 2.0.1
java version "1.8.0_92"
This error typically means your platform folder has been messed up. Typically in v2.0x of NativeScript this is typically caused because you added or removed a plugin. In the next (hopefully) version this should be fixed.
However, in the meantime to "fix" this error all you typically need to do is:
tns platform remove android
then
tns platform add android
The other possibility is that you do not have the android sdk installed properly. If you type "android" at a command/terminal window, does it show that you have all the following installed:
Android SDK Tools
Android SDK Platform Tools
Android SDK Build Tools
At least one of the SDK's, 4.4.2 and higher
Android Support Repository
Android Support Library
All of them must be showing that they are installed.

Resources