Build doesn't work after rename
See original GitHub issueI really liked this package and just ran it.
However, after I’ve renamed my app, and I run cd android && ./gradlew assembleRelease
to 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:
- Created 6 years ago
- Comments:8
Top 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 >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
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!
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.