Due to 65K
error in my project I need it to migrate to Android Studio . While running
./gradlew assembleDebug
I am
delete intermediates folder from app\build\intermediates. then rebuild the project. it will work
For my case, I follow the steps from Firebase
and by mistake I pated it in a wrong file.
Then, I returned to the project from Project
to Android
. Once in the Android view
I pasted the file /projectname/app/YOUR-FILE-HERE
and now, you have to compile again.
your manifest application name should contain application class name. Like
<application
android:name="your package name.MyApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:theme="@style/AppTheme">
the steps I followed are:
Android Studio
(or IntelliJ IDEA
).idea
directory.gradle
directory.iml
files
find . | grep -e .iml$ | xargs rm
Android Studio
to re-open the directory as a projectTerminal commands:
# close Android Studio
cd "your project's directory"
rm -rf ./.idea
rm -rf ./.gradle
find . | grep -e .iml$ | xargs rm
# use Android Studio to re-open the directory as a project
Just remove this line from build.gradle(Project folder)
apply plugin: 'com.google.gms.google-services'
Now rebuild the application. works fine Happy coding
Just a simple solution is here...it worked for me: