From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58291 invoked by alias); 17 Apr 2016 06:42:40 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 58278 invoked by uid 89); 17 Apr 2016 06:42:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=legitimately, Instant, (unknown), relationship X-HELO: mail-ob0-f170.google.com Received: from mail-ob0-f170.google.com (HELO mail-ob0-f170.google.com) (209.85.214.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sun, 17 Apr 2016 06:42:27 +0000 Received: by mail-ob0-f170.google.com with SMTP id j9so83085222obd.3 for ; Sat, 16 Apr 2016 23:42:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=IMzoU/o/ASdFDrFBmF4imFKCqXDuekYshp6gfrn6PQ0=; b=hztWQIvwwuzUoKyAY9wV+T5q/NxnrN4y09acGe9ybnyp2sus9uaE2JvHZhdSaV8Awj qlEqQmnXMWUElHn5gKRGzMzg5+2Cng+7Fdx1LBhfb/dwm7gpxP3CR3VoMcDyu8ZM3ONq zprqSRkVh0Zq9LDzG6fxEpJUCqTKHc4uDwS+y6GRdA7L9PWVh2lWhQdyyn6ELTuVST/3 T8u8CqNsZAeLQIFEw2FHc1+zZbC8v9UHeDMDBcDg/TuhjvVTZXkWzCTwkpnoS7MhR/vJ ujN7YMV78Aupffa5tZkb0O2fTR4N0ryDONGoCQ6JS0QO5/n4AjBv0Behlt+GU7mX5Vl8 NCJg== X-Gm-Message-State: AOPr4FU73WRU6gY9Lg/88bvYTNIfExrLfy19R/QRI5cL2usyDa8bVedKY4I1fHl18t44KjSsjbH0uAERViuuUw== X-Received: by 10.182.10.38 with SMTP id f6mr4425657obb.17.1460875345777; Sat, 16 Apr 2016 23:42:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.226.196 with HTTP; Sat, 16 Apr 2016 23:41:46 -0700 (PDT) In-Reply-To: <57131D2E.1040705@bothner.com> References: <57131D2E.1040705@bothner.com> From: "F. Rafael Leon" Date: Sun, 17 Apr 2016 06:42:00 -0000 Message-ID: Subject: Re: first Android app - Didn't find class To: Per Bothner Cc: kawa@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-q2/txt/msg00006.txt.bz2 On Sun, Apr 17, 2016 at 1:20 AM, Per Bothner wrote: > Would it make sense to update the Kawa/Android instructions to use Gradle > rather than Ant? The answer is yes. Gradle is the accepted standard. For introducing current Android developers to Kawa, gradle would be the path of least friction. The minimal "kawaBuild" task from this gradle file should still work: https://github.com/rafleon/KawaDroid/blob/master/app/build.gradle preDexDebug doesn't exist in gradle anymore, so the new dependency is: project.afterEvaluate{ compileDebugSources.dependsOn kawaBuild compileReleaseSources.dependsOn kawaBuild } That should do it. I haven't pushed updates to github in awhile. Gradle has some faults (slow, complicated, bloated, etc), but it is indeed the current Android standard. They are legitimately working on improving it, so it should be fine eventually. For example, this new feature is an enormous step in the right direction: http://tools.android.com/tech-docs/instant-run Instant Run pushes fresh compiled classes into the context of a running mobile app. It is not immediately obvious what the relationship could be between Instant Run and a Kawa REPL, but interesting tricks should be possible once the official build tools are stable. -Rafael