“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Pete Letkeman wrote:Quick follow up questions:
Have you tried the same project with different versions of Android and did you get the same result? Which version(s) have you noticed behave this way? Are you able to try on a physical devices? If so what version Android are they using? Are you following along with a tutorial which you've found online? If so please share the URL so that we can put this follow along and see it in it's original context. Please share your Gradle files as well as these contain dependencies and you may have chosen an incorrect version/dependency.
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Pete Letkeman wrote:Following along, I was able to get this to work for an API 22 device.
I'm now downloading API 28 so that I can try it out.
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Pete Letkeman wrote:I was able to get the solution to work with API 26. Appear to be experiencing some issues with API 28, downloading API 27 right now, however I suspect it will work.
In the mean time, is there a reason that you are trying API 28 and would you be okay with the app working with API 26 or API 27?
Also, are you using the newest version of Android Studio and are you SDK images up to date?
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Pete Letkeman wrote:Yes, it does appear as though you are using API 25, which should run fine with new APIs.
You can update the SDK using the SDK manager inside of Android Studio.
Sorry for the delay, issues with github posting
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Pete Letkeman wrote:Here you go https://github.com/letkemanpete78/actionbar
This project works for me
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.worldexplorer.error"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:25.4.0'
compile 'com.android.support:support-vector-drawable:25.4.0'
compile 'com.google.android.gms:play-services-maps:15.0.1'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:26.1.0'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testCompile 'junit:junit:4.12'
compile 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.3.0'
}
}
}
}
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Pete Letkeman wrote:You are welcome for the sample. Unfortunately minutes ago my house lost power. But as soon I get power again I'll look into your code. You don't have to worry about the test stuff yet as you are just beginning your learning journey.
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Pete Letkeman wrote:One thing that you can try it replacing the 24.5 values to the same as the 26.1 values in your gradle files. However keep track of were those 25s are just in case you need to revert back to them.
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Pete Letkeman wrote:I suggest that you post the project as a whole to GitHub or some place similar then post a link back here do that when someone or me try the project out locally on their system. I do have power again, but now internet connection is down so I'm just using my cell.
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Pete Letkeman wrote:Unfortunately it does not look like I'll be able to help you out with this as I'm not too sure what exactly is going on.
After looking at the code I do have a few ideas as to how it can be improved upon to make it easier to follow for those who are working with the code.
While this would help I think that there are still some lines which may need to be remove/rewritten to work with the action bar.
If you want I can provide those hints/ideas. Did you want these ideas?
Looky! I'm being abducted by space aliens! Me and this tiny ad!
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
|