Coder Social home page Coder Social logo

android-training's People

Contributors

5a59 avatar gaozp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-training's Issues

下载你的gradle自定义插件失败

`FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'EasyGradle'.

Could not resolve all files for configuration ':classpath'.
Could not find com.zy.plugin:myplugin:0.0.1.
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.pom
https://dl.google.com/dl/android/maven2/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.jar
https://jcenter.bintray.com/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.pom
https://jcenter.bintray.com/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.jar
file:/Users/os/.m2/repository/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.pom
file:/Users/os/.m2/repository/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.jar
Required by:
project :`
gradle分析那个项目,初始化的时候失败了,我应该怎么解决呢

could not find com.zy.plugin:myplugin:0.0.1

Hello bro,
When I run your EasyGradle project, the gradle shows that
A problem occurred configuring root project 'EasyGradle'.

Could not resolve all files for configuration ':classpath'.
Could not find com.zy.plugin:myplugin:0.0.1.
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.pom
https://dl.google.com/dl/android/maven2/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.jar
https://jcenter.bintray.com/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.pom
https://jcenter.bintray.com/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.jar
file:/Users/bytedance/.m2/repository/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.pom
file:/Users/bytedance/.m2/repository/com/zy/plugin/myplugin/0.0.1/myplugin-0.0.1.jar
Required by:
project :

Possible solution:

宿主apk 和 插件apk 资源id冲突

你好,请教一个问题,宿主apk 和 插件apk是单独打包的,这样会导致资源id冲突。
现在插件apk中有两种引用color资源的方式:
1.xml引用: android:background="@color/color_plugin"
2.代码设置:findViewById(R.id.myView).setBackgroundColor(resources!!.getColor(R.color.color_plugin))

第二种方式没问题,取得是插件中的色值,而第一种方式会取到宿主中对应的R文件索引的色值,这个是什么原因呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.