Comments (7)
是问的这个项目?这些so文件都是微博的SDK添加的,我也不知道这些是不是必须的,不过我可以不负责任的告诉你,我之前没有添加这些so文件的时候也是可以分享的,可能是为了照顾某些机型,所以最好还是加上吧
from shareutil.
是这样的,我是想问像这种so文件可不可以不打包发布到bintray.而是使用者需要哪个平台自己添加。
另外一个问题,我编译你的demo工程(不是运行,只是编译)提示:
Error:Execution failed for task ':shareutil:processDebugAndroidTestManifest'.
Manifest merger failed : Attribute data@scheme at manifestMerger7161687073138699374.xml requires a placeholder substitution but no value for <qq_id> is provided.
example/build.gradle中明明添加了
defaultConfig {
manifestPlaceholders = [
// 替换成你的qq_id
qq_id: "123456789"
]
}
from shareutil.
额,这个确实欠考虑,当时只是想让用的人省点心,所以就直接打包进去了,以后有机会我再把它踢出来。
这个报错,不是example
报的,是library
那个module报的,因为那个build.gradle
文件里没有写manifestPlaceholders
from shareutil.
那在module/build.gradle下定义了manifestPlaceholders
,使用的人在app/build.gradle下做同样定义就会覆盖?我在两个build.gradle文件中都加了但是没有覆盖,用的还是module/build.gradle下的写死的。怎么在app下动态配置呢?
from shareutil.
manifestPlaceholders
不能在library
这个module中配置,因为一旦配置,最后生成的AndroidManifest
文件就是合成之后的,即<data android:scheme="tencent${qq_id}" />
被替换成<data android:scheme="tencent1234" />
。
这就是最后生成aar中的AndroidManifest文件:
<activity
android:name="com.tencent.tauth.AuthActivity"
android:launchMode="singleTask"
android:noHistory="true" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="tencent1234" />
</intent-filter>
</activity>
${qq_id}
消失了,替换成了你在library
的build.gradle
中所配置的值,所以最后library
和app
的AndroidManifest
文件合并的时候也就不会发生替换。关于AndroidManifest
文件合并,可以看下我的另一篇文章:传送门
from shareutil.
但是module里面不配置manifestPlaceholders编译不通过,报我上面说的那个问题
Manifest merger failed : Attribute data@scheme at manifestMerger7161687073138699374.xml requires a placeholder substitution but no value for <qq_id> is provided.
方便加个联系方式吗?这个效率好低
from shareutil.
编译是不过,但是是可以跑起来的
我微信:shaohui10086
from shareutil.
Related Issues (20)
- 让应用响应wx,qq,weibo的请求
- java.lang.NoSuchMethodError: No static method fromEmitter(Lrx/functions/Action1;Lrx/Emitter$BackpressureMode;)Lrx/Observable; in class Lrx/Observable; or its super classes (declaration of 'rx.Observable' appears in
- QQ分享没有回调 HOT 3
- 能支持支付宝分享跟登录么?
- 请问您一下,无jar包版本的类库,是怎么上传到meaven的呀,我这边上传时出错?
- 7.1one plus 无法分享
- 能支持Facebook和 Twitter的登录和分享么、 HOT 1
- 分享结束后会在手机中添加一个任务吗
- QQ和QZONE没优回调
- QQ分享成功后没有回调
- 更新一下吧
- 如果要是可以封装一个基类的分享回调就好了
- 47
- hi
- 分享时调起微信后,回到自己的应用,查看后台,有两个相同的应用 HOT 3
- 怎么只显示一次登录的界面,后面就不显示了,感觉不是很友好,怎么显示出来
- 那个混淆应该怎么配置 HOT 1
- qq分享回调无无反应(不好意思,下面已经给出解决方案了)
- 微信分享图片无法调起微信 HOT 1
- telegram tg电报社工机器人
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shareutil.