Git Product home page Git Product logo

Comments (27)

ardock avatar ardock commented on May 2, 2024

Do you have tihs one? compile 'com.android.support:support-v13:21.+'

https://github.com/google/iosched/blob/master/doc/BUILDING.md
In the Android SDK Manager, ensure that the following are installed, and are updated to the latest available version:
Tools > Android SDK Platform-tools (rev 21 or above)
Tools > Android SDK Tools (rev 23.0.5 or above)
Tools > Android SDK Build-tools version 20
Tools > Android SDK Build-tools version 21 (rev 21.0.2 or above)
Android 4.4W > SDK Platform (API 20)
Android 5.0 > SDK Platform (API 21)
Extras > Android Support Repository
Extras > Android Support Library
Extras > Google Play services
Extras > Google Repository

2014-10-23 20 53 09 sdk1

2014-10-23 20 54 08 sdk2

from iosched.

ardock avatar ardock commented on May 2, 2024

If you previously installed the Android L Preview SDK, select all those packages in the SDK Manager and click Delete packages.

http://developer.android.com/preview/index.html
Android 5.0 (Lollipop) is almost here and users will begin receiving device updates in November. To help you prepare, the Android 5.0 SDK is now available with final APIs.

Since the L Developer Preview began, various APIs and behaviors have changed, so if you've been using the Preview SDK you should update now to test your apps and take advantage of new features.

To get the latest Android 5.0 SDK:

Start the Android SDK Manager.
In the Tools section, select the latest SDK Tools, SDK Platform-tools, and SDK Build-tools.
Select everything under the Android 5.0 section, then click Install packages...
Accept the licensing agreement for the packages, then click Install.
If you previously installed the Android L Preview SDK, select all those packages in the SDK Manager and click Delete packages.
Now you're ready to develop and test on Android 5.0 with your normal workflow and begin publishing app updates to Google Play.

from iosched.

ardock avatar ardock commented on May 2, 2024

http://developer.android.com/training/wearables/apps/index.html
Android Studio 0.8 or later and Gradle 0.12 or later

2014-10-23 21 43 14 gradle

If you dont find a package Check addons in sdk manager menu tools / manage add-ons sites
2014-10-23 21 44 50 addons

This solution is outdated but check my image add-ons,
http://stackoverflow.com/questions/24453971/building-gradle-for-wear-app-failed

from iosched.

ardock avatar ardock commented on May 2, 2024

In the link recommends check google repository version (update to rev 12 no 9)
https://code.google.com/p/android/issues/detail?id=72454

If you need upgrade android studio
http://tools.android.com/download
or
http://developer.android.com/sdk/index.html

from iosched.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 2, 2024

OK, I've re-installed Android-Studio as I think something went wrong there.
I've also checked the components on the SDK-Manager.
From the list, the one that was missing is "Extras > Google Repository" . The rest are ok, and everything is updated.

Now it writes:
"Error:Execution failed for task ':Wearable:preBuild'.

failed to find Build Tools revision 20.0.0
"

That's even though I have installed the wearables SDK.
Here's a screenshot of what I have:
2014-10-24_001853

from iosched.

ardock avatar ardock commented on May 2, 2024

you need both
Tools > Android SDK Build-tools version 20 (for wear) <-- check this in sdk manager
Tools > Android SDK Build-tools version 21 (rev 21.0.2 or above) (for android lollipop)

Try
./gradlew clean assembleDebug

from iosched.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 2, 2024

@ardock But I already have them. I've now updated my answer to show what I've installed.

from iosched.

ardock avatar ardock commented on May 2, 2024

You have not installed it. You need both

In tools:
Android SDK Build-tools 20 not installed

from iosched.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 2, 2024

Why do i need 20 if I have 21.0.2 ?
Also, for some reason Android-Studio still complained (even after I've installed v20) , so I clicked on the warning and it installed it by itself. Neat.

from iosched.

ardock avatar ardock commented on May 2, 2024

I dont know the details lol, i m not expert, they are specific for platfom, wear it 's independent.
I read need both, i install both :)
They released it after kitkat and before lollipop.
I only can say that you need it :)

And they can upgrade android wear independently as it s included in google play services i think.
If is not casual, they ll need the separation for it, i dont know, perhaps someone will answer you

from iosched.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 2, 2024

Sorry for all the trouble.
Say, do you know if it's possible (or will soon be possible) to style dialogs in material style using the support library? I know that preferences are still neglected, but have dialogs been neglected too?
I've even written about it here:
https://code.google.com/p/android/issues/detail?id=78083
I was hoping seeing it now in this sample, and sadly I didn't... :(

