摇篮未能解决机器人工作室库

摇篮未能解决机器人工作室库

本文介绍了摇篮未能解决机器人工作室库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想包括图书馆机器人工作室,但显示错误象下面这样:

没有解决:com.lemonlab:可扩展的按钮菜单:1.0.0

如何解决这个问题?

 应用插件:com.android.application

    安卓{
        compileSdkVersion 21
        buildToolsVersion '21 .1.2

        defaultConfig {
            的applicationIDayowes.com.newecampus
            的minSdkVersion 15
            targetSdkVersion 21
            版本code 1
            VERSIONNAME1.0
        }
        buildTypes {
            推出 {
                minifyEnabled假
                proguardFiles getDefaultProguardFile('ProGuard的-的Andr​​oid ptimize.txt'),'ProGuard的-rules.txt
            }
        }
    }

    依赖{
        编译文件树(导演:库,包括:['的* .jar'])
        编译com.android.support:appcompat-v7:21.0.3
        编译com.google.android.gms:播放服务:87年6月5日
        编译com.lemonlab:可扩展的按钮菜单:1.0.0
        编译文件(库/ pinchzoom.jar)
    }
 

解决方案

要能够使用,你需要把它列入你的应用程序的settings.gradle添加一个lib项目:

 包括..:ExpandableButtonMenu:库
 

,然后在build.gradle地址:

 编制项目(':..:ExpandableButtonMenu:库)
 

地方ExpandableButtonMenu项目的旁边你自己的(同一文件夹中)

看到这样的How与Android的Studio和摇篮建立一个Android库?的更多细节。

I want to include library in android studio , but display error like below :

" failed to resolve:com.lemonlab:expandable-button-menu:1.0.0 "

How to fix this problem...

    apply plugin: 'com.android.application'

    android {
        compileSdkVersion 21
        buildToolsVersion '21.1.2'

        defaultConfig {
            applicationId "ayowes.com.newecampus"
            minSdkVersion 15
            targetSdkVersion 21
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android-ptimize.txt'), 'proguard-rules.txt'
            }
        }
    }

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:21.0.3'
        compile 'com.google.android.gms:play-services:6.5.87'
        compile 'com.lemonlab:expandable-button-menu:1.0.0'
        compile files('libs/pinchzoom.jar')
    }
解决方案

To be able to use a lib project you need to include it in your application's settings.gradle add:

include '..:ExpandableButtonMenu:library'

and then in your build.gradle add:

compile project(':..:ExpandableButtonMenu:library')

place ExpandableButtonMenu project along side your own (same folder)

see this How to build an android library with Android Studio and gradle? for more details.

这篇关于摇篮未能解决机器人工作室库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 14:01