Im completely new to titanium appcelerator and I did google this but only found outdated problems. I build a titanium alloy project I've installed xcode and connected the android sdk.
when I try to run on the the android emulator I get this error:
[ERROR] : Emulator process exited with code 1
[ERROR] : Build process exited with code 1
[ERROR] : Project failed to build after 1s 663ms
[ERROR] Application Installer abnormal process termination. Process exit value was 1`
when i try to run on the iPhone emulator I get this error
[ERROR] : An error occurred running the iOS Simulator
[ERROR] : [DEBUG] using retina iphone retina ios 7
[ERROR] :
[ERROR] : Project failed to build after 1m 25s 11ms
I really don't have an idea where this comes from, and I would appreciate any help.
Reset the Iphone simulator and you would be good to go
iOS Simulator->Reset Content and Settings...
Thanks
Related
I've spent all day trying to fix this error, i have no idea why this happens. i can build both iOS and android, but when i try to run on device, both iOS and android Exit code 1, here the log
BUILD SUCCESSFUL
Total time: 21.515 secs
Built the following apk(s):
/Users/Jose/Desktop/smarket/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=/Users/Jose/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
Skipping build...
Built the following apk(s):
/Users/Jose/Desktop/smarket/platforms/android/build/outputs/apk/android-debug.apk
Using apk: /Users/Jose/Desktop/smarket/platforms/android/build/outputs/apk/android-debug.apk
Package name: io.ionic.starter
Error: Failed to install apk to device: [ 0%] /data/local/tmp/android-debug.apk
[ 2%] /data/local/tmp/android-debug.apk
...
[ 99%] /data/local/tmp/android-debug.apk
[100%] /data/local/tmp/android-debug.apk
/Users/Jose/Desktop/smarket/platforms/android/build/outputs/apk/android-deb
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova run android --device (exit code 1).
I'm using ti.app in my Titanium project. Trying to create a MapView and add it in app main view. It doesn't work on a tablet nor with Genymotion emulator (I have a Virtual device with Google Apps installed). The error is the following:
[ERROR] GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
..
[ERROR] TiApplication: (main) [124,124] Sending event: exception on thread: main msg:java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/R$string;; Titanium 6.1.1,2017/06/26 16:09,undefined
[ERROR] TiApplication: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/R$string;
No errors at compile time. I followed the official documentation.
I solved using Nox App Player emulator.
I'm Testing My React Native Installation
First
react-native start
After That
react-native run-android
I Connected my Device to pc, But I have This Error:
Scanning 557 folders for symlinks in D:\Projects 2016\Web\Android\FirstApp\AwesomeProject\node_modules (15ms)
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\Projects 2016\Web\Android\FirstApp\AwesomeProject\android\app\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.533 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
It seems to the issue related with this question.
And the react-native docs indicates that it requires latest version of JDK.
Update your JDK version to latest one.
This is the error I got using adb logcat:
W V8Object: (KrollRuntimeThread) [33,34] Runtime disposed, cannot set property 'userAgent'
E linker : /data/app/com.app.id/lib/arm/module.id: has text relocations
I'm having this error when try to run my Titanium app on Android 6 device. As far as I know, this is something related to the NDK and my modules.
My problem is that I'm using around 5 or 6 modules on my app and I'm not able to recompile all of them. So, what can I do?
I also check this ticket:
https://jira.appcelerator.org/browse/TIMOB-19369
and also these issues on some modules repositories:
https://github.com/manumaticx/TiCrouton/issues/8
https://github.com/appcelerator-modules/ti.inappbilling/issues/14
My environment:
Ti SDK 5.1.2.GA
Android 6.0.1 on Nexus
My Android SDK:
important: it doesn't happen on any simulator
Thanks!
I trying add cordova android app and getting a json parsing error.
I think that it is cordova error, because I can create and test my projects with ionic and phonegap at Android Emulator.
C:\>cordova create hello hello.cd.cm HelloWorld
Creating a new cordova project with name "HelloWorld" and id "hello.cd.cm" at lo
cation "C:\hello"
C:\>cd hello
C:\hello>cordova platform add android -verbose
No version supplied. Retrieving version from config.xml...
CordovaError: Unable to fetch platform android: Error: Failed to parse json
Unexpected token
at C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\cordo
va-lib\src\cordova\platform.js:194:15
at _rejected (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_mo
dules\q\q.js:797:24)
at C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.j
s:823:30
at Promise.when (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node
_modules\q\q.js:1035:31)
at Promise.promise.promiseDispatch (C:\Users\user\AppData\Roaming\npm\node_m
odules\cordova\node_modules\q\q.js:741:41)
at C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.j
s:557:44
at flush (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_module
s\q\q.js:108:17)
at process._tickCallback (node.js:355:11)
Help me please.
UPD:
I degrade cordova from 4.3.0 to 4.2.0 and it works now. But it is not normal of course...