VS2017 Cordova build error Remotebuild requires your projects to use cordova-ios 4.3.0 or greater with XCode 8.3 - visual-studio-cordova

My MacOS X env:
cordova -v: 7.1.0
remotebuild -v: Copyright (C) 2014-2015 Microsoft Corporation. All rights reserved. 2.1.3
MacOS High Sierra (10.13.1)
Xcode: 9.1
My Window 10 Pro (ver 1709) dev env:
Visual Studio Community 2017: ver 15.4.4
Visual Studio Tools for Apache Cordova: 15.0.26728
Cordova Toolset (set by VS 2017):
Cordova 6.3.1
node.js: 4.4.3
cordova-simulate: 0.3.1.2
cordova-ios: 4.2.0
Microsoft Cordova documentation has not caught up with VS2017 and latest Cordova versions.
When in VS2017 on Wins10 PC, building to iOS and to any Simulator - [iOS device] target, I get the following error in full:
'Remote build error from the build server https://[my mac
ip]:3000/cordova - Build failed with error Remotebuild requires your
projects to use cordova-ios 4.3.0 or greater with XCode 8.3. Please
update your cordova-ios version.'
Doesn't work to simply bump up cordova-ios: 4.2.0 to 4.3.0 or greater in project's config.xml file. Not even sure what represents. Cordova iOS platform version?
Please help get me past this build error.

Duplicate question of:
Install specific version of Cordova CLI in Visual Studio 2017
Which notes a suitable solution.

Related

Rng Gradle task 'assembleDebug'... FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugAssets'. >

I am on MacBook Pro 16" intel 2019. I am using android studio and my flutter doctor output is given below:
/Users/macbook/Developer/flutter/bin/flutter doctor --verbose [✓] Flutter (Channel stable, 2.5.1, on macOS 12.0.1 21A559 darwin-x64, locale en-GB)
• Flutter version 2.5.1 at /Users/macbook/Developer/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ffb2ecea52 (3 months ago), 2021-09-17 15:26:33 -0400
• Engine revision b3af521a05
• Dart version 2.14.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc3)
• Android SDK at /Users/macbook/Library/Android/sdk
• Platform android-31, build-tools 31.0.0-rc3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5, Build version 12E262
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] Connected device (2 available)
• sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.93
• No issues found!
my flutter app was running perfectly before but today when I tried to run the app it was taking unexpectedly long time and after 14 mins it get crashed displaying the following message on console:
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugAssets'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve com.facebook.android:facebook-android-sdk:[5,6). Required by: project :app > Failed to list versions for com.facebook.android:facebook-android-sdk. > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/facebook/android/facebook-android-sdk/maven-metadata.xml.
> Could not get resource 'https://google.bintray.com/exoplayer/com/facebook/android/facebook-android-sdk/maven-metadata.xml'.
> Could not GET 'https://google.bintray.com/exoplayer/com/facebook/android/facebook-android-sdk/maven-metadata.xml'. Received status code 502 from server: Bad Gateway * Try: Run with
--stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org BUILD FAILED in 14m 56s [!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Running Gradle task 'assembleDebug'...
and after that error, an error appeared in my android app/build.gradle file.
help me as soon as possible because I have to remove this error till Monday. if you need any more info let me know
Check the build.gradle file in android/ folder (not android/app), ensure you have mavenCentral() in repositories block.
Then use implementation 'com.facebook.android:facebook-android-sdk:latest.release' or
implementation 'com.facebook.android:facebook-android-sdk:12.2.0'
Then rebuild project.

Cannot install dotnet sdk on mac

I have installed dotnet sdk from https://dotnet.microsoft.com/download/download
after installing I run on terminal: dotnet --version
and I get : zsh: command not found: dotnet
I have operating system: macOS Big Sur 11.6 on MacBook Air (M1, 2020)
I fixed this by downloading and installing Visual Studio 2022 for Mac:
https://visualstudio.microsoft.com/vs/mac/preview/
It will download the dotnet SDK also

Missing `Microsoft.AspNetCore.App` of version `2.2.8` on `Ubuntu 20.04` after clean installation

Having issues with Ubuntu 20.04. I followed official instruction and installed both SDK & runtime. If can be confirmed from the terminal:
dotnet --list-sdks
3.1.403 [/usr/share/dotnet/sdk]
and runtime:
dotnet --list-runtimes
Microsoft.AspNetCore.App 3.1.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.9 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
...yet the project I am trying to dotnet run requires the Microsoft.AspNetCore.App 2.2.8 as can be seen from the log:
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '2.2.8' was not found.
- The following frameworks were found:
3.1.9 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=2.2.8&arch=x64&rid=ubuntu.20.04-x64
What's the correct way to install missing SDKs and runtimes?
So it comes out that Ubuntu 20.04 is not supported for above-mentioned runtime and one have to install them manually.
In my particular case it was enough to download binaries and run them as usual.

How to fix 'processorListFile' does not exist. when building appbundle in flutter

FAILURE: Build failed with an exception
Firebase admob worked okay in my Flutter app but when running build appbundle --release and I got error as follows below:
Error Output
PS D:\Projects\new\kjv_bible> flutter build appbundle --release
Running Gradle task 'bundleRelease'...
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':firebase_core_web:compileReleaseJavaWithJavac'.
> File 'D:\Projects\new\kjv_bible\build\firebase_core_web\intermediates\annotation_processor_list\release\annotationProcessors.json' specified for property 'processorListFile' does not exist.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 26s
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done 209.8s (!)
Gradle task bundleRelease failed with exit code 1
Flutter doctor
Run flutter doctor and paste the output below:
[√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.18363.720], locale en-US)
• Flutter version 1.12.13+hotfix.9 at C:\src\flutter
• Framework revision f139b11009 (4 weeks ago), 2020-03-30 13:57:30 -0700
• Engine revision af51afceb8
• Dart version 2.7.2
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\ljoe0\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed
instructions.
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 45.0.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] VS Code, 64-bit edition (version 1.44.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.9.1
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
I added Firebase_core in the pubspec.yaml and still got the same error.
I googled for this error for hours but to no avail.
Please what could go wrong with this error?
As the op himself stated in comments, deleting .gradle folder fixed the problem.
deleting the folder called .gradle
found inside $/android/.grade

taco support for cordova 6.4.0 and IOS 4.3.0 cocoapods doesn't seem to work

I upgraded my app to cordova 6.4.0 and ios 4.3.0. I also updated the plugin phonegap-plugin-push to 1.9.0 which now uses cocoapods in plugin.xml
<framework src="GoogleCloudMessaging" type="podspec" spec="~> 1.2.0"/>
<framework src="GGLInstanceID" type="podspec" spec="~> 1.2.1"/>
After installing cocoapods on the mac with
sudo gem install cocoapods
I now get a compilation error in XCode saying GoogleCloudMessaging.h is not found.
So, is TACO not ready yet for ios 4.3.0, or is there something I am missing?

Resources