when i click on run button then i got this error
Error:org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
Error:org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.android.support:appcompat-v7:27.0.1.
please see below screen shot
and when i try to gradle sync
then i got this problem
please see below screen shot
my build.gradle
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
signingConfigs {
config {
}
}
repositories {
mavenCentral()
}
compileSdkVersion 25
buildToolsVersion '26.0.0'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.hechat"
minSdkVersion 18
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "2048M"
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
exclude 'project.properties'
exclude 'META-INF/INDEX.LIST'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven { url "https://dl.bintray.com/hani-momanii/maven" }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.google.code.findbugs'
})
compile('com.twitter.sdk.android:twitter:2.3.1#aar') { transitive = true; }
compile('com.crashlytics.sdk.android:crashlytics:2.6.5#aar') { transitive = true; }
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1'
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:cardview-v7:25.0.0'
compile 'com.android.support:design:25.0.0'
compile 'net.gotev:uploadservice:2.1'
compile 'com.android.support:recyclerview-v7:25.0.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'hani.momanii.supernova_emoji_library:supernova-emoji-library:0.0.2'
compile 'com.google.android.gms:play-services:11.0.4'
compile 'com.google.firebase:firebase-core:10.2.1'
compile 'com.google.code.gson:gson:2.3'
compile 'org.apache.httpcomponents:httpcore:4.3.2'
compile 'org.apache.httpcomponents:httpmime:4.3.3'
compile 'com.mcxiaoke.volley:library:1.0.17'
compile 'com.github.clans:fab:1.6.2'
compile 'org.jsoup:jsoup:1.8.1'
compile 'com.parse.bolts:bolts-tasks:1.4.0'
compile 'com.commit451:PhotoView:1.2.4'
compile 'com.android.support:multidex:1.0.0'
compile 'com.splitwise:tokenautocomplete:1.3.3'
compile 'com.tubb.smrv:swipemenu-recyclerview:5.2.1'
compile 'com.github.bumptech.glide:glide:3.5.2'
compile 'se.emilsjolander:stickylistheaders:2.7.0'
compile 'com.mindorks:placeholderview:0.6.4'
compile 'org.twitter4j:twitter4j-core:4.0.2'
compile 'jp.wasabeef:fresco-processors:2.1.0'
compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.3.0'
compile 'com.google.firebase:firebase-messaging:10.2.1'
compile 'com.android.billingclient:billing:1.0'
testCompile 'junit:junit:4.12'
compile project(':cometchat_platinum-sdk')
}
apply plugin: 'com.google.gms.google-services'
i have not used v-27 then why i am facing v7 issue
thanks in advance
Add allprojects block in your app level build file
1.
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}}}
2.
New projects created using Android Studio 3.0 and higher also include
allprojects {
repositories {
jcenter()
google()
}}
And change your compileSdkVersion to 26 and also buildToolsVersion "26.0.1" then sync your project
Hope this will help you.
Try this i have same problem i solved using below dependencies of Facebook
Use this
compile 'com.facebook.android:facebook-android-sdk:4.26.0'
instead of this
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
There are dependencies that require the entire hierarchy of modules to include the repository.
With Kotlin DSL
build.gradle.kts (Project)
allprojects {
repositories {
// ...
maven(url = "<YOUR-URL>")
}
}
With Groovy
build.gradle (Project)
allprojects {
repositories {
// ...
maven {
url '<YOUR-URL>'
}
}
}
GL
In my case, I was using old plugin so needed to add
jcenter()
After
mavenCentral()
Related
I am facing this issue, I have done the all mandatory changes , but still facing
build.gradle (project level)
buildscript {
repositories {
jcenter()
google()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'io.fabric.tools:gradle:1.25.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.1.0'
}
}
allprojects {
repositories {
jcenter()
google()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.google.com' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
build.gradle (app level)
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven {
url 'https://repo1.maven.org/maven2/'
}
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 27
buildToolsVersion '27.0.1'
defaultConfig {
applicationId "com.kiran.example.ebitcoin"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// Enabling multidex support.
multiDexEnabled true
vectorDrawables.useSupportLibrary = true //support color.xml colors in vector image
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
useLibrary 'org.apache.http.legacy'
// for EncodingUtils.getBytes(post_Data, "base64") in actrivitypaymentfrowebview
sourceSets { main { res.srcDirs = ['src/main/res', 'src/main/assets/font'] } }
packagingOptions {
exclude 'META-INF/rxjava.properties'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
}
dependencies {
implementation 'com.google.firebase:firebase-messaging:11.0.4'
implementation 'com.google.firebase:firebase-invites:11.0.4'
implementation 'com.google.firebase:firebase-crash:11.0.4'
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:27.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:27.0.1'
compile 'com.android.support:support-v13:27.0.1'
testCompile 'junit:junit:4.12'
implementation 'com.android.support:cardview-v7:27.0.1'
compile('com.crashlytics.sdk.android:crashlytics:2.9.2#aar') {
transitive = true;
}
compile 'com.flurry.android:analytics:11.0.0#aar'//flurry sdk of yahoo for crashalytics
//compile 'com.google.code.gson:gson:2.3.1'
//compile 'com.squareup.okhttp:okhttp:2.4.0'
compile 'com.android.support:animated-vector-drawable:27.0.1'
//compile 'com.android.support:customtabs:27.0.1'
//compile 'com.android.support:palette-v7:27.0.1'
compile 'com.android.support:recyclerview-v7:27.0.1'
//to store object in shared pref
// compile 'com.google.code.gson:gson:2.7'
// Retrofit
compile 'com.squareup.retrofit2:retrofit:2.3.0'
// JSON Parsing
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
//add ripple below API 21
//compile 'com.balysv:material-ripple:1.0.2'
//add this dependency to scan QR code
compile 'com.journeyapps:zxing-android-embedded:3.4.0'
//material dialog
// compile 'me.drakeet.materialdialog:library:1.3.1'
//for setting GIF image
//compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.8'
//for material dialogs
//implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
//for sms otp
//compile 'com.github.GoodieBag:Pinview:v1.3'
//PayUMoney
/* compile('com.payumoney.sdkui:plug-n-play:1.1.0') {
transitive = true;
exclude module: 'payumoney-sdk'
}
compile 'com.payumoney.core:payumoney-sdk:7.1.0'*/
//for payment gateway
compile 'com.android.volley:volley:1.1.0'
//enable multiple methods
compile 'com.android.support:multidex:1.0.0'
//contry code selector
//implementation 'com.hbb20:ccp:2.1.4'
//appling font library to app
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
//file compression
compile 'id.zelory:compressor:2.1.0'
//async task test
//compile 'com.loopj.android:android-async-http:1.4.9'
// compile 'cz.msebera.android:httpclient:4.3.6'//upload images to api using this
//progress dialog
//compile 'com.github.d-max:spots-dialog:0.4'
//to load
compile 'com.github.bumptech.glide:glide:3.8.0'
implementation files('libs/android-async-http-1.4.9.jar')
implementation files('libs/android-async-http-1.4.9.jar')
}
apply plugin: 'com.google.gms.google-services'
Make sure all support lib have same version.
There are multiple reasons Why you are getting this error,
First one May be your internet is not working properly because as i see you have used a lots of third party libraries so it will require high speed internet to download.
Second one is may be your project setting is in offline mode Check it by go to File -> Settings -> Build , execution , Development and click Gradle and check weather the "Offline" work checkbox is checked or not.
Third one is may be a cache memory just invalidate and restart the project go to File -> Invalidate Caches / Restart.
Hope this help
This question already has an answer here:
Duplicate files copied in APK META-INF/maven/com.squareup/otto/pom.xml
(1 answer)
Closed 5 years ago.
Hello people i get the following error when iam trying to run my android app:
Gradle build error, Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'
com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META/INF/maven/com.squareup.okio/okio/pom.xml
These are my both gradle files:
// Top-level build file where you can add configuration options common to
all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
apply plugin: 'maven'
maven { url 'https://maven.google.com' }
maven {url 'https://maven.fabric.io/public'}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
And this is the other one:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "com.dp.liveupdatestatus"
minSdkVersion 18
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:recyclerview-v7:26.1.0'
// This is needed for firebase UI
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.support:customtabs:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.google.firebase:firebase-database:11.4.2'
compile 'com.google.firebase:firebase-storage:11.4.2'
compile 'com.google.firebase:firebase-crash:11.4.2'
compile 'com.google.firebase:firebase-auth:11.4.2'
compile 'com.google.firebase:firebase-messaging:11.4.2'
compile 'com.firebaseui:firebase-ui:3.1.0'
compile 'com.squareup.picasso:picasso:2.5.2'
}
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'
Please help!
android {
......
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
}
add this to exclude the META inf files
I tried to build apk it comes out this. What should I do? Please help!!
I don't where is the problem. The project is fine when I build the project, but it come error when I build apk.
Error:Execution failed for
task':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/auth/api/signin/internal/zzf.class
Here is the gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
defaultConfig {
applicationId 'com.androidbelieve.SeeDate'
minSdkVersion 19
targetSdkVersion 24
versionCode 1
versionName "1.0"
useLibrary 'org.apache.http.legacy'
multiDexEnabled true
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
}
productFlavors {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.google.android.gms:play-services-ads:10.0.1'
compile 'com.android.support:design:22.2.1'
compile 'com.android.support:cardview-v7:22.2.1'
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.mcxiaoke.volley:library:1.0.18'
compile 'com.github.bumptech.glide:glide:3.6.0'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.android.support:support-v4:22.2.1'
compile 'it.neokree:MaterialNavigationDrawer:1.3.3'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.android.gms:play-services-maps:10.0.1'
compile 'com.google.code.findbugs:jsr305:2.0.1'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.firebase:firebase-client-android:2.5.0'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.firebaseui:firebase-ui:0.6.0'
}
apply plugin: 'com.google.gms.google-services'
gradle project
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
Did you tried Build/Clean Project in Android Studio Menu
Which dependency does the app:transformClassesWithJarMergingForDebug come from? Maybe you should modify that dependency's version number to be consistent with the major sdk version.
Actually few hours ago my project has no error, but I don't know what changes happened from me unknowingly and now I'm getting following error--
"Error:(36, 0) Project with path ':easyAndroidAnimationsLibrary' could not be found in root project 'wikiReviews'". I googled and checked for my project hierarchy, gradle file, setting file everything seems to be OK but unable to trace the real problem yet. Please see the following image to check hierarchy--
My build.gradle is--
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
applicationId "com.myleomo.wikiReviews"
minSdkVersion 15
targetSdkVersion 23
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile project(':easyAndroidAnimationsLibrary')
compile project(':liveSdk')
compile project(':main')
compile project(':zbarSample')
compile project(':stickyHeaderLibrary')
compile project(':starBar')
compile project(':facebookSDK')
compile project(':library')
compile project(':ffmpeg4android_lib')
compile project(':socialNetworkingLib')
compile 'com.google.android.gms:play-services:9.6.1'
compile files('libs/nmdp_speech_kit.jar')
compile files('libs/AndroidSwipeLayout-v1.1.8.jar')
compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
compile files('libs/CWAC-SackOfViewsAdapter.jar')
compile files('libs/devsmartandroid.jar')
compile group: 'com.google.api-client', name: 'google-api-client', version: '1.6.0-beta'
compile files('libs/google-api-services--v1-1.3.0-beta.jar')
compile files('libs/httpclient-4.4.jar')
compile group: 'oauth.signpost', name: 'signpost-commonshttp4', version: '1.2'
compile group: 'oauth.signpost', name: 'signpost-core', version: '1.2.1.2'
compile group: 'oauth.signpost', name: 'signpost-jetty6', version: '1.2.1.1'
compile 'com.android.support:multidex:1.0.0'
'4.4-alpha1'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'org.apache.httpcomponents:httpclient:4.5'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpmime:4.3.5'
version: '4.3.5.1'
compile('org.apache.httpcomponents:httpmime:4.3')
{
exclude module: "httpclient"
}
}
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
repositories {
jcenter()
}
}
allprojects {
repositories {
jcenter()
}
}
Below is my top level build. gradle--
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
allprojects {
repositories {
jcenter()
}
}
Below is my settings.gradle--
include ':easyAndroidAnimationsLibrary'
include ':facebookSDK'
include ':liveSdk'
include ':socialNetworkingLib'
include ':starBar'
include ':stickyHeaderLibrary'
include ':zbarSample'
include ':ffmpeg4android_lib'
include ':library'
include ':main'
include ':wikiReviews'
Please let me know if I can provide more information for the same. Thank you.
your project should be wikiReviews.
I guess the way of your project loaded from android studio maybe wrong
Please I really need help with this,
this might seem a duplicate of "'this' is not available" in debug windows of Android Studio
but I need to provide more information to address the specific issue.
So I am in the same situation of the question at the link, but I suspect that it has to do with my build setup.
Please help.
This is my build.gradle:
buildscript {
repositories {
maven { url 'http://download.crashlytics.com/maven' }
mavenCentral()
}
dependencies {
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
}
}
apply plugin: 'com.android.application'
apply plugin: 'crashlytics'
apply plugin: 'com.jakewharton.hugo'
repositories {
maven { url 'http://download.crashlytics.com/maven' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://jitpack.io" }
maven { url 'https://dl.bintray.com/kennyc1012/maven' }
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.foo"
minSdkVersion 16
targetSdkVersion 21
versionCode 21
versionName "4.7"
}
buildTypes {
debug {
debuggable true
}
}
packagingOptions {
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'LICENSE.txt'
exclude 'META-INF/maven/com.squareup.okhttp/okhttp/pom.xml'
exclude 'META-INF/maven/com.squareup.okhttp/okhttp/pom.properties'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile 'junit:junit:4.12'
androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
compile('com.squareup.retrofit:converter-simplexml:2.0.0-beta2') {
exclude module: 'xpp3'
exclude group: 'stax'
}
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:preference-v7:23.1.1'
compile 'com.android.support:palette-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.octo.android.robospice:robospice-spring-android:1.4.14'
compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
compile 'com.octo.android.robospice:robospice-ui-spicelist:1.4.14'
compile 'com.crashlytics.android:crashlytics:1.+'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
compile 'org.jsoup:jsoup:1.7.2'
compile 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:1.1.0#aar'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.getbase:floatingactionbutton:1.9.0'
compile 'com.android.support:design:23.1.1'
compile 'joda-time:joda-time:2.9.1'
compile 'com.squareup.okhttp:logging-interceptor:2.6.0'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.jayway.android.robotium:robotium-solo:5.5.3'
compile 'com.kennyc:multistateview:1.1'
compile 'com.mikepenz:iconics-core:2.5.2#aar'
compile 'com.mikepenz:fontawesome-typeface:4.5.0.1#aar'
compile 'com.mikepenz:google-material-typeface:2.1.0.1.original#aar'
compile 'me.henrytao:smooth-app-bar-layout:1.0.1'
compile 'fr.avianey.com.viewpagerindicator:library:2.4.1.1#aar'
compile 'com.google.android.gms:play-services-appindexing:8.1.0'
}
this is the top level build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
allprojects {
repositories {
jcenter()
}
}
Just remove Hugo, and the problem will be solved. This issue is duplicated and as been already answer in the following post : "'this' is not available" in debug windows of Android Studio
A issue has been published to the Hugo repo.
I meet the same question.Try this method:make your build.gradle have---------> minifyEnabled false.
Sometime i use this way resolve my problem.
This might help, just a silly thing. If you are using minify, then check if it's enabled in debug
buildTypes {
debug {
minifyEnabled true
}
}
To
minifyEnabled false