Alloy compiler failed but classic Titanium works - titanium

when I try to run a basic alloy app (two-tabbed template) I get this error:
[ERROR] : : Cannot find module './validators/react/isReactComponent'
[ERROR] : Alloy compiler failed
[ERROR] Application Installer abnormal process termination. Process exit value was 1
But when I run a classic app (two-tabbed template) whithout alloy then program runs ok.
My system is:
Operating System
Name = Mac OS X
Version = 10.14.5
Architecture = 64bit
Node.js
Node.js Version = 8.9.1
npm Version = 5.5.1
Appcelerator CLI
Installer = 4.2.15
Core Package = 7.1.2
Titanium CLI
CLI Version = 5.2.2
node-appc Version = 0.2.49

Try to update your Node version to 10.x (e.g. https://nodejs.org/dist/latest-v10.x/). After that install the CLI again (npm install -g appcelerator titanium alloy) and run appc use 7.1.2 --force to be sure that all packages are rebuild and you should be able to run the app

Related

An error occurred while running ionic cordova build android

when build android app using ionic ionic cordova build android comment getting an error
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=...\AppData\Local\Android\Sdk (DEPRECATED)
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information
ionic cordova build android
ionic cordova build android
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=...\AppData\Local\Android\Sdk (DEPRECATED)
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
As of Cordova-Android 6.4.0, Gradle is now required to be installed to build Android.
When installing on Windows, you need to add Gradle to your path, (see
Setting Environment Variables)

Titanium App fails to build with deprecation warning

App is failing to build on iOS with the following warnings:
[WARN] : Titanium 7.0.0 deprecates the legacy UI-execution on Kroll-Thread in favor of the Main-Thread.
[WARN] : The legacy execution will be removed in Titanium SDK 8.0.0.
Here is the environment:
Node.js Version = 8.9.1
npm Version = 5.5.1
CLI Version = 5.1.1
SDK Version = 7.5.1.GA

An error occurred during upgrade in react native

I am working on react native app, started the app using CRNA command to create the project then exp detach to detach. The problem I am having is this: when I started the app I was on windows, so it only created android folder while detaching, now that I want the app to build for iOS I kinda need to generate the iOS folder, to do this I am running react-native-git-upgrade so that it would generate iOS folder, but it throws an error as follow:
An error occurred during upgrade: git-upgrade ERR! Error:
react-native version in "package.json"
(https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz)
doesn't match the installed version in "node_modules" (0.54.2).
Is there any way that I can generate iOS folder without having to upgrade the app? I am so confused in this case and it seems that its quite benefit starting an app from an Mac OS system in this case, so u have both android and iOS folders generated.
Also tried to delete node_modules folder and tried npm install and it seems it added some packages but then again I get same problem when running react-native-git-upgrade
Note: I have node v10.0 installed on Mac
Anyone have any idea on this?
I successfully upgrade RN project using react-native upgrade instead of react-native-git-upgrade, here's the step:
You will be need to input project name in package.json on project root, just add this value "name": "<YOUR-APP-NAME>".
then run react-native upgrade, if you are prompted to downgrade RN package, to downgrade usenpm install react-native#x.x.x, for example: npm install react-native#0.43.4. check installed version using react-native -V.
Now run react-native upgrade, you will be asked to replace some files, input y to confirm.
After the upgrade done, revert to latest version of RN package using npm install react-native#x.x.x.

Error 'Could not determine java version from ‘10’

npm run android is not working.
node version: v8.9.4
npm version: 5.7.1
genymotion: 2.12.0
I'm getting the error:
Could not determine java version from ‘10’
I don't have have an Android Studio installed, but I have installed Gradle 4.6, and also set the path for Java, created JAVA_HOME and set path for genymotion.
Revert back the java version to 8*. Android does not support 9 or above, yet.

Appcelerator: Can't run or publish apps after Studio Update

I updated of Appcelerator Studio on Windows 10. During the process I got a message that there were errors during update process and Studio should be restarted.
Now I cannot run or publish apps (combo box is grey) and during every run Appcelerator Studio informs that there is an update to install: Appcelerator CLI core (required) with version N/A. If I try to install it I get following error:
Error encountered during update
undefined:1
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.readConfig (C:\Users\Worker\AppData\Roaming\nvm\v9.4.0\node_modules\appcelerator\lib\util.js:728:30)
at Object.<anonymous> (C:\Users\Worker\AppData\Roaming\nvm\v9.4.0\node_modules\appcelerator\bin\appc:96:23)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:193:16)
If I had problems with Appcelerator CLI core (required) with version N/A, I always used appc setup from command line and it was fixing the problem. But now if I type that I get same error.
I tried reinstalling Appcelerator, Node (I have updated version) but nothing helped.
Output of error when updating CLI via Studio:
STATUS
------
pluginId com.appcelerator.titanium.core
pluginVersion 3.1.2.1512467051
code 0
severity 4
message HIDDEN
fingerprint [some_value_here]
stacktrace
Exception:org.eclipse.epp.internal.logging.aeri.ui.log.StandInStacktraceProvider$StandInException: HIDDEN
at com.aptana.core.logging.IdeLog.log(IdeLog.java:563)
at com.aptana.core.logging.IdeLog.log(IdeLog.java:598)
at com.aptana.core.logging.IdeLog.logError(IdeLog.java:306)
at com.aptana.core.logging.IdeLog.logError(IdeLog.java:280)
at com.aptana.core.logging.IdeLog.logError(IdeLog.java:258)
at com.appcelerator.titanium.core.StudioVersionManager.getCLIActiveVersion(StudioVersionManager.java:139)
at com.appcelerator.titanium.core.StudioVersionManager.isCurrentCLIVersionCompatibile(StudioVersionManager.java:78)
at com.appcelerator.titanium.core.StudioVersionManager.isActiveCLICompatible(StudioVersionManager.java:49)
at com.appcelerator.titanium.update.core.release.TitaniumStudioRelease.getUpdatesWithStableStream(TitaniumStudioRelease.java:219)
at com.appcelerator.titanium.update.core.release.TitaniumStudioRelease.isInstalled(TitaniumStudioRelease.java:212)
at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater$NotInstalledFilter.include(TitaniumReleasesUpdater.java:105)
at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater$NotInstalledFilter.include(TitaniumReleasesUpdater.java:1)
at com.aptana.core.util.AndFilter.include(AndFilter.java:39)
at com.aptana.core.util.CollectionsUtil.filterInPlace(CollectionsUtil.java:249)
at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater.filterToRelevantUninstalledUpdates(TitaniumReleasesUpdater.java:915)
at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater.getStudioUpdates(TitaniumReleasesUpdater.java:326)
at com.appcelerator.titanium.update.internal.core.TitaniumReleasesUpdater.getAvailableUpdates(TitaniumReleasesUpdater.java:314)
at com.appcelerator.titanium.update.ui.handler.TitaniumUpdateHandler$1.run(TitaniumUpdateHandler.java:66)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
------
REPORT
------
name [email_I_use_to_log_in]
email anonymous
comment
productVersion 5.0.0.201712081732
productName Appcelerator Studio
javaRuntimeVersion 1.8.0_162-b12
osgiWs win32
osgiOs Windows 10
osgiOsVersion 10.0.0
osgiArch x86
Output of ti info as requested:
Operating System
Name = Microsoft Windows 10 Home
Version = 10.0.16299
Architecture = 64bit
# CPUs = 4
Memory = 7.9GB
Node.js
Node.js Version = 8.9.4 //I set to 8.9.4 but had same errors with 9.4.0
npm Version = 5.6.0
Titanium CLI
CLI Version = 5.0.14
node-appc Version = 0.2.41
Titanium SDKs
7.0.0.GA
Version = 7.0.0
Install Location = C:\ProgramData\Titanium\mobilesdk\win32\7.0.0.GA
Platforms = android, windows
git Hash = f09dec4
git Timestamp = 12/5/2017 21:33
node-appc Version = 0.2.43
6.2.2.GA
Version = 6.2.2
Install Location = C:\ProgramData\Titanium\mobilesdk\win32\6.2.2.GA
Platforms = android, mobileweb, windows
git Hash = 42c7196
git Timestamp = 9/19/2017 23:04
node-appc Version = 0.2.43
/****
Here is more SDKS
****/
Intel® Hardware Accelerated Execution Manager (HAXM)
Not installed
Java Development Kit
Version = 1.8.0_162
Java Home = C:\Program Files (x86)\Java\jdk1.8.0_162
Genymotion
Path = C:\Program Files\Genymobile\Genymotion
Genymotion Executable = C:\Program Files\Genymobile\Genymotion\genymotion.exe
Genymotion Player = C:\Program Files\Genymobile\Genymotion\player.exe
Home = C:\Users\Worker\AppData\Local\Genymobile\Genymotion
VirtualBox
Executable = C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
Version = 5.2.0r118431
Android SDK
Android Executable = not found
ADB Executable = C:\android-sdk-win\platform-tools\adb.exe
SDK Path = C:\android-sdk-win
Android NDK
NDK Path = not found
NDK Version = not found
Android Platforms
1) android-23
Name = Android 6.0
API Level = 23
Revision = 3
Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearRound360x360, AndroidWearRound400x400, AndroidWearRound480x480, AndroidWearRoundChin320x290, AndroidWearRoundChin320x300, AndroidWearRoundChin360x325, AndroidWearRoundChin360x326, AndroidWearRoundChin360x330, AndroidWearSquare, AndroidWearSquare240x240, AndroidWearSquare320x320
ABIs = armeabi-v7a, x86, x86_64
Path = C:\android-sdk-win\platforms\android-23
Android Add-Ons
None
Android Emulators
AVD_for_Nexus_6
ID = AVD_for_Nexus_6
SDK Version = not installed
ABI = armeabi-v7a
Skin = 1440x2560
Path = C:\Users\Worker\.android\avd\AVD_for_Nexus_6.avd
SD Card = no sd card
Google APIs = no
titanium_1_WVGA800
ID = titanium_1_WVGA800
SDK Version = not installed
ABI = armeabi-v7a
Skin = wvga800
Path = C:\Users\Worker\.android\avd\titanium_1_WVGA800.avd
SD Card = C:\Users\Worker\.android\avd\titanium_1_WVGA800.avd\sdcard.img
Google APIs = no
/****
Here is the list Genymotion Emulators
****/
Connected Android Devices
None
Microsoft (R) Visual Studio
14.0 (selected)
Path = C:\Program Files (x86)\Microsoft Visual Studio 14.0\
CLR Version = v4.0.30319
MSBuild Version = vnull
Windows Phone SDKs = not installed
Microsoft (R) Windows Phone SDK
No versions found
Windows PowerShell
Enabled = yes
Windows Phone Emulators
10.0
Windows Phone Devices
Android Issues
! Unable to locate an Android NDK.
Without the NDK, you will not be able to build native Android Titanium modules.
If you have already downloaded and installed the Android NDK, you can tell Titanium where the
Android NDK is located by running 'titanium config android.ndkPath /path/to/android-ndk',
otherwise you can install it by running 'titanium setup android' or manually downloading from
http://appcelerator.com/android-ndk.
!
Android Build Tools 27.0.0 are too new and may or may not work with Titanium.
If you encounter problems, select a supported version with:
ti config android.buildTools.selectedVersion ##.##.##
where ##.##.## is a version in that is 26.x
Windows Issues
× Microsoft Windows Phone SDK not found.
You will be unable to build Windows Phone apps.
You can install it from http://appcelerator.com/windowsphone.
How can I solve this issue?
Finally solved the issue.
Instructions:
Uninstall Appcelerator Studio.
Remove directories with settings:
.android
.appcelerator
.titanium
Unistall npm modules:
npm uninstall -g titanium
npm uninstall -g alloy
npm uninstall -g acs
npm uninstall -g appcelerator
Reinstall Appcelerator Studio.
If still have problems: Close Appcelerator Studio, type appc setup and restart Appcelerator Studio.