简体   繁体   中英

Android Library Module Conflict

I am opening my library module's activity in a sample application. everything works fine but when i enable flavours in my library module project than, i am unable to use library module activity. The activity class becomes unavailable to my sample application.

What is the actual problem and how can i solve this problem.

If you are using a 3.0.0-alphaX gradle, the problem might be with a new change that is documented here

Basically, the library will now be aware of your app flavour and builtType and will try to use the same one.

You may need to set a default flavour, such as:

flavorSelection 'shape', 'square'

under defaultConfig

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM