Appcelerator run app on windows phone - windows-phone

I have this problem when build app on windows platform on device or emulator, appcelerator gives me this message:
[ERROR] : Invalid "--device-id" value "8-1-1"
2016-02-15T16:10:38.129Z | TRACE | titanium exited with exit code 1
2016-02-15T16:10:38.129Z | ERROR | Error: ti run exited with error code 1
at ChildProcess. (C:\Users\AAFGROUP.appcelerator\install\5.1.0\package\node_modules\appc-cli-titanium\plugins\run.js:92:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
2016-02-15T16:10:38.129Z | TRACE |
Sending exit signal to titanium process: 4972
I have already installed :
visual studio 2015
windows phone sdk
subscribe developer microsoft
configure appacelerator studio with publish id

Open the Command Prompt (or PowerShell) and run ti info and see if Titanium finds your Visual Studio installation and Windows Phone SDK. Also check the "issues" at the end for any other potential problems.
Titanium searches the Windows Registry for the installation location and it's possible that the Visual Studio or Windows Phone SDK installation is incomplete or corrupt.

Related

Build (React native) Android app and generate .apk file by using turtle cli from azure devops pipeline

I am trying to build Android app by using turtle cli for this i am using below script.
![258988-image.png][1]
npm install -g turtle-cli
turtle cli has installed and build also started but failing at building section, i am getting below error.
I am stuck guys, Could you please guide me where i am doing mistake. Let me know if you need more information.
error:
Nov 9 13:06:46 turtle[19222] ERROR: Failed to build standalone app
err: Error: ./gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/Users/runner/hostedtoolcache/node/14.19.3/x64/lib/node_modules/turtle-cli/node_modules/#expo/xdl/node_modules/#expo/spawn-async/src/spawnAsync.ts:65:13)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.emit (domain.js:475:12)
at maybeClose (internal/child_process.js:1088:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)
...
at spawnAsync (/Users/runner/hostedtoolcache/node/14.19.3/x64/lib/node_modules/turtle-
cli/node_modules/#expo/xdl/node_modules/#expo/spawn-async/src/spawnAsync.ts:26:19)
at spawn Async Throw Error (/#expo/xdl#59.2.1/src/detach/ExponentTools.ts:111:19)
at build Shell App sync (/#expo/xdl#59.2.1/src/detach/AndroidShellApp.js:1494:11)
at Object.create Android Shell AppAsync (/#expo/xdl#59.2.1/src/detach/AndroidShellApp.js:382:5)
at runShellAppBuilder (/Users/runner/hostedtoolcache/node/14.19.3/x64/lib/node_modules/turtle-cli/src/builders/android.ts:99:5)
at buildAndroid (/Users/runner/hostedtoolcache/node/14.19.3/x64/lib/node_modules/turtle-cli/src/builders/android.ts:31:26)
at /Users/runner/hosted tool cache/node/14.19.3/x64/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
at Command. (/Users/runner/hosted tool cache/node/14.19.3/x64/lib/node_modules/turtle-cli/src/bin/index.ts:23:12)
platform: "android"

Failed to fully start Android device Emulator on a windows 11 machine to run a react native application

I am building a react-native application and I have been testing the application on an android device simulator. However after running the npm run eject command to stop using the expo-cli; I have failed to run the project/app in my android emulator anymore.
Initially I was opening the android emulator within VSCode but after it failed I tried to open the android emulator in command propmt directly; outside the code editor. Below is the output I received.
INFO | Android emulator version 31.2.7.0 (build_id 8135630) (CL:N/A)
INFO | added library vulkan-1.dll
INFO | configAndStartRenderer: setting vsync to 60 hz
ERROR | Failed to open /qemu.conf, err: 2
WHPX on Windows 10.0.22000 detected.
Windows Hypervisor Platform accelerator is operational
INFO | Started GRPC server at 127.0.0.1:8554, security: Local
INFO | Advertising in: C:\Users\Were\AppData\Local\Temp\avd\running\pid_8104.ini
C:\Users\Were\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: WHPX: Unexpected VP exit code 4
INFO | Shutting down gRPC endpoint
INFO | Shutting down gRPC endpoint
I need someone to help me make sense of the statement/error log so I can be able to run my app in the android emulator again.
[EDIT]
This is the error log i received within VisualStudio Code before trying to open the emulator in command prompt
› Press ? │ show all commands
› Opening on Android...
› Opening emulator My_Pixel_Emulator
Couldn't start project on Android: The emulator (My_Pixel_Emulator) quit before it finished opening. You can try starting the emulator manually from the terminal with: C:\Users\Were\AppData\Local\Android\Sdk/emulator/emulator #My_Pixel_Emulator
› Press ? │ show all commands
C:\Users\Were\Desktop\Demo\DoneWithIt\node_modules\metro-hermes-compiler\src\emhermesc.js:81
throw ex;
^
RuntimeError: abort(Error: could not connect to TCP port 5554: cannot connect to 127.0.0.1:5554: No connection could be made because the target machine actively refused it. (10061)). Build with -s ASSERTIONS=1 for more info.
at process.abort (C:\Users\Were\Desktop\Demo\DoneWithIt\node_modules\metro-hermes-compiler\src\emhermesc.js:796:13)
at process.emit (events.js:315:20)
at process.emit (C:\Users\Were\AppData\Roaming\npm\node_modules\expo-cli\node_modules\source-map-support\source-map-support.js:439:21)
at processPromiseRejections (internal/process/promises.js:245:33)
at processTicksAndRejections (internal/process/task_queues.js:94:32)
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

React Native and Android Studio licenses issue

I'm having a problem with React Native and Android licenses.
My Android knowledge is dated, I do write React but have no experience with React Native. Which is why I hired someone to turn a progressive web app I made into a native one. But due to circumstances I now have to finish the final thing myself.
The app was created on a mac, I'm trying to run it on pc.
The app does build for both IOS and Android from the Microsoft Appcenter. So I know it works, but I want it to run locally as well.
After doing all the installing and running react-native run-android the build starts but halts due to unaccepted licenses.
I already had Android Studio installed. I have checked the SDK Manager for the correct package versions (with 'show package details').
Updated everything I can think of including reinstalling Android Studio for the nth time. After the first uninstall/reinstall it would put it into a directory suffixed with '1' probably because the original directory couldn't be deleted. Yet the environment variables still pointed to the one without the suffix.
Accepting the licenses through cli with sdkmanager --licenses did opt me to accept a couple of times, but it didn't match the number of unaccepted packages I get from the react-native run-android error and the error remained the same afterwards (forgot to pay attention to which packages I was accepting though).
Two curious things:
- the error seems to be looking for licenses in a folder licenses yet my Android Studio folder only contains a folder license
- the error states Using Android SDK: C:\Program Files\Android\Android Studio but during the install of Android Studio I put mine in C:\AndroidSDK because it was whining about spaces.
Here is the error I get after running react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 905 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Installing the app...
> Configure project :app
Checking the license for package Android SDK Platform-Tools in C:\Program Files\Android\Android Studio\licenses
Warning: License for package Android SDK Platform-Tools not accepted.
Checking the license for package SDK Patch Applier v4 in C:\Program Files\Android\Android Studio\licenses
Warning: License for package SDK Patch Applier v4 not accepted.
Checking the license for package Android Emulator in C:\Program Files\Android\Android Studio\licenses
Warning: License for package Android Emulator not accepted.
Checking the license for package Android SDK Tools in C:\Program Files\Android\Android Studio\licenses
Warning: License for package Android SDK Tools not accepted.
Checking the license for package Android SDK Build-Tools 28.0.3 in C:\Program Files\Android\Android Studio\licenses
Warning: License for package Android SDK Build-Tools 28.0.3 not accepted.
Checking the license for package Android SDK Platform 28 in C:\Program Files\Android\Android Studio\licenses
Warning: License for package Android SDK Platform 28 not accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
patcher;v4 SDK Patch Applier v4
build-tools;28.0.3 Android SDK Build-Tools 28.0.3
emulator Android Emulator
tools Android SDK Tools
platforms;android-28 Android SDK Platform 28
platform-tools Android SDK Platform-Tools
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
Using Android SDK: C:\Program Files\Android\Android Studio
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
error Failed to install the app. Please accept all necessary SDK licenses using SDK Manager: "$ANDROID_HOME/tools/bin/sdkmanager --licenses". Run CLI with --verbo
se flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
patcher;v4 SDK Patch Applier v4
build-tools;28.0.3 Android SDK Build-Tools 28.0.3
emulator Android Emulator
tools Android SDK Tools
platforms;android-28 Android SDK Platform 28
platform-tools Android SDK Platform-Tools
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
Using Android SDK: C:\Program Files\Android\Android Studio
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
at checkExecSyncError (child_process.js:611:11)
at execFileSync (child_process.js:629:15)
at runOnAllDevices (C:\Users\foo\bar\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAl
lDevices.js:74:39)
at buildAndRun (C:\Users\foo\bar\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\index.js:15
8:41)
at C:\Users\foo\bar\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Command.handleAction (C:\Users\foo\bar\node_modules\#react-native-community\cli\build\cliEntry.js:160:7)

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.

(404) The request is not recognized during Ti compile

When attempting to build my Ti app, run it in the simulator, or run it on my device, suddenly I get this error during compile:
[ERROR] : (404) The request is not recognized!
TRACE | titanium exited with exit code 100
ERROR | Error: ti run exited with error code 100
at ChildProcess.<anonymous> (/Users/natej/.appcelerator/install/4.1.2/package/node_modules/appc-cli-titanium/plugins/run.js:84:66)
at ChildProcess.emit (events.js:117:20)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)
I am running latest Appcelerator Studio and building with Ti SDK 4.1.0 GA. I have tried to Clean my project, but that didn't help. Normally when there's a bug in my code I get a helpful error message and it indicates the offending line number. But this tells me nothing and I have no idea what to do about it.
I did find this bug report: https://jira.appcelerator.org/browse/CLI-764
Anything I can do?
Currently Appcelerator is having issues / is down. You can find more here: https://community.appcelerator.com/topic/151/error-invalid-session-titanium-exited-with-exit-code-100/21
Just wait till they fix it, and you can build again. You can use the old Titanium CLI to build though. Just type ti build in CLI
edit: it seems up again