I have created a Titanium ios 3.1.0 app, But now when I am trying to run it is giving me the following error.
[ERROR] : An error occurred running the iOS Simulator
[ERROR] : [DEBUG] Session could not be started:
Error Domain=DTiPhoneSimulatorErrorDomain Code=1
"SpringBoard failed to launch application with error: -3"
UserInfo=0x7fe2b84837c0 {NSLocalizedDescription=SpringBoard failed to
launch application with error: -3, DTiPhoneSimulatorUnderlyingErrorCodeKey=-3}
[ERROR] :
[ERROR] : Project failed to build after 1m 8s 528ms
Currently it shows only black screen
I have no idea what to do next, any help would be appreciated.
Do following and you would be good to go
1)Clean the project
2)Delete the build
3)And final and most important reset the simulator
Thanks
Related
Task :app:checkReleaseAarMetadata FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:checkReleaseAarMetadata'.
Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
Failed to transform appcompat-1.2.0.aar (androidx.appcompat:appcompat:1.2.0) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.
> Could not find appcompat-1.2.0.aar (androidx.appcompat:appcompat:1.2.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/1.2.0/appcompat-1.2.0.aar
Why when I want to run an Android yarn error like this?
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
> Task :app:processDebugResources FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings
10 actionable tasks: 2 executed, 8 up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
D:\xampp\htdocs\konspirasiSnack\android\app\src\main\AndroidManifest.xml:6:5-25:19: AAPT: error: resource m
ipmap/ic_launcher (aka com.konspirasisnack:mipmap/ic_launcher) not found.
D:\xampp\htdocs\konspirasiSnack\android\app\src\main\AndroidManifest.xml:6:5-25:19: AAPT: error: resource s
tring/app_name (aka com.konspirasisnack:string/app_name) not found.
D:\xampp\htdocs\konspirasiSnack\android\app\src\main\AndroidManifest.xml:6:5-25:19: AAPT: error: resource m
ipmap/ic_launcher_round (aka com.konspirasisnack:mipmap/ic_launcher_round) not found.
D:\xampp\htdocs\konspirasiSnack\android\app\src\main\AndroidManifest.xml:6:5-25:19: AAPT: error: resource s
tyle/AppTheme (aka com.konspirasisnack:style/AppTheme) not found.
D:\xampp\htdocs\konspirasiSnack\android\app\src\main\AndroidManifest.xml:13:7-23:18: AAPT: error: resource
string/app_name (aka com.konspirasisnack:string/app_name) not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. R
un with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 35s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnat
ive.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
react native versi 0.62.2
distributionUrl=https://services.gradle.org/distributions/gradle-6.0.1-all.zip
os windows 10
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)
ANDROID_HOME = C:\Users\user\AppData\Local\Android\Sdk
JAVA_HOME = C:\Program Files\Java\jdk
Everything was working fine then suddenly I'm getting following error
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
:react-native-mauron85-background-geolocation:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-mauron85-background-geolocation:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* 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: 23.413 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
I managed to fix this by changing one line in node_modules/react-native-mauron85-background-geolocation/android/lib/build.gradle
from
compile 'com.android.support:support-v4:+'
to
compile 'com.android.support:support-v4:23.+'
When i'm trying to build my app for android, i received following error from console :
[INFO] : No aidl files to compile, continuing
[INFO] : Generating i18n files
[INFO] : Generating /Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/res/values/theme.xml
[INFO] : Packaging application: /Users/xxx/Library/android-sdk-macosx/build-tools/23.0.1/aapt "package" "-f" "-m" "-J" "/Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/gen" "-M" "/Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/AndroidManifest.xml" "-A" "/Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/bin/assets" "-S" "/Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/res" "-I" "/Users/xxx/Library/android-sdk-macosx/platforms/android-23/android.jar" "-F" "/Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/bin/app.ap_" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview:com.facebook" "-S" "/var/folders/13/d0dckfds7071zrrts33x0fgm0000gn/T/117118-27860-1lfl9l7/res" "-S" "/var/folders/13/d0dckfds7071zrrts33x0fgm0000gn/T/117118-27860-sgvk1n/res" "-S" "/var/folders/13/d0dckfds7071zrrts33x0fgm0000gn/T/117118-27860-tpzi5i/res"
[ERROR] : Failed to package application:
[ERROR] :
[ERROR] : /Users/xxx/Documents/Appcelerator_Studio_Workspace/jobmobile/build/android/bin/assets/Resources/images/job-interim-jobinterim-tempwork-temporary-working-service-qarma-carma-app-jobapp-apple-google-mobile.png: error: Invalid filename. Unable to add.
So i cannot build my app to android, ios is working well.
Thank you for your helps.
The error messages says "invalid file name". So perhaps you should rename your file to a shorter name?
I havejust started having a play with Titanium to build a few small apps.
I have used one of the examples you can download and works fine on the mobile web preview.
I have connected my Samsung S3 and have tried deploying it to the that.
I get the following errors:
[TRACE] Writing out AndroidManifest.xml
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 2553, in <module>
[ERROR] builder.build_and_run(True, avd_id, device_args=device_args, debugger_host=debugger_host, profiler_host=profiler_host)
[ERROR] File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 2264, in build_and_run
[ERROR] self.manifest_changed = self.generate_android_manifest(compiler)
[ERROR] File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 1404, in generate_android_manifest
[ERROR] '-I', self.android_jar], warning_regex=r'skipping')
[ERROR] File "C:\Users\danyob\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\run.py", line 38, in run
[ERROR] print "[DEBUG] %s" % subprocess.list2cmdline(args_to_log)
[ERROR] File "C:\Users\danyob\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python\lib\subprocess.py", line 580, in list2cmdline
[ERROR] needquote = (" " in arg) or ("\t" in arg) or not arg
[ERROR] TypeError: argument of type 'NoneType' is not iterable
[ERROR] : Build process exited with code 1
[ERROR] : Project failed to build after 792ms
Anybody able to help?
As mentioned above this is an example app from titanium. It's the Geocoder one..
Cheers,
Dan
The 'NoneType' is not iterable is a recent problem with Android updating thier SDK and it takes a little time for Appcelerator to release an SDK update of their own to accommodate.
here is more info:
http://developer.appcelerator.com/blog/2013/05/updating-to-android-r22-tools.html
others have solved it by creating sym links to the moved files: https://developer.appcelerator.com/question/152497/titanium-sdk-310-error-typeerror-argument-of-type-nonetype-is-not-iterable-on-building-android-app