android-studio-2.2

Android Studio - Error:Unable to load class 'org.slf4j.LoggerFactory'

半腔热情 提交于 2019-11-30 04:50:56
问题 I'm new in the Android world. I opened studio Android 2.2 and, after creating a new project, I get this error message: Failed to sync Gradle project '...' Error:Unable to load class 'org.slf4j.LoggerFactory'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all

How to properly use NDK-Build in Android Studio 2.2 Preview 1

对着背影说爱祢 提交于 2019-11-30 03:56:25
Android Studio 2.2 Preview 1 has a new external ndk build feature, but from app/build.gradle snippet shown in official blog post it's not clear at all how to set additional ndk build parameters which Application.mk file usually contains I'm able to set Android.mk ndk build file via externalNativeBuild , but how could I set the required Application.mk variables? My Application.mk contains: NDK_TOOLCHAIN_VERSION := clang APP_PLATFORM := android-16 APP_ABI := armeabi APP_STL := c++_static APP_CPPFLAGS += -std=c++11 Android Studio 2.2 Preview 3 with updated gradle plugin added support for

Building tess-two into a project using Android Studio's gradle build

ε祈祈猫儿з 提交于 2019-11-29 22:35:42
问题 There are answers about getting the tess-two project integrated into an Android project within Android Studio , but many are out-dated and none used the current capabilities defined here: Using Android Studio 2.2 and higher, you can use the NDK to compile C and C++ code into a native library and package it into your APK using Gradle, the IDE's integrated build system. Your Java code can then call functions in your native library through the Java Native Interface (JNI) What specific steps

Android Studio 2.2 preview1 errors

血红的双手。 提交于 2019-11-29 14:19:56
So i'm trying to use Android Studio 2.2 preview-1 in Ubuntu 14.04 LTS. I'm using gradle-2.10 and gradle-plugin 2.2.0-alpha1 along with openJDK-8 . compileSdkVersion 23 buildToolsVersion "23.0.3" First the studio.sh didn't run and i found the solution to change #!/bin/sh to #!/bin/bash . Voila --it starts properly. But in build.gradle files, warning is shown-- 'dependencies' cannot be applied to '(groovy.lang.Closure)' and its not finding imported class from library project(includes a jar only). Please someone help me out. The only fix that I found for this is, every time I open a project, I go

How to install the Android Studio 2.2 CMake package/tool?

☆樱花仙子☆ 提交于 2019-11-29 10:26:05
My recent Android Studio 2.2 preview 3 installation can't seem to find CMake. I tried installing it from the SDK Tools but there's no such package... We won't be able to support CMake (or ndk-build) on 32 bit OS because it is not supported in CLion which is the tech we use for the C++ editor. The root cause is memory\address-space limits. Here's a helper page where I describe Android Studio C++ support including the 64 bit requirement: https://sites.google.com/a/android.com/tools/tech-docs/external-c-builds I hope this helps! - Jomo 来源: https://stackoverflow.com/questions/37740147/how-to

Error:CreateProcess error=216, This version of %1

这一生的挚爱 提交于 2019-11-29 10:18:09
问题 ERROR MESSAGE: Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher. Fellow overflowers I hope you can help me with this issue in Windows 7 x86 回答1: Change in project structure You have to change the jdk location in project structure Follow those steps Go to file -> project

After update to Android Studio 2.2 / gradle plugin 2.2.0: “could not get unknown property 'assembleRelease'”

☆樱花仙子☆ 提交于 2019-11-29 06:18:52
问题 After updating Android Studio to version 2.2 and the Gradle-plugin to 2.2.0 , I get following error: "Could not get unknown property 'assembleRelease' for project ':app' of type org.gradle.api.Project." When I change the plugin version back to 2.1.3 the code still works, but that's no long-term option for me. My code: apply plugin: 'com.android.application' dependencies { ... } android { ... } ... assembleRelease.doLast { file('build/outputs/apk/app-release.apk').renameTo("AppName-1.0.0-$

Not able to see cloud option in Developer Services of Android Studio 2.2

試著忘記壹切 提交于 2019-11-29 04:34:40
问题 I am trying to add Firebase to my project by checking Firebase option in Developer Services as shown below but I can't see this option in Android Studio 2.2. How can I get this option? 回答1: The Cloud > Firebase checkbox has been removed in Android Studio 2.2, in favor of the new (and much more powerful) Firebase Assistant. You can find the Firebase Assistant through Tools > Firebase, after which it will open up. 回答2: To connect your app to Firebase directly in Android Studio, proceed as

Android Studio 2.2. Preview 1 error: “Please use JDK 8 or newer”

若如初见. 提交于 2019-11-29 03:57:20
On trying to run Android Studio 2.2 Preview 1, it gives the following error on gradle build: Error:Please use JDK 8 or newer. If I try and do it from the console it says: FAILURE: Build failed with an exception. Where: Build file 'C:\Coding\Android projects\MaterialScrollBar\app\build.gradle' line: 1 What went wrong: A problem occurred evaluating project ':app'. com/android/jack/api/ConfigNotSupportedException : Unsupported major.minor version 52.0 I've tried to change the JDK as it suggests from jdk 1.7 to 1.8, but each time I change the JDK location for the project to any other path than the

How to properly use NDK-Build in Android Studio 2.2 Preview 1

假装没事ソ 提交于 2019-11-29 01:04:47
问题 Android Studio 2.2 Preview 1 has a new external ndk build feature, but from app/build.gradle snippet shown in official blog post it's not clear at all how to set additional ndk build parameters which Application.mk file usually contains I'm able to set Android.mk ndk build file via externalNativeBuild , but how could I set the required Application.mk variables? My Application.mk contains: NDK_TOOLCHAIN_VERSION := clang APP_PLATFORM := android-16 APP_ABI := armeabi APP_STL := c++_static APP