I am trying to generate a cloud backend using the "google cloud tool" in android studio, however it gives the following errors:
Failed to execute goal com.google.appengine:appengine-maven-plugin:1.8.0:endpoints_get_discovery_doc (default) on project MyApplication-AppEngine: Execution default of goal com.google.appengine:appengine-maven-plugin:1.8.0:endpoints_get_discovery_doc failed: A required class was missing while executing com.google.appengine:appengine-maven-plugin:1.8.0:endpoints_get_discovery_doc: Lorg/sonatype/aether/RepositorySystem;
I have installed maven 3.1.1 and android studio is version 0.3.1 (both of which is the newest version as of october 24th)
I seems that the error has been fixed in the appengine-maven-plugin version 1.8.3, but i simply cannot seem to force android studio to use that version.
How do I setup maven/android studio/google app engine, so that it can autogenerate the backend?
Thanks in advance!
PS: i have google this for 2 days now, and have gotten nowhere
So the templates in the cloud tools plugin use 1.8.0, these are not changeable. The problem as you have noticed is an incompatibility with Maven 3.1.1. If it is possible, you might try using maven 3.0.4/3.0.5 instead of 3.1.1 which are known to work with the plugin. The template is undergoing changes right now to address a couple of things (including the issue you are having), it will be updated in the future.
Related
I'm develeoping react-native app on a computer without internet connection(I can't connect it to the internet),
I have configure the local repository and the android plugin according to android studio guide here
and also linked the gradle localy.
All the configures worked fine but the project is still not compiled, I get unresolved dependencies of the react native modules(example here) that I used.
I'm trying to solve this issue for two weeks and failed.
I didn't find any solution for this yet
The android studio version is 3.5.2 and the gradle version is 5.4.1
Any idea? Any help would be appreciated
Well, working offline with gradle will prove a little hard unless you build the project once when you have internet.
The problem is that gradle needs to resolve the dependencies and for this it's not only looking in node_modules, but also at different online repositories.
If you don't have internet - gradle isn't able to fetch the required packages and you get a build error.
In your case you've configured android studio to use offline versions of gradle and maven, but what your build can't find is soloader, yoga etc - those are libraries that are not available in the offline maven build you downloaded. As far as I can see from the content of that build it only contains the android dependencies.
You'll need to get the soloaded, yoga etc and provide those to your build for offline use. I guess that the easiest thing would be to build the project once when online... Afterwards gradle should reuse the cached packages.
I recently updated Android studio to version 3.4 and with it came a gradle update (com.android.tools.build:gradle:3.4.0) and with that came gradle 5.1.1-all.zip.
When attempting to sync gradle with the project, the result is:
ERROR: Unable to find method
'org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File;'
This traces back to the gradle plugin:
'com.google.cloud.tools.endpoints-framework-server'
which is required in order to use the google cloud endpoints framework.
I was curious if anyone else has experienced this and if they have found a solution or if this is out of my control and a bug report needs to be filed.
Thanks
In case anyone comes across this, the solution was to update the endpoint framework gradle plugin to v2.0.1
"com.google.cloud.tools:endpoints-framework-gradle-plugin:2.0.1"
on both the app and backend gradle files.
😁
I'm trying to build FirebaseUI for Android sample app. Using latest Android studio (2.2.3) and Gradle plugin (2.2.3).
While trying to do Gradle sync I'm receiving following error:
Error:Could not find method baseline() for arguments [/pathToMyProject/FirebaseUI-Android/library/quality/lint-baseline.xml] on object of type com.android.build.gradle.internal.dsl.LintOptions.
Tried the usual stuff (Clean, Invalidate Cashes/Restart) but no luck. Any idea what is wrong here?
Apparently sample code provided by Google doesn't work with latest stable release of Android Studio. This example compiles without problems on latest beta version of AS.
Quite new to Android Dev, and I've been getting a strange error recently. I've searched online, and nothing seems to do the trick, so while I understand that this might be a duplicate question, no other previously asked question was able to offer me a working solution.
When I make a new project in Android Studio (version 2.2 Preview 1), I get bombarded with the error:
Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "84c9986024dd3d7a4767dc5c38710ff1b96f1a21"
With two options: "Fix plugin version and sync project" which seems to do nothing. Upon clicking. And "Open File" which just opens the "build.gradle" file.
In my settings, I have Android Studio set to use the default gradle wrapper. I even set the distributionurl to the newest gradle version, but apparently even that is "too old"...
I have no idea what's causing this problem.
Another peculiar thing I've noticed is that in the project panel, it seems that my project doesnt look as it should.
The project in question looks like this:
Whereas, I understand that it should look more like this:
Again, no idea what's going on... I'm pretty new to Android Studio, but I'll do my best to answer any questions you may have.
While I believe the message may be because you have a 2.2 Preview build of Android Studio, it may want you to use a beta build of the Android Gradle Plugin.
Note: This is not related to the version of Gradle. The latest supported version of Gradle is 2.14.1, which you can check the Android Studio Release Notes, and also here.
From that first link, what I find most people don't understand.
The plugin runs independent of Android Studio so the plugin and the Gradle build system can be updated independently of Android Studio
Or Configuring your build, which explains why they are separated.
you can build your Android apps from within Android Studio, the command line on your machine, or on machines where Android Studio is not installed (such as continuous integration servers). If you are not using Android Studio, you can learn how to build and run your app from the command line. The output of the build is the same whether you are building a project from the command line, on a remote machine, or using Android Studio.
I'm trying to learn AS, but after struggling for 3 days no progress.
Using https://www.udacity.com for learning.
Trying the hello world app from there, got this error Gradle DSL method not found: 'android()'.
I've worked in eclipse, but migrating from eclipse to AS looks very tough decision for me. I'm using cordova cli so far, now thinking to use AS.
While runing the app am not able to open RUN TOOL it show but is grey color(which is not clickable).
Downloaded new Gradle version (2.10), and set the path to that directory.But still showing Gradle version 2.2.1 in Project Structure.
Checked in stackoverflow as well, but nothing worked. Worst experieence.
Any body have idea what is going on, would be helpfull.
Android Studio 1.2.2
Make sure you have the latest Gradle and Android Studio:
https://www.gradle.org/
http://tools.android.com/tech-docs/new-build-system/version-compatibility
Go for more
Android Studio Gradle DSL method not found: 'android()' -- Error(17,0)
Udacity's Android courses are using the newest dependencies and AS version.
Please remove existing 1.2 version and upgrade it to 1.5.1 to get the fresh experience and less building problems
Be sure that you're using Oracle JDK7 not Java 8 SDK. It may cause some problems with Gradle
I recommend you also try to follow the steps in this post: I just installed Android Studio and created a new project, it always came up with Error with gradle
Have a question? Please free to ask