Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed android/util/IntProperty #17

Open
MRezaNasirloo opened this issue Jul 4, 2017 · 3 comments
Open

Build failed android/util/IntProperty #17

MRezaNasirloo opened this issue Jul 4, 2017 · 3 comments

Comments

@MRezaNasirloo
Copy link

Not a very long error message:

'app:transformClassesWithInstantRunForDebug'.
> android/util/IntProperty

Let me know if you need more logs with --stacktrace

@seiginonakama
Copy link
Owner

please provide me more logs with --stacktrace
thank you

@MRezaNasirloo
Copy link
Author

When building it with IDE(Ctrl + F9) or grade command line everything works fine.
It only throw this error when try to install the app with IDE(Shift + F10), So there isn't any way to run it with --stacktrace
However I manage some how to get a more descriptive error message after some cleaning and building, Looks like it nags about a class uses an API from Marshmallow.

Executing tasks: [:app:assembleDebug]

Parallel execution with configuration on demand is an incubating feature.
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to C:\Android\sdk\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

:app:buildInfoDebugLoader
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:prepareComAndroidDatabindingAdapters131Library
:app:prepareComAndroidDatabindingLibrary131Library
:app:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:app:prepareComAndroidSupportAppcompatV72531Library
:app:prepareComAndroidSupportCardviewV72531Library
:app:prepareComAndroidSupportConstraintConstraintLayout102Library
:app:prepareComAndroidSupportDesign2531Library
:app:prepareComAndroidSupportRecyclerviewV72531Library
:app:prepareComAndroidSupportSupportCompat2531Library
:app:prepareComAndroidSupportSupportCoreUi2531Library
:app:prepareComAndroidSupportSupportCoreUtils2531Library
:app:prepareComAndroidSupportSupportFragment2531Library
:app:prepareComAndroidSupportSupportMediaCompat2531Library
:app:prepareComAndroidSupportSupportV42531Library
:app:prepareComAndroidSupportSupportVectorDrawable2531Library
:app:prepareComAndroidSupportTransition2531Library
:app:prepareComAurelhubertAhbottomnavigation206Library
:app:prepareComBluelinelabsConductor214SNAPSHOTLibrary UP-TO-DATE
:app:prepareComBluelinelabsConductorSupport214SNAPSHOTLibrary UP-TO-DATE
:app:prepareComGithubVarunestSparkbutton105Library
:app:prepareComGjiazheScrollparallaximageview10Library
:app:prepareComGoogleDaggerDaggerAndroid210Rc2Library
:app:prepareComInfstoryProguardAnnotations102Library
:app:prepareComJakewhartonRxbinding2Rxbinding200Library
:app:prepareComJakewhartonRxbinding2RxbindingAppcompatV7200Library
:app:prepareComJakewhartonRxbinding2RxbindingDesign200Library
:app:prepareComJakewhartonRxbinding2RxbindingRecyclerviewV7200Library
:app:prepareComLetvSarrsdesktopBlockCanaryExJRT0991Library
:app:prepareComXwrayGroupie111Library
:app:prepareIoReactivexRxjava2Rxandroid201Library
:app:prepareIoRequeryRequeryAndroid130Library
:app:prepareItSephirothAndroidLibraryBottomnavigationBottomNavigation201Rc1Library
:app:prepareJpWasabeefGlideTransformations202Library
:app:prepareDebugDependencies
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:dataBindingProcessLayoutsDebug UP-TO-DATE
:app:compileDebugAidl UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:dataBindingExportBuildInfoDebug
:app:incrementalDebugJavaCompilationSafeguard
:app:javaPreCompileDebug
:app:transformClassesAndDataBindingWithDataBindingMergeArtifactsForDebug
:app:compileDebugJavaWithJavac
warning: View field context collides with a variable or import
  file://C:\Users\ME\Documents\github\project\app\src\main\res\layout\controller_home.xml Line:6
warning: The following options were not recognized by any processor: '[autovaluegson.defaultCollectionsToEmpty]'
Note: C:\Users\ME\Documents\github\project\app\src\main\java\com\github\pedramrn\parent\App.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:app:mergeDebugAssets
:app:processDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForDebug
:app:packageInstantRunResourcesDebug
:app:fastDeployDebugExtractor
:app:generateDebugInstantRunAppInfo
:app:checkManifestChangesDebug
:app:transformClassesWithBlockCanaryExForDebug
:app:transformClassesWithExtractJarsForDebug
:app:transformClassesWithInstantRunVerifierForDebug
:app:transformClassesWithDependencyCheckerForDebug UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:mergeDebugJniLibFolders
:app:transformNativeLibsWithMergeJniLibsForDebug
:app:transformNativeLibsAndResourcesWithJavaResourcesVerifierForDebug UP-TO-DATE
:app:transformClassesWithInstantRunForDebug
Failed to find byte code for android/util/IntProperty
IncrementalVisitor parseParents could not locate android/util/IntProperty which is an ancestor of project class com/github/pedramrn/parent/ui/changehandler/AnimUtils$1.
com/github/pedramrn/parent/ui/changehandler/AnimUtils$1 is not eligible for hot swap. 
If the class targets a more recent platform than 22, add a @TargetApi annotation to silence this warning.
Failed to find byte code for android/util/FloatProperty
IncrementalVisitor parseParents could not locate android/util/FloatProperty which is an ancestor of project class com/github/pedramrn/parent/ui/changehandler/AnimUtils$3.
com/github/pedramrn/parent/ui/changehandler/AnimUtils$3 is not eligible for hot swap. 
If the class targets a more recent platform than 22, add a @TargetApi annotation to silence this warning.
:app:transformClassesWithInstantRunForDebug FAILED
:app:buildInfoGeneratorDebug

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithInstantRunForDebug'.
> android/util/IntProperty

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 37.764 secs

The problem will go away if I change this:

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public class AnimUtils { ... }

to

@TargetApi(Build.VERSION_CODES.M)
public class AnimUtils { ... }

@MRezaNasirloo
Copy link
Author

I have notice this line :app:transformClassesWithInstantRunForDebug FAILED
After turning the Instant Run off the problem goes away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants