Android Things with Crashlytics error - crashlytics

I use Android Things Developer Preview 7.
Without Crashlytics my app works properly.
When I install fabric.Crashylitics on the code:
Fabric.with(this, new Crashlytics());
I receive the following error:
Caused by: io.fabric.sdk.android.services.concurrency.UnmetDependencyException: This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up,
install an Android build tool and ask a team member to invite you to this app's organization.
at com.crashlytics.android.core.CrashlyticsCore.onPreExecute(CrashlyticsCore.java:233)
at com.crashlytics.android.core.CrashlyticsCore.onPreExecute(CrashlyticsCore.java:207)
at io.fabric.sdk.android.InitializationTask.onPreExecute(InitializationTask.java:44)
at io.fabric.sdk.android.services.concurrency.AsyncTask.executeOnExecutor(AsyncTask.java:611)
at io.fabric.sdk.android.services.concurrency.PriorityAsyncTask.executeOnExecutor(PriorityAsyncTask.java:43)
at io.fabric.sdk.android.Kit.initialize(Kit.java:69)
at io.fabric.sdk.android.Fabric.initializeKits(Fabric.java:440)
at io.fabric.sdk.android.Fabric.init(Fabric.java:384)
at io.fabric.sdk.android.Fabric.setFabric(Fabric.java:342)
at io.fabric.sdk.android.Fabric.with(Fabric.java:313)
at androidthings.project.alarm.MainActivity.onCreate(MainActivity.java:60)
at android.app.Activity.performCreate(Activity.java:7000)
at android.app.Activity.performCreate(Activity.java:6991)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
Does Crashlytics support Android Things?

Related

Library linking issue after upgrading to React Native 0.70.3

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.

Error when testing ionic app on IOS device

I have this error when i test ionic app on IOS device
i have adding the signing but i have the same error
i test this app on browser and emulator is working with xcode but on device ios not working this is the error
Showing Recent Issues
Signing for "MyApp" requires a development team. Select a development team in the Signing & Capabilities editor.
please someone can help me ?
first try to clean and rebuild the project again. But if it works in the browser and emulator, but not on a device. This is a symptom that you havent paid and have a valid anual license of xcode

How to fix optimazition error publish in play store

my apk is 1.4MB but error is "This APK results in unused code and resources being sent to users. Your app could be smaller if you used the Android App Bundle. By not optimizing your app for device configurations, your app is larger to download and install on users' devices than it needs to be. Larger apps see lower install success rates and take up storage on users' devices."
how to fix this error
It's only a warning, not an error.
For an app that small I wouldn't worry.
It's not something that's made its way into the Ionic ecosystem yet but I heard that if you open up your project in Android Studio and then do the build through there you can create an app bundle.
I'm not totally sure that its fully tested for Ionic so you might have issues with this, but Android have published a full guide:
https://developer.android.com/guide/app-bundle#get_started
This is what they say:
Download Android Studio 3.2 or higher—it's the easiest way
to add dynamic feature modules and build app bundles.
Add support for Dynamic Delivery
by including a base module, organizing code and resources for configuration
APKs, and, optionally, adding dynamic feature modules.
Build an Android App Bundle using Android Studio.
If you're not using the IDE, you can instead build an app bundle from the
command line.
Test your Android App Bundle by using it to generate APKs that
you deploy to a device.
Enroll into app signing by Google Play.
Otherwise, you can't upload your app bundle to the Play Console.
Publish your app bundle to Google Play.

Is It Possible to Build and Distribute Simulator builds in AppCenter?

Our Automation QA team require a simulator build of the test app. Getting below error while building:
Is It Possible to Build and Distribute Simulator builds in AppCenter?
I have contacted Appcenter's Helpdesk. Following is their response :
You can build and distribute apps in App Center that can run on simulators and also on real devices.
For Android, if the build has been correctly signed, the APK can be installed on a real device and deployed to the Play Store. If the build has not been signed, the APK can be run on an emulator.
For iOS simulator, it is required for you to properly code sign the app. You can learn more about code signing for iOS here: https://learn.microsoft.com/en-us/appcenter/build/ios/code-signing
Then please see the steps below to set up code signing when building your app in App Center:
To sign the builds produced from a branch, enable code signing in the configuration pane and upload a provisioning profile (.mobileprovision) and a valid certificate (.p12), along with the password for the certificate.
Download the ipa file to install on a simulator.

React-Native-Camera can't compile to android emulator

I am busy trying to implement camera functionality into an app I am writing in react-native. I have installed react-native-camera via npm and have this working solidly in IOS.
When I try and run on android, the project does not build and throws below error
node_modules/react-native-camera/android/src/main/java/org/reactnative/camera/events/BarCodeReadEvent.java:27: error: no suitable method found for init(int)
I have specified the correct android sdk build tools as described on https://github.com/react-native-community/react-native-camera.
I can run simple projects on my android emulator but as soon as I link the react-native-camera, I am unable to build. Does anyone have any ideas, or experience with this?
I am developing on a mac and as mentioned above. Everything works perfectly on the IOS app.