from iosched.

ardock avatar ardock commented on May 2, 2024

Sorry, i dont know, im still learning the new stuff as you, sure someone answers you here
https://code.google.com/p/android/issues/detail?id=78088

from iosched.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 2, 2024

@ardock I know of this issue. It's a duplicate...
anyway thanks.

from iosched.

ardock avatar ardock commented on May 2, 2024

you're welcome, and thanks for the blog link i had missed :). I just read it, they doing great, be patient, sure someone find a solution for dialogs or they ll update the support library soon. Lollipop official release starts on November 3 :)

from iosched.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 2, 2024

@ardock Actually I've found something yesterday but didn't check it out yet, as I was hoping I would find something more official :
https://github.com/fengdai/AlertDialogPro

from iosched.

ardock avatar ardock commented on May 2, 2024

Try to ask to Chris Banes directly
https://chris.banes.me/2014/10/17/appcompat-v21/

@romannurik updated DevBytes: ActionBarCompat Support Library with Banesy Top Tips requested L

2014-10-24 11 27 55 banesy top tip

from iosched.

ardock avatar ardock commented on May 2, 2024

@AndroidDeveloperLB You are right. If you update build.gradle for wear, you dont need buildToolsVersion 20.

android {
compileSdkVersion 21
buildToolsVersion "21.0.2"

defaultConfig {
    minSdkVersion 20
    targetSdkVersion 21

from iosched.

coodoing avatar coodoing commented on May 2, 2024

Same issues occurs to my environment before, now it works well with android studio 0.8.9.

Like AndroidDeveloperLB, I installed the following packages
1
2

And I just changed the sdkversion of build.gradle file. The setting of build.gradle of android and Wear project just like:
1)

android {
compileSdkVersion 19
buildToolsVersion '21.0.2'

defaultConfig {
    minSdkVersion 19
    targetSdkVersion 21
}

.....
}

android {
compileSdkVersion 20
buildToolsVersion "20.0.0"

defaultConfig {
    minSdkVersion 20
    targetSdkVersion 20
    versionCode 1
    versionName "1.0"
}

...
}

Hope this will be helpful for you.

from iosched.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 2, 2024

@coodoing Thank you. Seems to work now, but you didn't have to set the number to be this high. I think those are better:

for build.gradble(android) :

android {
compileSdkVersion 21
buildToolsVersion "21.0.2"

defaultConfig {
    minSdkVersion 14
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
} 

for build.gradle(wearable) :

android {
compileSdkVersion 21
buildToolsVersion "21.0.2"

defaultConfig {
    applicationId "com.google.samples.apps.iosched"
    minSdkVersion 20
    targetSdkVersion 20
    versionCode 1
    versionName "1.0"
}

from iosched.

xu6148152 avatar xu6148152 commented on May 2, 2024

why my project fail to find some library , just like com.google.api-client:google-api-client:1.+

from iosched.

PaulRashidi avatar PaulRashidi commented on May 2, 2024

2015 Source and Android Studio have changed quite a bit, closing this out. Please open a new bug if the 2015 source isn't importable.

from iosched.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 2, 2024

@PaulRashidi I've just cloned the project again, and I get this error when trying to run it:
Error:A problem was found with the configuration of task ':android:packageDebug'.

File 'D:\android\Android studio Projects\iosched\android\debug.keystore' specified for property 'signingConfig.storeFile' does not exist.

So it still can't run out of the box. What's wrong with it?

from iosched.

ardock avatar ardock commented on May 2, 2024

Build instructions, step 6

Add your debug keystore to the project (save it as android/debug.keystore), or modify the build.gradle file to point to your key.

from iosched.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 2, 2024

@ardock Why doesn't it include it, if it's needed?
Anyway, added my own, and now it shows this error:

Error:(132, 1) A problem occurred evaluating project ':android'.

Could not find method compile() for arguments [com.google.android.gms:play-services-drive:7.0.0] on DefaultExternalModuleDependency{group='com.google.android.gms', name='play-services-analytics', version='7.0.0', configuration='default'}.

from iosched.

PaulRashidi avatar PaulRashidi commented on May 2, 2024

Thanks @ardock

from iosched.

ardock avatar ardock commented on May 2, 2024

@AndroidDeveloperLB They are not required to do so and it's better that we use our own keys in our builds. Sorry I can not reproduce your latest issue, works fine here, try to open a new issue.

@PaulRashidi Thanks for share the source code.

from iosched.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 2, 2024

@ardock Why create a new issue? it has the same problem: I can't import the project properly. It shows errors.

from iosched.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.