dd101110
dd101110

Reputation: 11

android studio 2.0 preview instant run could not works

I update my android IDE to android studio 2.0 preview.but when i was going to use the new function called instant run,it went wrong and the outputs were something like "IncrementalVisitor parseParents could not locate class android/supportV4/app/FragmentActivity" what is this problem and how can i fix it?(I really want to experience the new function)

Upvotes: 0

Views: 654

Answers (2)

Dhaval Jivani
Dhaval Jivani

Reputation: 9697

Please update your android studio to Android Studio 2.1

Android studio 2.1 feature:-

  • Android Studio 2.1 supports Android N Developer Preview
  • General Build Performance Improvements and Android Emulator
  • new Jack compiler and Java 8 language support.
  • performance improvements to Instant Run which leads to faster edit and deploy build speeds.

Upvotes: 0

vishnu narayanan
vishnu narayanan

Reputation: 3923

Could you share more details on how you tried to use Instant Run, on Android Studio 2.0 ?

To use instant run

  1. Update android-studio to version 2.0+.
  2. Open your project in studio. Go to File --> Settings --> Build Deployment Section. Under Instant Run, Click update project.

Build Execution Deployment

This will update your android gradle plugin to the latest which is a requirement for instant run to work.Instant run also requires your project to have an API level 16 or above to work.

Note: Refer this link for more information Instant run - android documentation

Upvotes: 2

Related Questions