Posts

Showing posts from 2017

Error:Error converting bytecode to dex: Cauase: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7' sourceCompatibility = '1.7' to that submodule's build.gradle file.

Error:Execution failed for task ':AndroidAppDemo:transformClassesWithPreJackPackagedLibrariesForDebug'. > com.android.build.api.transform.TransformException:com.android.jack.api.ConfigNotSupportedException: Jack requires Build Tools 24.0.0 or later Use java 1.8 and latest build tools and compile with jack optioncompileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig {jackOptions {enabled:true} }

CORS is if your trying to access from one domain - another domain.

XMLHttpRequest cannot load https://www.test.com;. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:55427' is therefore not allowed access.down vote CORS is if your trying to access from one domain  - another domain. Try withJSONP. JSONP should work , because it  uses the GET method. Try this var url ="https://test.com"; $http({ method:'JSONP', url: url }). success(function(status){//success}). error(function(status){//fails});