0

I have a project which I developed in Eclipse. Now I want to migrate it to Android Studio and when i try to compile (in Android Studio) the build fails and it says:

Error:Execution failed for task ':app:packageDebug'.

Failed to seal APK

And thus it doesn't compile. I have literally no experience with Android studio and i tried my best to follow the "tutorial" for migrating, but I'm stuck here so I dont know what else to do.

Community
  • 1
  • 1
Oscar Valdez Esquea
  • 810
  • 1
  • 10
  • 24

1 Answers1

0

Try the below one by one and see if it works

  1. Remove ~/.gradle. files and re-open using Android studio and download gradle if it asks while reopening ..it might solve the problem

  2. Change the JDK vesion used by Android studio

    follow this

  3. add the following to build.gradle and try

    compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 }

Manju
  • 598
  • 6
  • 21