Not able to generate the release build
See original GitHub issueI am not able to generate the release build with all debug configuration in place. I am getting following error when I try to generate the signed apk.
Unresolved reference: utils |
-- | --
Unresolved reference: plugins |
Unresolved reference: plugins |
Unresolved reference: plugins |
Unresolved reference: plugins |
Unresolved reference: plugins |
Unresolved reference: plugins |
Unresolved reference: plugins |
Unresolved reference: soloader |
Unresolved reference: SoLoader |
Unresolved reference: FlipperUtils |
Unresolved reference: InspectorFlipperPlugin |
Unresolved reference: DescriptorMapping |
Unresolved reference: NetworkFlipperPlugin |
Unresolved reference: DatabasesFlipperPlugin |
Unresolved reference: SharedPreferencesFlipperPlugin |
Unresolved reference: LeakCanaryFlipperPlugin |
Unresolved reference: CrashReporterPlugin |
My init configuration in application class is
SoLoader.init(this, false)
if (BuildConfig.DEBUG && FlipperUtils.shouldEnableFlipper(this)) {
val client = AndroidFlipperClient.getInstance(this)
client.addPlugin(InspectorFlipperPlugin(this, DescriptorMapping.withDefaults()))
val networkFlipperPlugin = NetworkFlipperPlugin()
client.addPlugin(networkFlipperPlugin)
client.addPlugin(DatabasesFlipperPlugin(this))
client.addPlugin(SharedPreferencesFlipperPlugin(this, PREF_FILE_NAME))
client.addPlugin(LeakCanaryFlipperPlugin())
client.addPlugin(CrashReporterPlugin.getInstance())
client.start()
}
Note: All the dependencies are debug implementation as mentioned in the getting started flipper guide… https://fbflipper.com/docs/getting-started.html
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Unable to generate release Build apk - android - Stack Overflow
Unable to generate release Build apk ... 1.1.0-rc01 /* beta2 causes issues with layouts not showing content till updating (eg DevicePicker) ...
Read more >Unable to generate Release build for Flutter application #76144
Hi, I am trying to generate a signed bundle for my Working Flutter application but i keep getting a huge number of null...
Read more >Build and run your app - Android Developers
Open Android Studio and select New Project in the Welcome to Android Studio dialog. If you already have a project open, you can...
Read more >Set debug and release configurations - Visual Studio (Windows)
From the Build menu, select Configuration Manager, then select Debug or Release. Generate symbol (.pdb) files for a build (C#, C++, Visual Basic ......
Read more >Build and release an Android app - Flutter documentation
Create an upload keystore · The keytool command might not be in your path—it's part of Java, which is installed as part of...
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 FreeTop 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
Top GitHub Comments
@passy I’ve been trying to find a good article for this but i’m not able to find one. Is there a way to setup src/debug/java and src/main/java? I am stuck on this for the last 2 days. Also is a noop version available for
NetworkFlipperPlugin
This is expected. If you rely on release and debug flavours, you must ensure to only access those symbols from the corresponding build variant. I.e. if you want to access a particular plugin like
InspectorFlipperPlugin
, this can only happen fromsrc/debug/java/...
and notsrc/main/java/...
orsrc/release/java/...
.