Appcelerator - ERROR Could not find all required Titanium Modules - titanium

Getting started with cloning a new Appcelerator project. I keep receiving this error. Many Appcelerator Google results are now archived and have not been able to access those Q/A.
I run the project via a Makefile that has:
all:
#${MAKE} clean
#${MAKE} compile
#${MAKE} run-sim
init:
...
#gittio install ti.airprint
#gittio install bencoding.blur
#gittio install de.marcelpociot.circularprogress
#${MAKE} all
After running make init. A long compilation process happens followed by the following
/Users/username/.nvm/versions/node/v0.12.7/bin/node /Users/username/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium build --platform ios --plugin-paths /Users/username/.appcelerator/install/5.1.0/package/node_modules --config-file /var/folders/lj/c7hfzz254cd3lt2nxscv_wgw0000gn/T/build-1453310098056.json --log-level info --no-banner
[INFO] Found Titanium module id=bencoding.blur version=0.37 platform=iphone deploy-type=development path=/Users/username/Jester/cruisers-dealers/modules/iphone/bencoding.blur/0.37
[INFO] Found Titanium module id=de.marcelpociot.circularprogress version=1.1 platform=iphone deploy-type=development path=/Users/username/Jester/cruisers-dealers/modules/iphone/de.marcelpociot.circularprogress/1.1
[INFO] Found Titanium module id=ti.worker version=1.1.0 platform=iphone deploy-type=development path=/Users/username/Jester/cruisers-dealers/modules/iphone/ti.worker/1.1.0
[WARN] Could not find a valid Titanium module id=ti.airprint version=1.3.4 platform=iphone deploy-type=development
[INFO] Found Titanium module id=ti.cloud version=3.2.9 platform=commonjs deploy-type=development path=/Users/username/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.9
[ERROR] Could not find all required Titanium Modules:
[ERROR] id: ti.airprint version: 1.3.4 platform: iphone deploy-type: development
2016-01-20T17:15:02.058Z | ERROR | ti run exited with error code 1
make[2]: *** [run-sim] Error 1
make[1]: *** [all] Error 2
make: *** [init] Error 2
Update:
<modules>
<module platform="iphone" version="0.37">bencoding.blur</module>
<module platform="iphone" version="1.1">de.marcelpociot.circularprogress</module>
<module version="1.1.0" platform="iphone">ti.worker</module>
<module version="1.3.4" platform="iphone">ti.airprint</module>
<module platform="commonjs">ti.cloud</module>
</modules>
Update 2: After changing version on tiapp.xml to match that of the directory.
[Error: Module version mismatch. Expected 14, got 46.]
[ERROR] socket hang up
2016-01-20T18:16:24.368Z | ERROR | ti run exited with error code 100
make[2]: *** [run-sim] Error 1
make[1]: *** [all] Error 2
make: *** [init] Error 2

Changing the version number in tiapp.xml
<module version="1.3.4" platform="iphone">ti.airprint</module>
to match the projectname/modules/iphone/ti.airprint/1.4.3 did it for me. So this
<module version="1.3.4" platform="iphone">ti.airprint</module>
did it. I received other errors after doing this, but that is beyond this question.

You wrote 1.3.4 instead of 1.4.3, which is the correct version number.
1.3.4 is not existing in the releases: https://github.com/appcelerator-modules/ti.airprint/releases

The last error you see ([Error: Module version mismatch. Expected 14, got 46.]) happens when you've changed your NodeJS version. An Node (NPM) Module that uses native extensions will need to be rebuild if the NodeJS version has a different API then the previous. If you use ti then re-install that via NPM. If you use appc then do appc install 5.1.0 --force.
Appcelerator is working on detecting this and rebuilding for you.

I had compiled the module with a newer SDK than the one I was using in the project where I imported it. Appcelerator Studio pointed that out.

Related

ValidationError: "trackingID" is required

I'm trying to upgrade docusaurus to the latest version v2.3.1 but got the following errors when running yarn start
yarn start
yarn run v1.22.19
$ docusaurus start
[INFO] Starting the development server...
[ERROR] ValidationError: "trackingID" is required
[INFO] Docusaurus version: 2.3.1
Node version: v18.12.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Here is the config:
https://github.com/OpenAPITools/openapi-generator/blob/relesae-fix/website/docusaurus.config.js
Searched for the error message but got nothing related to trackingID in particular.

React Native code is not running on Emulator in VS Code

