How can I fix Android import settings after adding your SDK as a module? - jawbone

Copied from the old forum:
I am trying to access the Jawbone API for the first time so I am following your Android Github steps. I downloaded your SDK and have it added as a module to my project but it is still telling me that it can't find any of the following import settings:
import retrofit.Callback;
import retrofit.RetrofitError;
import retrofit.client.Response;
import com.jawbone.upplatformsdk.api.ApiManager;
import com.jawbone.upplatformsdk.api.response.OauthAccessTokenResponse;
import com.jawbone.upplatformsdk.oauth.OauthUtils;
import com.jawbone.upplatformsdk.oauth.OauthWebViewActivity;
import com.jawbone.upplatformsdk.utils.UpPlatformSdkConstants;
I also loaded your UpPlatform_Android_SDK-1.0.0 project and HelloUp and they both seem to have the same problem even though one of your suggested ways to get started is to just build off of your HelloUp example.
Any suggestions would be greatly appreciated!

I updated the project with the latest gradle version and buildtools. It should work now.
Reimport or do a gradle sync after you get the latest source.

Related

How can I tell which package is using old AsyncStorage version

I updated all of my dependencies in my expo managed project for react native. Everything so far 🤞🏻 appears to be working but now I'm getting a warning that says:
AsyncStorage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '#react-native-async-storage/async-storage' instead of 'react-native'. See https://github.com/react-native-async-storage/async-storage
In all of the files I've written I call for AsyncStorage like this:
import AsyncStorage from '#react-native-async-storage/async-storage';
So I'm left assuming that the deprecated use of:
import {AsyncStorage} from 'react-native';
must be coming from another node package / dependency that I'm using.....
What is the best way to check my project files to see what is generating this error?
I know it sounds like a stupid question, but in my IDE (vsCode) I have done a global search for "import {AsyncStorage} from 'react-native';" and I'm coming up with nothing.
Thanks in advance.

How to set up the React native in development mode with unminified

Some help would be appreciated with the following issue:
I'm trying to get the non-minified output. For some reason, I keep getting Error: Minified React error even when I run the app in development mode.
I can open the development tools and with the code below I can see Development is printed in the console.
if (__DEV__) {
console.log('Development');
} else {
console.log('Production');
}
I started the project with npx react-native init AwesomeProject and made an error.
How can i set up the non-minified dev environment.
When I used a template project with expo and did an eject to react native it was using the the non-minified dev environment. Can someone explain how i can set this up on the creation of a new project with npx?
Having an incorrect import was causing this issue.
I let IntelliJ import useState without verifying it.
Changing the import from:
import {useState} from 'react/cjs/react.production.min';
To
import {useState} from 'react';
fixes the issues.

SPFx webpart not working in IE11 - Reflect is undefined

I created a custom form using SharePoint Framework and pure JS, HTML and Sass. No React, Angular or any other frameworks. The form works perfectly in Chrome but when I try displaying it on IE (which we have to support), I get the following error:
Something went wrong
If the problem persists, contact the site administrator and give them the information in Technical Details.
Technical Details
[SPLoaderError.loadComponentError]:
***Failed to load component "48a33395-b489-4696-b8ee-bcab3d186d5e"
Original error: ***Failed to load entry point from component "48a33395-b489-4696-b8ee-bcab3d186d5e" (AgileHumanaIntakeFormWebPart). Original error: 'Reflect' is undefined
I am using PNPJS so I made sure to import their polyfill package at the top and I also tried installing and importing core-js with no luck.
import "#pnp/polyfill-ie11";
import 'core-js/es/reflect';
From what I can see in other similar issues, 'Reflect' is used in React but as I mentioned I'm not using React in my webpart so I'm at a loss.
I would appreciate some help! Thanks in advance.

Cannot read property 'array' of undefined error occurring in my genymotion while running my react-native project

I recently upgraded an old project that was running in react-native 0.49 to 0.55. So after installing and running the project this pops up. I searched the internet and i did not found any solution. Please help.
Solved. For anyone like me facing this issue. Check your red box and you can see the module where the error is targeting. In my case it was DoctorTiming.js (Check the image in my question. One error is pointing towards it).
Go to that module check if it is importing from any dependencies.
If it does go to node_modules/your_dependency
Check for index.js.
Inside it change import PropTypes from 'react' to import PropTypes from 'prop-types'.
You are good to go after that.

Error when using component npm?

I'm trying to use an npm library in my react-native app. but I have this error
I'm using cielo library
and I'm importing to my project
import cielo from 'cielo';
Can someone help me?
Look at github source code of this package here.
It seems you have to pass some parameter when importing this package. You can take a look at usage example of this package here. Your import code seems to be wrong...