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.

Build doesn't work after rename

See original GitHub issue

I really liked this package and just ran it.

However, after I’ve renamed my app, and I run cd android && ./gradlew assembleReleaseto do another build, I get an error:

2 errors
:app:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Any idea how to resolve this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
mycodeselfcommented, Dec 11, 2017

Hey,

first of all thank you for this awesome tool!

I was with the same issue using react-native-rename@2.2.2, after rename the app the build is succesfully but the application doesnt start.

The problem was that my “MainActivty.java” the package reference name of last item was UpperCase, example:

package com.company.MyApp;

i change it to package com.company.myapp;

and it works like a charm!

hope it helps to you!

3reactions
kgirmacommented, Sep 5, 2017

Why wouldn’t it let me have space in between my app name? I fixed the android issue using @AnthonyLamot 's comment and now the ios build is throwing an error: The project named "AppName" does not contain a scheme named "AppName". The "-list" option can be used to find the names of the schemes in the project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My react native project cannot build after rename project
I tried to rename my app because I need it but I got the problem after rename it (it works fine before I...
Read more >
Incremental build fails after rename of XAML file
When you rename the file make sure you save the project file. The easiest way to do this is with the Save All...
Read more >
react-native-rename - npm
Rename react-native app with just one command. ... Note: This package does not attempt to properly rename build artifacts such as ios/build or...
Read more >
Rename a project - Azure DevOps - Microsoft Learn
Learn how to rename your project, including tasks you need to complete to work with the renamed project.
Read more >
Rename or Move files in GIT - Aram Koukia
This may happen if you're working with tools (such as IDEs) that move files for you and aren't aware of Git (and so...
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