google artifact registry dependency NoSuchMethod - google-cloud-platform

I am using google artifact registry to import my dependency to another project. When I run my project locally, everything works fine, but my gitlab CI pipeline fails with the following error
java.lang.NoSuchMethodError: org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.getConfiguredCredentials()Lorg/gradle/api/credentials/Credentials;
rt-test_1 | at com.google.cloud.artifactregistry.gradle.plugin.ArtifactRegistryGradlePlugin.configureArtifactRegistryRepository(ArtifactRegistryGradlePlugin.java:143)
rt-test_1 | at com.google.cloud.artifactregistry.gradle.plugin.ArtifactRegistryGradlePlugin.lambda$modifyProject$4(ArtifactRegistryGradlePlugin.java:114)
Can you please explain what's the problem and how can this be fixed. Thank you in advance

FYI, this has been fixed in version 2.1.1 of the Artifact Registry plugin.

Turns out there is a bug in gradle version so I changed it to older version and it worked.

Related

"\Google\Cloud was unexpected." when executing gcloud command

The instalation of Google Cloud SDK went right.
The problem is when I try to execute a gcloud command (even if gcloud -h) I have this output:
\Google\Cloud was unexpected.
I'm on Windows 10. Python 2.7.17 is correctly setup.
There is already a bug for issues when updating to Cloud SDK version 274.0.0 in Windows. Please check it. As a workaround installing Python in C:\Python27 and then Cloud SDK in C:\Cloud_SDK could help.
I suggest to migrate to Python 3 as Python 2 will not be maintained past 2020. Here is more info about it.
As John Hanley said, my version was broken on Windows. Google has fixed the problem with the version 2.74.0.1.
Thank you all !

'spinnaker-igor' was not found

For the first time, I am installing Spinnaker on AWS. I am following spinnaker documentations.
https://www.spinnaker.io/setup/install/providers/aws/
But when I am running "hal deploy apply" command it gives an error.
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '0.7.0-20171002182452' for 'spinnaker-igor' was not found
! ERROR Error encountered running script. See above output for more
details.
I checked the install.sh in /home/ubuntu/.hal/default directory and I see it has configured with Spinnaker repository.
Repo is "https://dl.bintray.com/spinnaker-releases/debians". I check that repo and I could find a correct version of spinnaker-igor.
Could you please give an idea to fix this issue?
Thanks
it's possible that bintray was being flaky. The exact package you were trying to download exists here and has been published since Oct 2. You can retry hal deploy apply and if fails again let us know.

IONIC2 transformClassesWithDexForDebug

I got this error
`FAILURE: Build failed with an exception.
What went wrong?
Execution failed for task ':transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/zxing/BarcodeFormat;
`
I have enabled Multidex (multiDexEnabled = true) in build.gradle and also added following
dexOptions {
incremental = true;
preDexLibraries = false
javaMaxHeapSize "2g"
}
but still getting that error.
Even I was facing the similar issue, I tried updating Cordova, Ionic and setting ANDROID_HOME and JAVA_HOME and almost all the solution over the web, but nothing worked for me. Finally, it was the issue with PhoneGap-push plugin. The 2.0 version of PhoneGap-push plugin has some collision with some plugins like
Google Analytics
To be more specific the plugins that use google play services.
So Below is my solution.
First, remove the PhoneGap-push plugin 2.0 from your application.
Now try to build the app by commenting all the lines that use push plugin.
If the build is successful then it will be the issue with push plugin. Then follow below instructions to fix the issue. If the build is not successful then you might be having some other issue.
First, uninstall the PhoneGap-push plugin 2.0
Then go to project -> package.json and search for push and replace the line with “”: “4.0.1” earlier it will be 4.3.0 or 4.3.1
Now add push plugin again to the project with below command ionic plugin add phonegap-plugin-push#1.10.5 --variable SENDER_ID=XXXXXXX
Now build your app works like a charm....
This issue is already opened in phonegap-pushplugin repo . They have a next milestone of releasing version 2.1.0 which will be fixing this issue.

3DR Services on Android needs update but it is already up to date

I'm using the first app set up from http://android.dronekit.io/first_app.html with Android Studio. When I load it onto my Samsung Galaxy S4 it gives me a pop up saying "Update 3DR Services! | Your version of 3DR Services must be updated to continue." I've tried uninstalling and re installing from Google Play. Any thoughts would be appreciated.
You can fix that issue by specifying the version for the dronekit-android library dependency in the build.gradle file as such:
compile 'com.o3dr.android:dronekit-android:2.3.11'
The default dependency statement, compile 'com.o3dr.android:dronekit-android:2.3.+', retrieves the latest version of the dronekit-android library.
That version is usually in beta, and can only be used against the beta version of the 3DR Services app.
You can find out which dronekit-android library version is the latest, and which version of 3DR Services it requires from the github release page.

Is the ember cli addon installation broken in Ember Cli 0.1.11?

I'm using ember cli for some small test projects to evaluate the concepts. Normal use of ember cli works for me. After 10 created small projects and using blueprints and the pod structure I decided to try the development and usage of addons. The creation of addons was not the real problem.
The problem is I can not successfully install a created addon. I also tried to install other addons created by other ember-cli users. The result is always the same. I got no error message and the addon could be found inside the node_modules directory of the addon consuming application but there is nothing installed in the app directory and it's sub directories !!!
What can I do to find the problem ?
Do you have a public available addon which could be installed definitely without problems ?
Are there log files which could be inspected to see more details (hidden error messages) ?
Best regads
Andreas
The current Ember CLI version is 0.0.12. I'm not aware of any issues with addon installations. If the issue persist, you should create an issue on ember-cli issue tracker.