Install crosswalk (WebView) 13 in Android Studio - android

I found a solution in this post. But it's old and does not work for latest version.
I tried this:
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Repositories {
Maven {
url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:cardview-v7:22.2.0'
compile 'org.xwalk:xwalk_core_library:13.42.319.11'
//compile ('com.github.florent37:materialviewpager:1.0.1#aar'){
// transitive=true
//}
compile project(':materialviewpager')
}
But I got this error:
Error:A problem occurred configuring project ':sample'.
Could not resolve all dependencies for configuration ':sample:_debugCompile'.
Could not resolve org.xwalk:xwalk_core_library:13.42.319.11.
Required by:
MaterialViewPager-master:sample:unspecified
Could not parse POM https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/13.42.319.11/xwalk_core_library-13.42.319.11.pom
Already seen doctype.

Related

Android studio build failed-Could not find support-v4.jar

Error:A problem occurred configuring project ':app'.
Could not find support-v4.jar (com.android.support:support-v4:24.0.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/24.0.0/support-v4-24.0.0.jar
But i have not used 24.0.0 version
Check the gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 14
buildToolsVersion '19.1.0'
defaultConfig {
applicationId "com.XXX.app"
minSdkVersion 14
targetSdkVersion 19
versionCode 2
versionName "2.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.txt'
}
} }
dependencies {
provided fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:+'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0#aar'
compile project(':actionbarsherlock')
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.android.support:support-v4:23+' }
Just Delete the dependencies:
compile 'com.android.support:support-v4:24.0.0'
I do not know why, but my project works.

Android Studio Failed to resolve:com.github.PhilJay:MPAndroidChart:v2.1.3

Hi all i am using charts library in my project a month ago it was working fine but now i have reinstalled android studio and when i build my project it gives gradle sync error.
Failed to resolve:com.github.PhilJay:MPAndroidChart:v2.1.3
I am stuck on this any suggestions how to solve this.My android studio version is 2.1
Here is project dependencies
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.app.comismv"
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven {
jcenter()
url "https://jitpack.io"
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.github.PhilJay:MPAndroidChart:v2.1.3'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
//compile 'com.cardiomood.android:android-widgets:0.1.1'
}
Thanks in advance
I had the same problem, here is the latest version of MPAndroidChart-v2.2.5.jar jar file.
Just put the MPAndroidChart-v2.2.5.jar inside app/libs/
and add
dependencies {
.
.
compile files('libs/MPAndroidChart-v2.2.5.jar')
}
in gradle file

Tried various solutions but still getting this Error:Could not find com.google.android.gms:play-services-gcm:8.4.0

This is the error I am getting. I tried everything and I am using android studio 1.3.1 version:
Error:Could not find com.google.android.gms:play-services-gcm:8.4.0.
Required by:
StockHawk-master:app:unspecified
Search in build.gradle files
When I click the above link it finds the services but the gradle shows the error again and again.
Here is the build.gradle code :
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example..stockhawk"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro'
}
}
}
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.squareup.okhttp:okhttp:2.5.0'
apt 'net.simonvt.schematic:schematic-compiler:0.6.3'
compile 'net.simonvt.schematic:schematic:0.6.3'
compile 'com.melnykov:floatingactionbutton:1.2.0'
compile 'com.android.support:design:23.1.1'
compile 'com.lsjwzh:materialloadingprogressbar:0.5.6-RELEASE'
compile 'com.github.blackfizz:eazegraph:1.2.2#aar'
compile 'com.nineoldandroids:library:2.4.0'
compile('com.github.afollestad.material-dialogs:core:0.8.5.7#aar') {
transitive = true
}
}
apply plugin: 'com.google.gms.google-services'

Unable to use amlcurran.showcaseview library in android studio

I am trying to use amlcurran/showcaseview library and i am following this tutorial, but i am unable tor resolve the library:
Error:(29, 13) Failed to resolve: com.github.amlcurran.showcaseview:library:5.0.0
Here is my build.gradle(project) file:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.wolverine.showcasetutorial"
minSdkVersion 9
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven { url "http://jcenter.bintray.com" }
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.github.amlcurran.showcaseview:library:5.0.0'
}
Please help me to fix this.
add this your manifest file
<uses-sdk tools:overrideLibrary="com.github.amlcurran.showcaseview"/>

Why can't I add support library in Android Studio?

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.8.+'
}
}
dependencies {
compile 'com.android.support:appcompat-v7:19.0.+'
compile 'com.android.support:support-v4:19.0.+'
compile 'com.github.chrisbanes.actionbarpulltorefresh:library:+'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0#aar'
compile project(':library:SlidingMenu:library')
compile project(':library:Android-ViewPagerIndicator:library')
compile fileTree(dir: 'libs', include: ['*.jar'])
}
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
Event Log
Failed to refresh Gradle project 'My Application' Could not find method compile() for arguments [com.android.support:appcompat-v7:19.0.+] on project ':app'. Please install the Android Support Repository from the Android SDK Manager.

Categories

Resources