Emulator is opening fine when I try to run the code with the command in VS Code but code is not running on it. Something is wrong that I'm unable to solve. Please help!
Following is the error -
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
(node:7884) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency(Use `node --trace-warnings ...` to show where the warning was created)
Jetifier found 870 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
FAILURE: Build failed with an exception.
* Where:
Settings file 'D:\OLA\OlaProject\android\settings.gradle'
* What went wrong:
Could not compile settings file 'D:\OLA\OlaProject\android\settings.gradle'.
> startup failed:
General error during semantic analysis: Unsupported class file major version 60
settings.gradle
rootProject.name = 'OlaProject'
apply from: file("../node_modules/#react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
gradle.properties
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.99.0
Can you share your settings.gradle and Gradle-wrapper.properties file?
Maybe it's problem with the gradle version you are using, try to change your gradle version in gradle-wrapper.properties file and see if it's working or not.
Also check build.gradle and see if com.android.tools.build:gradle:x.x.x is compatible with your current gradle version
https://developer.android.com/studio/releases/gradle-plugin

TypeError: Cannot read property 'getCurrentUserAsync' of undefined

I am trying to debug my react-native app using 'Debug in Exponent'
and I got this error where the packager is starting successfully but with the error in the console
Configurations are:
VSCODE Version: 1.35.1
React-Native VS Code extension version: 0.10.2
Node.js: 10.2.0
OS: Linux x64 4.4.0-154-generic
Expo: 2.21.1
I have tried upgrading and downgrading the vscode.
deleted the node_module and installed npm again.
I even cleared out all the settings and created the fresh launch.json in .vscode so far with no success
error in console is as follows
[Info] Making sure your project uses the correct dependencies for Expo. This may take a while...
Checking if this is Expo app......
[Info] Packager is already running.
[Info] Prewarming bundle cache. This may take a while ...
[Info] Building and running application.
[Error] TypeError: Cannot read property 'getCurrentUserAsync' of undefined
Same problem occurs with the configuration below :
VSCODE Version: 1.36.1
React-Native VS Code extension version: 0.10.2
Node.js: 10.15.1
OS: Win32 x64
Expo: 3.0.2
The temporary workaround is described here which worked for me..

Build Failed after importing ios module in Appcelerator App

I am creating FBAudienceNetwork.framework module for iOS in appcelerator then using it in mobile App but getting compilation error for app.
I have created a module in appcelerator studio, i have put the FBAudienceNetwork.framework in module inside ios/patform folder, the module built successfully.
Then i am importing that module in appcelerator project while compiling it shows an error.
I have also follow this link : https://docs.axway.com/bundle/Titanium_SDK_allOS_en/page/ios_module_64-bit_support.html
The command lists the required architectures.
xcrun lipo -info libcom.usp.fbaudience.a
Architectures in the fat file: libcom.usp.fbaudience.a are: armv7 i386 x86_64 arm64
Xcode Version : 10.1
Titanium SDK : 8.0.0.GA
var facebookAudienceNetwork = require('com.usp.fbaudiancenetwork');
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld /Users/uspapps4/Documents/workspace2/fbAudienceNetworkDemo/build/iphone/build/Intermediates/fbAudienceNetworkDemo.build/Debug-iphoneos/fbAudienceNetworkDemo.build/Objects-normal/armv7/fbAudienceNetworkDemo normal armv7.

Titanium modules importing error

i am new into Titanium appcelarator IDE and upon running a project after importing modules, i get the following error. I have attached screenshots of my project. any help would be greatly appreciated !
[WARN] : Could not find a valid Titanium module id=ti.paint version=latest platform=android deploy-type=development
[WARN] : Could not find a valid Titanium module id=com.rkam.swiperefreshlayout version=latest platform=android deploy-type=development
[WARN] : Could not find a valid Titanium module id=ti.inappbilling version=latest platform=android deploy-type=development
[WARN] : Could not find a valid Titanium module id=com.cameraandroid version=latest platform=android deploy-type=development
[ERROR] : Could not find all required Titanium Modules:
[ERROR] : id: ti.paint version: latest platform: android deploy-type: development
[ERROR] : id: com.rkam.swiperefreshlayout version: latest platform: android deploy-type: development
[ERROR] : id: ti.inappbilling version: latest platform: android deploy-type: development
[ERROR] : id: com.cameraandroid version: latest platform: android deploy-type: development
The module must be in app/modules/android/ and app/modules/iphone
Take a look at Gittio, you can find modules and installing commands there. No need to do everything your self, just paste a command and hit enter. CLI will install it into the right folder straight away.