I'm using Android Studio 3.0.1 and building applications for SDK with following settings:
flavorDimensions "default"
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.logi3pl.wms.wmsmobile"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.1.23"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
After a recent update, none of my AVD emulators are accepting uppercase 'B' from keyboard. Lower case 'b' and all other chars are working upper/lower case. On-screen keyboard accepts uppercase 'B'.
Not only the software I am coding, but also google search bar and every other app on the device has the same problem.
Don't know even where to look at. Appreciate any help.
Thanks in advance
I have got the same problem, using Android Studio 3.01, Android 7.1.1 (emulated Pixel API 25).
I filed a report to Google.
Update:
They fixed it in Version 27.0.5
Just downloaded the newest update. The problem seems to be fixed.
Related
I am currently doing some testing on Android 13 Tiramisu and am having trouble getting the app to install on my device.
I have installed Android Tiramisu Preview (Rev.4) in Android Studio.
I created a sample app and configured it as follows
// build.gradle
android {
compileSdkPreview "android-Tiramisu"
defaultConfig {
applicationId "com.example.myapplication"
minSdk 16
targetSdkPreview "Tiramisu"
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
...
I then tried to install this app on my Android 12 (not Tiramisu) device.
When I did so, I got the following error
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_OLDER_SDK
List of apks:
[0] '/Users/myuser/dev/sample/MyApplication/app/build/outputs/apk/debug/app-debug.apk'
The application's minSdkVersion is newer than the device API level.
In build.gradle, I have specified minSdk 16, so it should be possible to install the app on an Android 12 device.
How can I solve this problem?
(This problem did not occur when targetSdkVersion was set to anything other than Tiramisu)
This is working as intended: targeting / compile with a pre-release version of Android will only work on pre-release device, before SDK is final. The error returned could be clearer, as it is misleading right now.
I'm a little confused! I made an Android app which has these lines of code in the Gradle file:
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.example.ayech0x2.navigationbarforallactivitites"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
So as you see the minimum version of Android is Lolipop after that I used an app called Install APKs to see my apk pieces of information I found that the minimum API level is 3 (Cupcake)! what did this mean? What's the difference between minSdkVersion and minimum API level?
Thank you very much for your time and assistance in this matter.
The minSdkVerison and minimum API level is same. You cannot install the apk on an Android OS of api level below minimum api level. the apk checking tool may have some problem in checking the details.
minSdkVersion and Minimum API Level refers the same thing. If you are specifying the minSdkVersion as 21, the app will not get installed on the device with API level below 21.
Something might be wrong with the app checking the minimum API level of your app.
You can verify it yourself by trying to install the app in the devices below the specified API level.
minSdkVersion: is the minimum version of the Android OS required to run your application.
Minimum API Level: is also the same as minSdkVersion
I think which app you used Install APKs isn't working properly.
I'm making an app using android and opencv.
When I run the app on lg g3 opencv is work,
but when I run on galaxy s7 I get the message "opencv was not initialised correctly Application will be shut down" :(
Can someone help please?
compileSdkVersion 24
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 15
targetSdkVersion 24
versionCode 2411
versionName "2.4.11"
}
opencv version-3.1
enter image description here
did you install OpenCV Manager on your device?
https://play.google.com/store/apps/details?id=org.opencv.engine&hl=en
check your permissions, does the app require camera use? see what the logcat says on the monitor when you try to run the app.
I am new to android and I have develop the app with 5.0.1 target. However, when I run the app in my mobile which has 4.4 version of android, it does not run the app that is due to version mismatch. My question is, in which version we can develop the android app which can run on all android device?
If you work on eclipse set in the AndroidManifest.xml the minSdkVersion to something below 20 (i recommend 15) and it will work also on your device:
<uses-sdk android:minSdkVersion="15"
android:targetSdkVersion="21"/>
Here you can find the sdk values for versions:
http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
If you work on Android Studio go in your build.gradle file and set under defaultConfig your preferences on sdk:
defaultConfig {
applicationId "mybundleID"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
UPDATE
I read now that you wanted to support ALL android devices so you can put minSdkVersion equal to 1. But i think that this is the worst thing you can do! Putting the minSdkVersion you will not be able to use some method and some libraries. You have to support the majority of the devices for a good application. As i said values between 11 and 15 are the most used now!
I can't find any other android API in the project. it is showing only API 20 Android 4.4W. how do i overcome from it?
The issue is because you are using the API level 20 for wearable devices. You need to download other sdk through the Android SDK Manager.
In Eclipse, open windows->android sdk manager->select Android 4.4.2 and check Android sdk and ARM system image and click install packages
Now you have the API level 19 source code so eclipse will now be able to render the views
Now go to the graphical layout tab of the layout and change the android version from 20 to 19.
In Android Studio you just need to change your graphical layout API from 4.4w to 4.4.2 as in the picture below.
Within the eclipse you can change the API version of the design layout. This worked for me.
If you using Android Studio
1 Open your Build.gradle
2 change values as you need
like this
android {
compileSdkVersion 17
buildToolsVersion '19.1.0'
defaultConfig {
applicationId "com.example.xxx.xxxx"
minSdkVersion 16
targetSdkVersion 17
versionCode 1
versionName "1.0"
}
3 press Sync Project with gradle file..
4 if you do not have that API it will ask you to download..
rebuild the project..