Project with path could not be found in root project Android Studio - android

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

Related

Unable to merge dex error in android studio 3.0

I am looking for the answer that can help me to solve this problem. I am trying to solve this problem for last 2 days.But still, I didn't get the answer that can solve my problem. I have tried so many solutions which are given here.But no solution worked for me.
Please help me to solve this problem.Any help will be appreciated.
The actual problem is:
Error:Execution failed for task
':app:transformDexArchiveWithExternalLibsDexMergerForGlobalServerDebug'.
java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
this is occurring every time when I run my existing project on android studio 3.0
I have tried so many solutions for this like:
1- To add mutidexenabled true in gradle
2- To change the version of dependencies
3- To change the compile keyword with the implementation
4- To clean and rebuild the project
5- Delete the Gradle file(this was so difficult because when you again
restarted the project no Gradle file will be auto-regenerated) etc.
I am looking for the solutions which are other than those which are mentioned above. Please help me out. Please...
code of gradle file is given below:
apply plugin: 'com.android.application'
buildscript {
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'io.fabric'
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
flatDir {
dirs 'libs'
}
}
repositories {
maven { url 'http://clojars.org/repo' }
}
android {
signingConfigs {
config {
keyAlias 'example'
keyPassword 'example'
storeFile file('/Users/standarduser/Documents/Android_Projects/example.jks')
storePassword '########'
}
}
compileSdkVersion 25
buildToolsVersion '26.0.2'
defaultConfig {
applicationId 'com.example.example'
minSdkVersion 16
targetSdkVersion 24
versionCode 9 // both Latest
versionName "2.0.7"
multiDexEnabled true
useLibrary 'org.apache.http.legacy'
vectorDrawables.useSupportLibrary = true
signingConfig signingConfigs.config
}
dexOptions {
incremental = true
preDexLibraries = false
javaMaxHeapSize "4g"
}
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
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'
}
}
lintOptions{
abortOnError false
}
}
dependencies {
compile files('libs/httpcore-4.4.1.jar')
compile('com.twitter.sdk.android:twitter:2.1.1#aar') { //1.6.1#aar
transitive = true;
}
compile('com.github.afollestad.material-dialogs:core:0.8.5.2#aar') {
transitive = true
}
compile('io.socket:socket.io-client:0.8.2') { // 0.6.3
// excluding org.json which is provided by Android
exclude group: 'org.json', module: 'json'
}
testCompile 'junit:junit:4.12'
compile 'com.writingminds:FFmpegAndroid:0.3.2'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'io.nlopez.smartlocation:library:3.2.9'
// compile 'com.android.volley:volley:1.0.0'
compile 'com.google.android.gms:play-services-appinvite:9.8.0'
//9.0.1
compile 'com.google.android.gms:play-services-gcm:9.8.0'
compile 'com.google.android.gms:play-services-location:9.8.0'
compile 'com.google.android.gms:play-services-places:9.8.0'
compile 'com.google.android.gms:play-services-maps:9.8.0'
compile 'com.google.android.gms:play-services-ads:9.8.0'
compile 'com.google.android.gms:play-services-auth:9.8.0'
compile 'com.google.android.gms:play-services-plus:9.8.0'
//noinspection GradleCompatible
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:design:25.0.1'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.google.code.gson:gson:2.4'
compile 'org.apache.httpcomponents:httpmime:4.3.5'
// implementation 'org.apache.httpcomponents:httpmime:4.3.6'
// implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.facebook.android:facebook-android-sdk:4.23.0'
compile 'com.pusher:pusher-java-client:1.1.2'
compile 'com.android.support:recyclerview-v7:25.0.1'
compile 'com.android.support:cardview-v7:25.0.1'
compile 'com.daimajia.swipelayout:library:1.2.0#aar'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.6'
compile 'com.amazonaws:aws-android-sdk-mobileanalytics:2.2.9'
compile 'com.commit451:PhotoView:1.2.4'
compile 'commons-lang:commons-lang:2.3'
compile 'com.karumi:dexter:2.3.1'
compile 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
implementation 'com.android.support:multidex:1.0.2'
compile 'org.ocpsoft.prettytime:prettytime:3.2.7.Final'
compile 'com.koushikdutta.async:androidasync:2.+'
compile 'com.soundcloud.android:android-crop:1.0.1#aar'
compile 'net.danlew:android.joda:2.9.4.1'
compile 'com.albinmathew:photo-crop-library:1.0.3'
compile 'com.amazonaws:aws-android-sdk-core:2.2.+'
compile 'com.amazonaws:aws-android-sdk-s3:2.2.+'
compile 'com.wang.avi:library:2.1.3'
compile 'com.wowza.gocoder.sdk.android:com.wowza.gocoder.sdk:1.0b7#aar'
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.+'
compile('com.crashlytics.sdk.android:crashlytics:2.6.4#aar') {
transitive = true;
}
compile 'com.google.code.gson:gson:2.7'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
// compile 'com.cocosw:bottomsheet:1.+#aar'
compile project(':libbambuser7')
compile 'com.squareup.okhttp:okhttp:2.0.0'
}
apply plugin: 'com.google.gms.google-services'
Add this in your build.gradle
android {
defaultConfig {
multiDexEnabled true
}
}
First sync gradle then
From the Build menu -> press the Clean Project button.
When task completed, press the Rebuild Project button from the Build menu.
compile is now deprecated so it's better to use implementation or api
hope this helps you.
Try this
Use this
com.google.android.gms:play-services:11.6.0
com.google.android.gms:play-services-location:11.6.0
Instead of this
com.google.android.gms:play-services:9.8.0
after Sync -> clean -> rebuild

ModuleVersionNotFoundException android studio

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()

Build APK error?

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.

plugin with id 'com.android.application' not found Android studio

I'm getting "plugin with id 'com.android.application' not found" error in my app after adding one library project in my app, but now I removed that library project from my app but still same error is persist. I googled a lot and tried almost all the solution but yet unable to resolve this error. For more information, please check the following "app module's build.gradle"--
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
applicationId "com.lemo.wikinews"
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"
}
}
And below is my top level 'builg.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()
}
}
Also please let me know if I can provide more information to understand the problem. Thank you.
Bellow is my way to resolve a import problem,the project use a old studio plugin. Forgive my poor English.
Edit your top moudle build.gradle ,edit gradle plugin to your studio's have . then maybe show this,
Error:Minimum supported Gradle version is 2.14.1. Current version is 2.2.1. If using the gradle wrapper, try editing the distributionUrl in C:\Users\Administrator\Desktop\SelectCityDome\gradle\wrapper\gradle-wrapper.properties to gradle-2.14.1-all.zip
Fix Gradle wrapper and re-import project
Gradle settings follow the step fix it.
JUST SEE THIS PICTURE

“'this' is not available” in debug windows of Android Studio

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

Categories

Resources