Skip to content

update CameraXVideo to compile in Android Studio Ladybug #610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CameraXVideo/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ apply plugin: 'kotlin-kapt'
apply plugin: "androidx.navigation.safeargs"

android {
compileSdkVersion 31
namespace 'com.example.android.camerax.video'
compileSdk 34
defaultConfig {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
applicationId "com.android.example.camerax.video"
minSdkVersion 21
targetSdkVersion 31
targetSdk 34
versionCode 1
versionName "1.0.0"
}
Expand All @@ -48,7 +49,7 @@ android {

// Set the source of tests to same for both Unit and Instrumented tests
sourceSets {
String sharedTestDir = 'src/test/java'
def sharedTestDir = 'src/test/java'
test {
java.srcDir sharedTestDir
}
Expand Down
3 changes: 1 addition & 2 deletions CameraXVideo/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
~ limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.android.camerax.video">
xmlns:tools="http://schemas.android.com/tools">

<!-- Permission declarations -->
<uses-permission android:name="android.permission.CAMERA" />
Expand Down
10 changes: 5 additions & 5 deletions CameraXVideo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@

buildscript {
// Top-level variables used for versioning
ext.kotlin_version = '1.5.21'
ext.kotlin_version = '2.1.10'
ext.java_version = JavaVersion.VERSION_1_8

repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.4.1'
classpath 'com.android.tools.build:gradle:8.5.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.5.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -42,6 +42,6 @@ allprojects {
}
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
Binary file modified CameraXVideo/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions CameraXVideo/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Wed Mar 31 21:04:32 PDT 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
Loading