The Problem:
If you rename a package name in Android Studio and run the application, you won't be able to launch the app from Android studio and you need to manually click on app on your device to open
The error you come across is as follows:
Error type 3:
Error: Activity class {com.mycompany.myapplication/com.mycompany.testapp.MainActivity} does not exist.
To overcome this problem, follow the solutiion below:
The Solution:
If you are using Android Studio in Linux OS (Ubuntu, etc.,) , you can safely
If you rename a package name in Android Studio and run the application, you won't be able to launch the app from Android studio and you need to manually click on app on your device to open
The error you come across is as follows:
Error type 3:
Error: Activity class {com.mycompany.myapplication/com.mycompany.testapp.MainActivity} does not exist.
To overcome this problem, follow the solutiion below:
The Solution:
If you are using Android Studio in Linux OS (Ubuntu, etc.,) , you can safely
- Remove the directory .gradle/caches (use Ctrl+H to show hidden files and folders).
- Click on "Sync Project with Gradle Files" icon on the toolbar of the Android Studio
- Then Build -> Rebuild Project in Android Studio.
Note: If you still got issues, comment below.
No comments:
Post a Comment