Android issues

1. Android studio 2.0

 

Error:Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0

 

解决办法:http://stackoverflow.com/questions/35990995/com-android-dx-command-main-unsupported-major-minor-version-52-0

//    buildToolsVersion "24.0.0 rc3"
buildToolsVersion "23.0.2"



2. Manifests 权限已经设置,仍然有权限问题(Permission denied (missing INTERNET permission?)     )

Permission denied (missing INTERNET permission?): But permission is given

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
    ...>
</application>

 

Details:

Order of defining tabs in Manifest:

  1. Permissions
  2. Applications
  3. Receiver, Service, Metadata

3.AS 2.0 开启Instant Run出现的问题:Error:Access to the dex task is now impossible, starting with 1.4.0

Error:Access to the dex task is now impossible, starting with 1.4.0
1.4.0 introduces a new Transform API allowing manipulation of the .class files.
See more information: http://tools.android.com/tech-docs/new-build-system/transform-api

android老项目倒入后,android studio 2.0 自动更新gradle到2.0.0

http://blog.csdn.net/yzpbright/article/details/51231826

你可能感兴趣的:(Android issues)