I'm new to react-native, I'm trying to use react-native-appsee for my app analytics, according to appsee website documentations it should be easy. I did everything exactly like the documentations but when I tried to run the app it gave me the undefined native module error
which says undefined is not an object (evaluating 'AppseeBridge.start').
I don't think it's appsee problem because I tried to make my own module using appsee java files and it didn't work either.
anyone could help me with fix this?
here is my dependencies:
"react": "^16.0.0-alpha.12"
"react-native": "0.51.0"
"react-native-appsee": "^2.3.64"
I found the answer myself, apparently all I had to do was to create an appsee.js file and export the module then I could use it in my code!
Related
I'm using delphi to build my ios App. Starting with firebase 9, I cannot anymore compile my project with firebase. when I try (with -ObjC linker flag) i receive error like:
[DCC Error] E2597 ld: warning: Could not find or use auto-linked framework 'FBLPromises'
Undefined symbols for architecture arm64:
Error: "_OBJC_CLASS_$_FIRHeartbeatController", referenced from: objc-class-ref in ios-arm64/FirebaseCore.framework/FirebaseCore(FIRHeartbeatLogger.o);
and this still firebase 10.2.0. but with firebase 8.15.0 it's was working fine. Is there any change made in firebase 9.0.0 that can explain this? Is there any workaround?
According to this github issues page this issue is similar to what you're facing. You may need to add FirebaseCoreInternal.xcframework into your project.
For the past 1.5 days or so, I tried to get react-native-track-player working and I just can't make it happen. No matter what I try I always end up running into the same error block:
ERROR TypeError: null is not an object (evaluating 'TrackPlayer.RATING_HEART')
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
I set it up both with react-native expo and 'normal' react-native (according to react-native docu) both with JS and TS. And for all variants of that I tried:
Deleting/reinstalling node-modules
npm cache verify (as described here),react-native start --reset-cache (from here) and some other cache reset/deletion things.
I've copied the example from their GitHub repo.
I updated and/or reinstalled pretty much every library (incl. node)
All of those efforts ended in the exact same error.
So ye, I literally don't know what to do anymore. I'm a beginner at both react-native and app dev in general. So to be honest, it's very likely the mistake I'm making is super stupid/simple. But I just can't find it. I would be more than grateful for any advise.
EDIT - Dependency error:
EDIT 2: Solution - react-native removed jcenter between v0.64 v0.65 which was root of all my problems, check my answer below for details.
EDIT: jcenter() will be removed for sure. Check this GitHub thread for more infos on how to procede with react-native-track-player.
Ok, while cloning the example from their repo worked (thanks #AngwarGul) I still wanted to figure out why that was. So it turns out, that the fundamental reason for the error was in the build.gradle file.
I've been using react-native#0.65.1 and wasn't aware that from v0.64 to v0.65 jcenter was removed from react-native. So, when running react-native run-android the app couldn't be built since it couldn't find jcenter. So ye, I probably could have realized that earlier, but I was looking anywhere but there.
TL;DR: Adding jcenter() to the build.gradle file solved the whole issue for me (see pic below). So, in case anyone else does the same stupid mistake, here's your solution ;)
Unfortunately by Looking the Documentation of react-native-track-player , This package doesn't support expo Expo and Expokit support
How I manage to run the Example Project from Package
Steps:
Cloned react-native-track-player
Separate out the example project from package
Remove postinstall from package.json's scripts
add package in dependencies "react-native-track-player": "^2.0.1",
yarn install or npm install
yarn android or npm run android
Result
I'm struggling to use Sqlite.net Extensions in my Xamarin Android app.
I get the exeption:
Don't know about System.Collections.Generic.List`1 [app_name.Model.modelName]
The problem is similar to:
Sqlite extension is not working as expected
and
Use SQLiteNetextensions with Xamarin for Android-App
but the answers from there are not working for me and I can't add comments, so I have to start a new question.
I was trying to install different sqlite.net extensions packages and got no result.
Using SQLite.Net Extensions-PCL 2.0.0-alpha2 gives me such exeption:
System.IO.FileNotFoundException: Could not load assembly 'SQLite.Net, Version=3.0.5.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
I'm using Sql-net library:
https://www.nuget.org/packages/sqlite-net-pcl/
Does anyone has a final solution to this problem, please?
Edit:
I had to create a new project and paste everything in from the old one.
I don't think that answers the issue, but it's enough for me...
I'm using Sql-net library:
https://www.nuget.org/packages/sqlite-net-pcl/
The link here you give is the right lib, but you really installing this package? Cause you also said that you're installing SQLite.Net Extensions-PCL 2.0.0-alpha2.
Please try to install the package in the following screenshot, the latest stable version is 1.3.3:
Im building a simple game with Xamarin/Cocossharp in a Shared Project.
I added some physics with Box2D and everything works well on WP8.1.
I import Box2D and i access to the methods and class provided without problem on Windows Phone, but when i try to compile it for Android it says that the type or namespace "Box2D" could not be found. Intellisense doesn't shows any error...
error output
I'm new to game dev and also to VS2015 so it may be something simple but i dont understand what I'm missing here.
Thanks in advance
After struggling around with this i managed to fix this:
As pointed out from Sven-Michael in his answer the solution was to install:
CocosSharp.PCL.Shared
from NuGet. In my case was only necessary to add the reference to the Box2D.DLL file contained into the package.
The reason why it was not working for me it's probably that because of trying to solve this problem I've messed up whit my solution and caused other problems. So I created a new Project from skratch and I've imported my source code again.
Ensure that you have installed CocosSharp.PCL.Shared to your Android project.
E.g. via PM-Comsole:
Install-Package CocosSharp.PCL.Shared
But it can be installed via NuGet, too. This will add box2d and some other dependencies automatically.
In my phonegap application for android, in app.js, I am trying to execute
cordova.plugins.backgroundMode.enable();
in app.js but I am getting cordova.plugins as undefined. Now in my index.html I have included cordova.js file. But which file I need to include to make plugins available to cordova global variable? I am not able to understand how to make cordova.plugins available. window.plugins is available but backgroundMode is undefined then. Please help me out here. It seems I am missing out some conceptual part.
Ok...I dont know how but I solved my issue by creating a new project again. There might be some mistake from my side while creating the previous app.