I get "cannot resolve symbol Bundle" for a newly created libGDX project in IntelliJ. When comparing this project to one that works, I notice that in the android module, the Module SDK is set to Project SDK instead of Android API.
If I try to change this I get:
Module "android" must not contain source root "...".
The root already belongs to the module "android".
How can I can't change this and what does the message mean?
Not sure what exactly you mean by last part, as I didn't do any changes to any of the modules. Anyways I had the same problem - "cannot resolve symbol android/Bundle etc", basically android SDK wasn't included. What I did is simply opened Project Structure > SDKs > Add new Android SDK with correct version e.g. 4.4.2, then pressed ok, and afterwards opened gradle plugin and clicked "Refresh All Gradle Projects". Intellijs rebuilt gradle project and indexed everything. Then android SDK problem was resolved.
Unfortunately this step is not mentioned in the tutorial.
Related
I wanted to Build my Project like every day, but now I cannot Build the project because I get the following error message in every .xaml File:
the value cannot be null.
parameter name: type
What can I do?
I deleted my bin/obj Folders in Portable and iOS Project, but nothing works.
Thanks.
There is an open bug of this on Xamarin's Github
Following is what helped some people solve this issue:
I've experienced an issue when Xamarin builds changes between Android and iOS. It might be possible to workaround by the following sequence:
Select your iOS project as the startup.
Make sure the Android project is NOT selected to be built in config management.
Clean solution.
Quit VS.
Delete bin & obj from XAML project and from the iOS project.
Restart VS.
Build XAML and iOS projects.
There are more workarounds that you might check if this does not work
I am trying to get the deviceid with react-native-device-info.
I started with an empty expo project which I ejected.
I imported the library, I also linked it.
But then I get gradle errors in android studio.
Have anyone managed to make it working. Can you tell which version you use?
Error from comments:
:ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0. 1]", but isn't being resolved to that version.
Behavior exhibited by the library will be unknown.
Dependency failing: com.google.android.gms:play-services-flags:15.0.1 -> com.google.android.gms:play-services-basement#[ 15.0.1], but play-services-basement version was 16.2.0
I am following along the official documentation, copy and pasting the code provided there:
https://facebook.github.io/react-native/docs/0.56/native-components-ios
But I am still running into this error
does anyone know what the docs are missing to get this working?
This is happens because native module not compiled yet, simply execute react-native run-ios in terminal while in project directory.
Note: For latest node version use: npx react-native run-ios
RNTMapManager.m must be created within the XCode project, the docs do not specify that. Open the XCode project and click File -> New -> File and create a new Cocoa Touch Class called "RNTMapManager". Then place the objective-c code within RNTMapManager.m. Rebuild the application and it should work!
To be able to use native components make sure your project was ejected (expo eject)
Once ejected open for example iOS project with XCode and create/add file from Xcode. This way it will update all the dependencies.
Rebuild the project
I want to add "Crashlytics" and "Appsflyer" framework in the IBM Mobilefirst iOS Project. After adding the Framework it shows that the " 'IBMMobileFirstPlatformFoundationHybrid/MFPMainViewController.h' file not found".
Tried with both Cocoapods and Framework, but getting the same error.
But its fine with native project.
Sample Project is available in
https://www.dropbox.com/s/r8u54gfrmofqzhf/native.zip?dl=0
Please suggest how to resolve it.
Try with Adding "$(SRCROOT)/frameworks" in your Frameworks Search Path under Build Settings of your Xcode Project, I hope it should resolve the issue.
Also i have added Crashlytics and Appsflyer in MFP 7.1 Hybrid Project and I did not find any issues. Sample application you can find here.
Intellij seems to be detecting the sources fine, no errors in editor, but errors when I remove facebook sDK from project.
I added the facebook-android-sdk module as a module dependency to my project, but when running it, it gives 8 facebook sdk related errors:
package com.facebook.android.Facebook does not exist cannot find
symbol class FacebookError
Any idea how I can fix it?
Just import */gen and include it part of the module and it'll be all fine. Don't just import src/