android studio引入第三方源包我想当做library使用它,结果报错了
PHP中文网
PHP中文网 2017-04-17 13:37:04
0
1
615

Error:Execution failed for task ':app:prepareDebugDependencies'.

Dependency Error. See console for details

laucherActivity是我引入进去的包,如何在我自己的MainActivity中调用他啊,大神求指教

下面是gradle

debug:

PHP中文网
PHP中文网

认证高级PHP讲师

reply all (1)
Ty80

第一个gradle

Groovy... dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' compile project(':launcherActivity') }

第二个gradle

Groovyapply plugin: 'com.android.library' defaultConfig { // applicationId "com.handmark.pulltorefresh.samples" ... } ...

按照上面的更正两个项目的Gradle文件应该就可以了

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!