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.

How to make the task hidesecret ?

See original GitHub issue

I am getting this error: Task ‘hideSecret’ not found in project ‘:app’. Please help.

C:\Users\abhiv\AndroidStudioProjects\Testing\app>gradle hideSecret -Pkey=loveabhishek [-PkeyName=first] [-Ppackage=com.example.testing] --info
Initialized native services in: C:\Users\abhiv\.gradle\native
The client will now receive all logging from the daemon (pid: 26056). The daemon log file: C:\Users\abhiv\.gradle\daemon\6.5.1\daemon-26056.out.log
Starting 7th build in daemon [uptime: 4 mins 27.496 secs, performance: 98%]
Using 16 worker leases.
Starting Build
Settings evaluated using settings file 'C:\Users\abhiv\AndroidStudioProjects\Testing\settings.gradle'.
Projects loaded. Root project using build file 'C:\Users\abhiv\AndroidStudioProjects\Testing\build.gradle'.
Included projects: [root project 'Testing', project ':app']

> Configure project :
Evaluating root project 'Testing' using build file 'C:\Users\abhiv\AndroidStudioProjects\Testing\build.gradle'.
Unzip jar to C:\Users\abhiv\AndroidStudioProjects\Testing\build/hidden-secrets-tmp

> Configure project :app
Evaluating project ':app' using build file 'C:\Users\abhiv\AndroidStudioProjects\Testing\app\build.gradle'.
Creating configuration androidTestUtil
All projects evaluated.
Analytics other plugin to proto: Unknown plugin type com.klaxit.hiddensecrets.HiddenSecretsPlugin expected enum COM_KLAXIT_HIDDENSECRETS_HIDDENSECRETSPLUGIN

FAILURE: Build failed with an exception.

* What went wrong:
Task 'hideSecret' not found in project ':app'.

* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

kuabhishcommented, Nov 29, 2020

Hey @ben-j69
Thanks for all the help. It is solved.

kuabhishcommented, Nov 29, 2020

Awesome bro … that worked …

I saw this output :

### KEY NAME ###

### SECRET ###


{ 0xf, 0x5a, 0xb, 0x10, 0x51, 0x55, 0x41, 0x5c, 0xc, 0x54, 0x5d }
You can now get your secret key by calling : Secrets().getTNWDPJXI(packageName)

But another error I see now:

C:\Users\abhiv\AndroidStudioProjects\dummy\app\src\main\java\com\example\dummy\ error: cannot find symbol
        String key = new Secrets().getTNWDPJXI(getPackageName());
  symbol:   class Secrets
  location: class MainActivity

where my code is

        String key = new Secrets().getTNWDPJXI(getPackageName());
Read more comments on GitHub >

github_iconTop Results From Across the Web

Executing custom Gradle task using scripts - Stack Overflow
You don't need to redefine the hideSecret task. Just set the properties as you wish and configure the dependency:
Read more >
4+ Ways To Secretly Hide Messages In Pictures - MakeUseOf
Looking at the picture, you have no idea there's a secret message hiding ... can be used to hide secret messages in innocent-looking...
Read more >
Clever Technique Can Hide Secret Messages in the Most ...
Researchers at Columbia University have found an ingenious way to achieve the same effect by subtly modifying text written with basic fonts like ......
Read more >
Hide Your Secret Keys Using Environment Variables
A course I would strongly recommend to my readers: Command Line Automation In Python (DataCamp) → Learn to automate many common file system...
Read more >
Authoring Tasks - Gradle User Manual
You often need to locate the tasks that you have defined in the build file, for example, to configure them or use them...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found