Skip to main content

Class referenced in the manifest 'com.{app_name}.app.MainActivity' was not found in the project or the libraries

Updating the Android app and while testing I'm seeing the following error in the AndroidManifest.xml file

Class referenced in the manifest, `com.{app_name}.app.MainActivity`, was not found in the project or the libraries

And the accompanying error

Unresolved class 'MainActivity'

 

error: pathspec did not match any file(s) known to git

Post creating a new branch in the repo, next step was to run the checkout command locally.  On my local environment I ran the following command

git checkout {branch-name}

However, the response was

error: pathspec '{branch-name}' did not match any file(s) known to git

 

Steps to creating an Android build using Android Studio

Each time a release is prepared for Google Play, the steps I work through are as follows.

 

Preparation to run a build

Check the Gradle build settings

Directed to the build.gradle file using the following file path

~/android/app/

The area of code in the build-gradle file to focus:

Drupal - where has the Google ID disappeared?

On most of the sites I'm running the Google analytics ID is appearing.  Therefore, tracking and capturing data.  All except one!

Discovering where Google ID and Google Tag ID were on a client's site... or not in this situation.  Yes that's correct, for some reason the analytics IDs aren't appearing.  Zip, zero... nothing.

Looking on this site, Google tag Manager positions the tag ID in the following lines of code

Subscribe to