I can run other gradle based projects in android studio, but this particular app ( https://github.com/google/iosched ) does not import correctly in Android Studio. I have cloned it from github, and when I import it into android studio using its build.gradle file, the gradle sync error blocks it from running.
"Could not find any version that matches com.google.androis.gms:play-service:3+"
Is there any specific version of gradle needed to run this app in androis studio? I currently have gradle v1.9 installed on my computer.
Please suggest how to get the required gradle fix.
There are typo error in android not androis . Also services not service
com.google.androis.gms:play-service:3+
Change it to
compile 'com.google.android.gms:play-services:3+'
You can also use the latest version
compile 'com.google.android.gms:play-services:4.3.23'
Related
Hello Everyone I've got a problem with starting a new project with android studio and it's about Could not find com.android.tools.build:gradle:3.1.3 and I have searched for the package but I didn't find anything.
You can put your version of android studio in gradle classpath! Or you can find the latest version of gradle in the gradle site and put it in the gradle.build file in the gradle scripts!
Make sure that your gradile isn't offline checkout this .
If your country blocked from Google connect the vpn and try.
I am not using Eclipse. I am currently using Android Studio 1.0.2. I am attempting to complete the creating watch faces tutorial however I am not able to compile due to
import android.support.wearable.companion.WatchFaceCompanion; not importing.
I've searched here, and the other questions are for those using Eclipse. I've added all of the sdk build tools. This didn't work. I modified the gradle build items in wear/app and that didn't work.
Edit: I dug into the issue a bit more via the example and I noticed the import is referenced here:
G:[my_windows_username]\Android\WatchFace\Wearable\build\intermediates\exploded-aar\com.google.android.support\wearable\1.1.0\classes.jar!\android\support\wearable\companion\WatchFaceCompanion.class
Why isn't this in my new project by default when I attempt to import?
This is more than likely an issue where you have not added the line:
compile "com.google.android.support:wearable:1.1.+"
to your build.gradle for your APPLICATION module. This should fix your issue
I had the same problem with in my watch face application. I solved by installing/updating the Android Wear 2.0.1 version from SDK Manager in Android Studio.
I suggest, check out in build.grandle if there is an error on android.support.wearable.2.0.0 compilation. Then try to install newest SDK tools (wear 2.0.1) and lib (25.0.2)
Is it possible to build a crosswalk-cordova app inside of android studio?
It looks like you need to use ANT at this point.
Does anyone know if this is on the roadmap now that android studio is out of beta?
Our team just built an android wear app so we need to use android studio to create a build and we'd like to start using crosswalk.
I put together some instructions here: https://diego.org/2015/01/07/embedding-crosswalk-in-android-studio/
You can do this with gradle by adding the maven repo:
repositories {
maven {
url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
}
}
And then the version of crosswalk that you want:
compile 'org.xwalk:xwalk_core_library:10.39.235.15'
Sample Code: https://github.com/dougdiego/CrosswalkDemo
I was able to get this working. You need to re-arrange the project structure a bit and use "modules" I created a CordovaLib module and a xwalk_core_library module both "Android Libraries" and i referenced CordovaLib from my main project and set xwalk_core_library as a dependability for cordovalib.
Make sure to create the xwalk_core_library under the package name org.xwalk.core.
See screen shot for project stucture and the xwalk_core_library gradle file.
Put the .so files into a jniLibs directory and the android build correctly packages them into your app.
I followed this article to help with building. I plan on setting up seperate builds for x86 and arm.
http://ph0b.com/android-studio-gradle-and-ndk-integration/#mygradlefile
I have this working in this github project. Let me know if you run into any issues.
https://github.com/twilly86/CrossWalkAndroidStudio
In my case, the project with cordova android platform version 4.1.1 (For example Cordova CLI version 5.2.0) works, the Android Studio can build the project.
However, the project with cordova android platform version 5.1.1 (For example Cordova CLI version 6.2.0) has the issue, the Android Studio can not build the project because the Gradle sync brings the error such as
exception during working with external system: ndk
The critical difference between 4.1.1 and 5.1.1 is the build.gradle file.
In 4.1.1 the build.gradle file choose appropriate gradle version and android plugin version. (like gradle version 2.2 and plugin version 1.0.0+).
In 5.1.1 the build.gradle file does not do such a thing.
I fix this issue by manually setting the gradle version to 2.2 and plugin version 1.0.0. This can be done in the Android studio by opening the dialog
File > Project Structure > Project.
Whenever I try to run a gradle sync on my project i keep getting this error:
Failed to refresh Gradle project 'MeetupVersion1.0'
Unable to load class 'org.gradle.plugins.ide.internal.IdeDependenciesExtractor$IdeDependency'.
How do I fix this error? Do I have to import this class or does it have to do with my Android Studio?
This tends to happen when you're trying to use a build file that specifies a version of the Android Gradle plugin that's too new for the given version of Android Studio to handle. I'd suggest updating Android Studio.
If you continue to have problems, amend you question with the version of Android Studio you're using and the contents of your build files.
This is written up in bug https://code.google.com/p/android/issues/detail?id=66325 though the bug report doesn't really have any detail other than a couple reports that people solved it by upgrading.
I am trying to import an Android library I've created into Android Studio. I've exported the app from Eclipse by going to File > Export > Gradle Build Files which completed successfully.
However, when I try and import the project into Android Studio I get the following error:
You are using an old, unsupported version of Gradle. Please use
version 1.8 or greater. Please point to a supported Gradle version in
the projects Gradle settings or in the project's Gradle wrapper (if
applicable)
I've followed the instructions from Unable to import Eclipse project to Android Studio but this hasn't worked.
Thanks for any help you can provide
Download Gradle 1.8: http://www.gradle.org/downloads
Install/Copy it in a folder on your computer.
Check what gradle installation you use in Settings (Strg+Alt+S) -> Gradle
Check "use local gradle distribution" and point in "gradle home:" to the gradle installation