I've created a test Xamarin.Forms project with all the defaults using the cross-platform. But when I run it I am getting this error and I don't know how to fix it. I re-installed Xamarin few times but still getting the same error. It won't even compile.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0 (Test)
Please help.
This is probably related to the Java SE Development kit.
You need to download it and then it should work.
Look at the following post:
https://forums.xamarin.com/discussion/62664/error-java-lang-unsupportedclassversionerror-com-android-dx-command-main-createdatabasewithadonet
Related
after updating my NS app to latest version.. I am now suffering to run it on my iOS device..app simply does not open even though its installed. I was trying to run from xcode and got this msg on log :
Class TKDataSource is implemented in both /System/Library/Frameworks/CryptoTokenKit.framework/CryptoTokenKit (0x1fdff00d8) and /private/var/containers/Bundle/Application/A97BDBFB-56E2-4303-A817-F582CEF25550/MYDOC.app/Frameworks/TNSListView.framework/TNSListView (0x104966e70). One of the two will be used. Which one is undefined.
ns run ios shows this error :
unable to apply changes on device: 7BE6C620-A73C-42DF-81AD-65A0083CB13E. Error is: ENOENT: no such file or directory, scandir '/Users/timmrichter/Library/Developer/CoreSimulator/Devices/7BE6C620-A73C-42DF-81AD-65A0083CB13E/data/Applications'.
Any Idea?
Thanks
Try adding an Applications folder to the path /Users/timmrichter/Library/Developer/CoreSimulator/Devices/7BE6C620-A73C-42DF-81AD-65A0083CB13E/data.
I hit that problem, too. I was able to bypass it by opening the emulator via xcode first, and then entering tns run ios --emulator.
what worked for me was making the directory that's trying to be scanned. So in your case running the command
" mkdir /Users/timmrichter/Library/Developer/CoreSimulator/Devices/7BE6C620-A73C-42DF-81AD-65A0083CB13E/data/Applications "
Should solve the problem.
As I have some plugins like i18n which seems not supported on NS latest version. At the end I have downgraded to version 6.5.3 and it's now working on iOS 14.
I have a problem with building iOS app with Cordova. I'm using Crosswalk with Cordova plugin. After running cordova build in terminal, I'm getting error message:
Plugins/cordova-plugin-whitelist/CDVNavigationWhitelistPlugin.h:23:9: fatal error:
'Cordova/CDVURLRequestFilter.h' file not found
#import <Cordova/CDVURLRequestFilter
Does anybody know how to fix that?
The reason was older version one of the plugins, that I've installed with Cordova-Crosswalk.
So it can be fixed in two ways - by updating everything (plugins etc.) or by simple installing again Cordova-Crosswalk via npm in different folder.
Build was running, but after some changes it started showing build failed with error:
/Users/mac007/Desktop/Projects/git#git.assembla.com: Internal error.
Please file a bug at bugreport.apple.com and attach
"/var/folders/9p/bpyyfk3j2qj30wjd5lkp72rm0000gn/T/IB-agent-diagnostics_2016-06-13_17-08-49_246000".
Steps to Reproduce:
On command+r in Xcode
Expected Results:
It should run but it is showing build failed
Actual Results:
It was showing Build failed
Version:
Xcode : Version 7.3 (7D175)
OS : 10.11.5 (15F34)
When this happens there isn't much you can do except try to identify what part of your project is giving it trouble and change it to something equivalent, but different.
Upgrade Xcode to 7.3.1 (you never know)
Go back to the last commit that built
Apply the next commit in as small increments as possible to try to figure out what it's having trouble with.
Write that part a different way.
I just started with react-native development on IOS and want to get my feet wet.
I did the following:
react-native init trail
and I opened the trail starter project in xcode and hit run. There were several small issues I fixed already including upgrading watchman, upgrading OSX. Currently the logs do not show any errors.
While the logs show that the packager runs, the build failed on XCode. A lot of errors showed up with the files in the Library folder. Many of them show up as Parse Issues, Semantic Issues.
I'm currently using Mac OSX Yosemite 10.10.5. Why did the started app fail to build?
Here are some code snippets of the errors:
code snippet 1
code snippet 2
Update your versions of node, npm and xCode.
Run 'react-native init yourAppName';
Run in yourAppNameFolder 'npm i' - to install all needed dependencies, which may be missing;
Run 'open yourAppNameFolder/ios/yourAppName.xcodeproj' where appFolder - folder which one have been initialized by command 'react-native init'.
This should help, and one more suggestion - don't touch this bloody xcode, better to run the app from the shell.
I'm getting the following error when compiling for iOS in FDT (OSX):
Packaging failed!
Packaging error message:
Compilation failed while executing : compile-abc
Packaging output:
/var/folders/96/gkk__zq13zg7z70dlp_lnw580000gq/T/cmd973180567546602806.tmp: line 2: /Users/ben/Documents/work/resources/flash/flex_sdk_4.6.0/lib/aot/bin/compile-abc/compile-abc: Permission denied
/var/folders/96/gkk__zq13zg7z70dlp_lnw580000gq/T/cmd6338527548194546742.tmp: line 2: /Users/ben/Documents/work/resources/flash/flex_sdk_4.6.0/lib/aot/bin/compile-abc/compile-abc-64: Permission denied
I'm using the AIR 18 Beta, I've tried with 17 with the same issue.
I've had to use Java 1.7 rather than 1.6 as this is a requirement for the latest version of FDT.
I've created a clean project with no additional libraries but I'm still seeing the issue.
I can compile for desktop and Android without the issue.
Any help would be appreciated.
Ben
check out these links:
http://www.flashdeveloper.co/post/111191611037/compilation-failed-while-executing-compile-abc
http://forum.starling-framework.org/topic/cannot-build-with-air-16
Also please keep in mind, that you use an AIR BETA version.
Maybe you could also check, if your SDK user access rights are set.