When I compile my application targeting android sdk 23 on with 5.1.1.GA and a phone running Marshmallow I get a crash on the startup of the app right after
[INFO] App successfully installed
[INFO] Starting app: com.rexel.rexelmobile/.RexelUsaActivity
[DEBUG] Trying to start the app...
[INFO] Application pid: 30040
[INFO] Project built successfully in 1m 11s 341ms
I have no way of knowing what is causing this, if I use a Lollipop phone everything works fine. My log level is the lowest possible.
UPDATE: It is a module. I am working on modifying it to add the ask for permissions requirement. I hope Appcelerator knows that Marshmallow likely broke a majority of the current modules.
I was getting the same error as you but I am using 5.1.0.GA.
If you are using any modules, make sure they are updated. I am using ti.imagefactory and had to update it from 2.1 to 2.2 in order to get Android M to actually open my app. Hope this solves your problem.
Related
We upgraded the mobile development project we are working on to React Native v0.70.3 from 0.66.4 and our build starting to give all sort of issue in our build server after that. Both iOS and Android builds are failing with following error messages.
Android:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-camera-kit:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/Users/jenkinsoffshore/CICDBuilds/workspace/Mobile-Service-Android/node_modules/react-native-camera-kit/android/build/intermediates/merged_res/release/values/values.xml:2784: AAPT: error: resource android:attr/lStar not found.
iOS:
iOS build ends in success and we can upload to testflight as well. but getting the following error in email and the app crashes in devices.
ITMS-90863: Apple silicon Macs support issue - The app links with libraries that are not present on Mac:
#rpath/hermes.framework/hermes
After you’ve corrected the issues, you can upload a new binary to App Store Connect
We upgraded the MacOS version to Ventura and Xcode along with in the build machine. In developer machine both builds work fine.
Do we have to do anything specifically after upgrading to React Native 0.70.3?
Downgrade to atmost react-native 0.69
Rebuilding the server completely solve the issue. We had to setup everything from scratch. There must be a simple solution that that but project deadlines made us to go for a full re-inttall.
So this has been asked before but I'm asking it again because nothing has worked, I've read through all of the similar posts I could find and all but one has semi fixed the problem.
https://medium.com/#adityasingh_32512/solved-unable-to-load-script-from-assets-index-android-bundle-bdc5e3a3d5ff
This medium article is the only solution that i can find that will get debug builds running again but that is only because it is pre packaging the javascript bundle and not really fixing the problem of the app not connecting to the metro server, once the debug build is running via this method I'm unable to shake the device and get the debug menu to show up.
I've been developing this app for probably 10 months, live for 3-4 months, and can usually trudge through these errors that pop up but this one is tricky.
I've been using cleartextTrafficPermitted="true", tried implementing a custom network security config android:networkSecurityConfig="#xml/network_security_config", tried a different physical device, cleared the metro cache, deleted .gradle/ build folders, cleaned, rebuilt.. All with the same end result of the app crashing on boot and the same error in logcat Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
Release builds work but that's because its not trying to connect to the metro server, pretty stumped on this one.
Answering this for others that might find it useful. Still not sure what I did wrong but in the process of setting up a CI/CD pipeline for the app I re cloned the project and magically android debug builds started working again. No changes to the code, the android project must have gotten corrupted somehow so recloning allowed android studio to start from square one. Weird one.
i'm a little bit stuck with a problematic.
I'm trying to use continuous integration to build my app and deploy them to Crashlytics.
I've tried a lot of different solutions (Fastlane, Gradle, manual execution). Theses solutions are working when my application was already deployed with the Fabric.app and the Android Studio Fabric Plugin.
But, when i'm trying to deploy a new application, everything is working fine, i've got this message at the end :
fastlane.tools finished successfully
One the Fabric dashboard, i'm unable to find my application.
Is there any way to build and deploy applications for the first time without Fabric.app and Android Studio Fabric Plugin ?
Yes! But you will need to integrate Crashlytics, and build and run the app. We need to detect both a build and run event per bundle ID or package name in order to provision your app in our system.
Thanks!
when I code :
ti build --platform ios --target device
I got this issue :
[TRACE]/usr/bin/touch -c /Users/wind/workspace/yuehouse/build/iphone/build/Debug-iphoneos/yuehouse.app.dSYM
[TRACE] ** BUILD SUCCEEDED **
[INFO] Installing app on device: xxx iPhone
[ERROR] Failed to start "com.apple.syslog_relay" service (0xe800007f)
[ERROR] Project failed to build after 40s 884ms
[ERROR] Failed to start "com.apple.syslog_relay" service (0xe800007f)
Just disable wifi on your device while building
Try disable iTunes sync over Wi-Fi, it works for me.
That is a well known bug which is still open.
According to other users it may help to reboot your phone and/or your Mac. Other users tried to install it several times and suddenly it worked. It could also help to unplug your phone and plug it in again.
-- This is from TIMOB17595
(it just worked for me, perfectly)
Here's my workaround "ritual":
1- Unplug your device
2- Clean the project
3- Log out Appcelerator
4- Re-open Appcelerator and log in
5- Plug your device
6- Run the app
I downloaded Titanium and installed. As instructed in quick guide, I created Hello World Project. I run the project. Looks everything going well. Last few line in console:
[INFO] : Running application in iOS Simulator
[INFO] : Launching application in iOS Simulator
[INFO] : Focusing the iOS Simulator [
[INFO] : Application has exited from iOS Simulator
[INFO] : Project built successfully in 37s 420ms
However, the simulator doesn't launched. What went wrong?
try to clean build project and delete app if installed in simulator then try again.
try this 3-4 times because sometimes it creates problem as you got.
and also try to build app with different titanium sdks as well.
Fixed after upgrading to Mac to 10.8