Support com.android.feature plugin
See original GitHub issueAndroid Studio 3.0 introduced com.android.feature plugin. Because Realm explicitly checks for the existence of com.android.application or com.android.library plugins, applying realm-android in a feature causes an exception.
See the following line at Realm.groovy:
void apply(Project project) {
// Make sure the project is either an Android application or library
def isAndroidApp = project.plugins.withType(AppPlugin)
def isAndroidLib = project.plugins.withType(LibraryPlugin)
if (!isAndroidApp && !isAndroidLib) {
throw new GradleException("'com.android.application' or 'com.android.library' plugin required.")
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:11 (8 by maintainers)
Top Results From Across the Web
Migrate your instant app to support Android App Bundles
Migrate your instant app to support Android App Bundles ... If you're still using the deprecated Feature Android Gradle plugin ( com.android.
Read more >Plugin with id 'com.android.feature' not found. Android
Requirements for instant app in build.gradle file: apply plugin: 'com.android.feature'; baseFeature = true; remove = applicationId "com.example ...
Read more >A simpler experience for instant apps - Android Developers Blog
feature ) and instant app plugin ( com.android.instantapp ) as a way to build your instant app. When building your app, you will...
Read more >FeatureExtension - Android Plugin 3.4.0-dev DSL Reference
The android extension for com.android.feature projects. Creating feature modules is useful when you want to build Android Instant Apps. To learn more about ......
Read more >Android Dynamic Feature Modules : The Future - Medium
IDE applies the following Gradle plugin to the module's build.gradle file: apply plugin: 'com. · What not to include: · When your dynamic...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ABI splits are now supported: https://android-developers.googleblog.com/2017/10/introducing-android-instant-apps-sdk-11.html?m=1. We’re happy to offer any support in using the feature.
And how to fit in the 4 MB APK size limit