Thursday, 15 December 2016

Android Studio 2.2.2 Repeated Error Scenarios

4).* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method embedded() for arguments [project ':submoduleproj'] on object of type
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

solution:
enable the fat aar plugin above dependency url, while taking the fat aar build
apply from: 'https://raw.githubusercontent.com/adwiv/android-fat-aar/master/fat-aar.gradle'
dependencies{
}


5).There are three steps need to follow the fat aar build taking.
-comment application plugin in app module build.gradle
-then, below , enable apply plugin: 'com.android.library'
-comment the application package id
-then,apply this plugin above dependencies
apply from: 'https://raw.githubusercontent.com/adwiv/android-fat-aar/master/fat-aar.gradle'
- https://github.com/adwiv/android-fat-aar use this link and download the fat-aar.gradle and paster your project.
-then, give gradle sync. check the compilation errors if anything found
- the follow the command for taking fat aar build
gradlew clean
gradlew build
- then, check the build\output\aar folder
- then convert the aar to zip and check the classess and libs are properly merged with main classess or not.
http://stackoverflow.com/questions/27486506/how-to-include-an-android-library-module-in-another-library

6). classes.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:app:compileReleaseJavaWithJavac FAILED

solution:
I am also faced this error. dont know, how to fix it.
my same code another project is running,there is no error.
but, same code,another project getting above error.some rare case, go for new project, copy all code to new project with new workspace.

No comments:

Post a Comment