【问题标题】:failed to capture snapshot of input files for task android studio无法为任务 android studio 捕获输入文件的快照
【发布时间】:2017-08-15 04:42:41
【问题描述】:

我正在尝试制作 android studio 项目,

我在 Android 设备管理器中运行项目很好, 但是当我尝试在真实设备上运行时出现一些错误:

Error:Failed to capture snapshot of input files for task 'transformClassesWithInstantRunForDebug' property 'otherFileInputs' during up-to-date check.
> Failed to create MD5 hash for file 'C:\Users\psd1-pc\AppData\Local\Android\sdk\platforms\android-21\android.jar'.

我的真实设备有 Lollipop Android, 我该怎么做才能解决这个问题

谢谢。

【问题讨论】:

    标签: android android-studio


    【解决方案1】:

    启用 Instant Run 后,您需要使用相同的 api 级别构建和运行项目。使用 Instant Run 为特定 api 构建的调试应用程序仅适用于真实设备中的相同 api 级别。

    如果要运行应用,请关闭 Instant Run,然后重新构建应用。

    【讨论】:

    • 谢谢,很有帮助,
    • 不客气。如果这个答案对你有帮助,请接受它以关闭线程。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-05-21
    • 2018-11-30
    • 2017-08-21
    • 1970-01-01
    • 2018-12-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多