question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to generate the release build

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ritwik-shankercommented, Oct 13, 2020

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 from src/debug/java/... and not src/main/java/... or src/release/java/....

@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

3reactions
passycommented, Nov 20, 2019

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 from src/debug/java/... and not src/main/java/... or src/release/java/....

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found